openai.internal.OaImagesRequest
POST /v1/images/generations. `prompt` and `model` always ride; everything else is optional and omitted when the client left it unset.
Reference version
Signature
class openai.internal.OaImagesRequestPOST /v1/images/generations. prompt and model always ride; everything
else is optional and omitted when the client left it unset.
response_format(url|b64_json) is a dall-e-only parameter — the GPT image models always return base64 and reject the field, so the client omits it for them and defaults it tob64_jsonelsewhere (we need bytes, and the dall-e default isurl).output_format/output_compression/background/moderationare GPT-image-only;styleis dall-e-3-only. The client sends what it was given and lets the API reject impossible combinations, rather than encoding a model table that goes stale.
Source:<builtin>/openai/ns_internal/images.bamlbytes 1693–1988
Fields
model
stringprompt
stringn
int | nullsize
string | nullquality
string | nullbackground
string | nulloutput_format
string | nulloutput_compression
int | nullmoderation
string | nullstyle
string | nulluser
string | nullresponse_format
string | null