API token from https://platform.acedata.cloud
Specifies the response format. Only application/json is supported.
application/json Upload uses multipart form data.
multipart/form-data Image(s) to edit. GPT image models: up to 16 images (png/webp/jpg) <50MB each. dall-e-2: single square PNG <4MB.
16Text description of the desired edit. Max 1000 characters for dall-e-2, 32000 for GPT image models.
GPT image models only. Transparency handling: transparent, opaque, or auto (default). Use png/webp output when requesting transparency.
transparent, opaque, auto How strongly to match input style/features. Supported for gpt-image-1; not supported for gpt-image-1-mini.
high, low Optional mask (PNG <4MB, same dimensions as first image). Transparent areas indicate editable regions.
Model for image editing. Only dall-e-3 and GPT image models are supported.
dall-e-3, gpt-image-1, gpt-image-1.5 Number of images to generate (1-10).
1 <= x <= 10Compression level (0-100%) for GPT image models when using webp or jpeg output.
0 <= x <= 100Return format for GPT image models: png, jpeg, or webp.
png, jpeg, webp Number of partial images in streaming responses (0-3). 0 returns only the final image event.
0 <= x <= 3Image quality. GPT image models: auto (default), high, medium, low. dall-e-2: standard only.
auto, high, medium, low, standard Format for dall-e-2 responses: url or b64_json. GPT image models always return base64.
url, b64_json "url"
Image size. GPT image models: 1024x1024, 1536x1024 (landscape), 1024x1536 (portrait), or auto. dall-e-2: 256x256, 512x512, or 1024x1024.
1024x1024, 1536x1024, 1024x1536, 256x256, 512x512, auto "1024x1024"
Optional callback URL. When provided, the API returns a task_id immediately and POSTs the result to this URL once image editing completes. The callback payload includes task_id, trace_id, success (boolean), and the full response data or error.