API token from https://platform.acedata.cloud
Specifies the format of the response from the server.
application/json A text description of the desired image(s). The maximum length is 32000 characters for GPT image models, 1000 characters for dall-e-2, and 4000 characters for dall-e-3.
"A cute baby sea otter"
The model to use for image generation. Defaults to dall-e-2 unless a GPT-image-only parameter is supplied.
dall-e-3, gpt-image-1, gpt-image-1.5 Set transparency for GPT image models. Must be transparent, opaque, or auto (default). If transparent, choose an output format that supports alpha (png/webp).
transparent, opaque, auto Content-moderation level for GPT image models. low relaxes filtering; auto applies the default.
low, auto How many images to generate. Must be between 1 and 10. For dall-e-3, only 1 is supported.
1 <= x <= 101
Compression level (0-100%) for GPT image models when using webp or jpeg output formats.
0 <= x <= 100Return format for GPT image models. Must be png, jpeg, or webp.
png, jpeg, webp Number of partial images to emit during streaming (0-3). 0 returns the final image in one event.
0 <= x <= 3The size of the generated images. GPT image models: 1024x1024, 1536x1024 (landscape), 1024x1536 (portrait), or auto (default). dall-e-2: 256x256, 512x512, or 1024x1024. dall-e-3: 1024x1024, 1792x1024, or 1024x1792.
1024x1024, 1792x1024, 1024x1792, 1536x1024, 1024x1536, 256x256, 512x512, auto "1024x1024"
Quality of the image. GPT image models: auto (default), high, medium, low. dall-e-3: hd or standard. dall-e-2: standard.
auto, high, medium, low, hd, standard "auto"
The format in which dall-e-2/dall-e-3 images are returned: url or b64_json. Not supported for GPT image models (they always return base64).
url, b64_json "url"
Style for dall-e-3: vivid (hyper-real/dramatic) or natural (more neutral).
vivid, natural "vivid"
Optional callback URL. When provided, the API returns a task_id immediately and POSTs the result to this URL once image generation completes. The callback payload includes task_id, trace_id, success (boolean), and the full response data or error.