Skip to main content

1. Obtain an API Key

Open the Ace Data Cloud application list, enter an available application, and copy the API Key. Obtain an Ace Data Cloud API Key

2. Send the First Request

The image in a successful response is located at data[].url. Below is the actual 1024×1536 result obtained through an Ace Data Cloud request on September 8, 2026 (task d56455e2-e7f7-4bcd-b935-475b0a1e0948, trace eb938601-8192-407f-b539-1e0554b697ec): White ceramic mug generated by GPT Image 2

3. Common Parameters

Common sizes: size: "auto" selects the canvas according to the ratio, pixels, and layout intent in the prompt; directly specify dimensions when exact pixels are required.

Models and Billing Methods

The displayed prices for the official API route are estimates before the request; the final amount is based on the actual Token usage in the response and usage records.

4. Multiple Image Generation

gpt-image-2, gpt-image-2.5-flare, gpt-image-2.5-sunburst, and gpt-image-2:reverse are billed by the number of successfully generated images; gpt-image-2:official, gpt-image-2.5-flare:official, and gpt-image-2.5-sunburst:official are billed according to the actual text input and image output Tokens in the response. Displayed prices are estimates before the request; the final amount is based on usage records.

5. Asynchronous Callback

After adding callback_url to the request body, the API first returns {"task_id": "..."} and POSTs the final result to that URL upon completion; synchronous requests still return created and data:
The callback receiver should use task_id for deduplication and validate the request source and data format.

6. Troubleshooting

Error responses include error.code, error.message, and trace_id. Provide trace_id when reporting an issue, and do not provide the API Key. For complete fields and real-time enums, refer to the OpenAI Images Generations API page. For image editing, see GPT Image 2 / 2.5 Image Editing.