Application Process
To use OpenAI Chat Completion 4o Image API, first open the Ace Data Cloud Console and copy your API Token.
If you are not logged in, you will be redirected to sign in and brought back to this page automatically.
A single API Token works across every service on the platform — no need to subscribe per service. New accounts receive free starter credit; when it runs low you can top up your shared balance in the console.
📘 Full documentation: OpenAI Chat Completion 4o Image API →
GPT-4o Drawing Model
Generating Images Based on Reference Images
Below is an example of generating a custom style image based on a given picture. First, let’s look at the input image:
The reference image is a photo of a real person. We can transform its style, for example, turning it into an anime-style image. The specific request example is:
message.content inside choices contains the complete generated conversation result, with the image embedded in Markdown format (the image link is a temporary address, please download and save it promptly). The generated image is indeed in anime style, as shown below:

Text-Only Image Generation
We can generate an image based on a prompt and receive the result in a conversational format. Below is an example with the promptCreate an image of a futuristic city at sunset:

Multiple Images to One Image
We can also use multiple reference images to generate a single image. For example, using a photo of a handsome man and a coffee image, we can generate an image of the man drinking coffee. Below are the reference images:

Generate an image of a man holding coffee and about to drink it:

Error Handling
When calling the API, if an error occurs, the API will return the corresponding error code and message. For example:400 token_mismatched: Bad request, possibly due to missing or invalid parameters.400 api_not_implemented: Bad request, possibly due to missing or invalid parameters.401 invalid_token: Unauthorized, invalid or missing authorization token.429 too_many_requests: Too many requests, you have exceeded the rate limit.500 api_error: Internal server error, something went wrong on the server.

