Application Process
To use the SeeDream Images Generation API, first obtain your API Token from the Ace Data Cloud Console for future use.
If you are not logged in or registered, you will be automatically redirected to the login page inviting you to register and log in, and after completion, you will be automatically returned to the current page.
One API Token can call all services on the platform without needing to apply separately for each service. The first application will grant a free quota for a trial experience; when the quota is insufficient, you can recharge the general balance in the console.
📘 Complete Documentation: SeeDream Images Generation API →
Request Example
The SeeDream Tasks API can be used to query the results of the SeeDream Images Generation API. For information on how to use the SeeDream Images Generation API, please refer to the documentation SeeDream Images Generation API. We will take a task ID returned by the SeeDream Images Generation API as an example to demonstrate how to use this API. Suppose we have a task ID: 20068983-0cc9-4c6a-aeb6-9c6a3c668be0, we will demonstrate how to pass in a task ID.Task Example Image

Setting Request Headers and Request Body
Request Headers include:accept: specifies that the response result should be in JSON format, set toapplication/json.authorization: the key to call the API, which can be selected directly after application.
id: the uploaded task ID.action: the operation method for the task.

Code Example
It can be seen that various language codes have been automatically generated on the right side of the page, as shown in the figure:
CURL
Response Example
Upon successful request, the API will return the detailed information of the task here. For example:success, the status of the video generation task at this time.task_id, the ID of the video generation task at this time.trace_id, the tracking ID of the video generation at this time.data, the result list of the image generation task at this time.image_url, the link to the image generation task at this time.prompt, the prompt word.size: the pixel size of the generated image.
Batch Query Operation
This is for querying the details of multiple task IDs, and unlike the above, the action needs to be selected as retrieve_batch. Request Body includes:ids: the array of uploaded task IDs.action: the operation method for the task.

Code Example
Some code examples are as follows:Response Example
Upon successful request, the API will return the specific details of all batch tasks this time. For example:items includes the specific details of batch tasks, and each task’s specific information is the same as the fields mentioned above.
items, all specific details of the batch task. It is an array, and each element of the array has the same format as the return result of querying a single task above.count, the number of tasks in this batch query.
created_at, the task creation time, Unix timestamp (seconds, float).started_at, the task start execution time, Unix timestamp (seconds, float).finished_at, the task completion time, Unix timestamp (seconds, float). This field is not returned if the task is not completed.elapsed, the time taken for task execution, measured in seconds (float, rounded to 3 decimal places). This field is not returned if the task is not completed.
CURL
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.

