Veo Tasks API Integration and Usage
The main function of the Veo Tasks API is to query the execution status of a task by entering the task ID generated by the Veo Videos Generation API.
This document provides detailed integration instructions for the Veo Tasks API, helping you easily integrate and make full use of its powerful features. With the Veo Tasks API, you can easily query the execution status of Veo Videos Generation API tasks.
¶ Application Process
To use the Veo Videos Generation API, first obtain your API Token from the Ace Data Cloud Console and keep it for later use.

If you have not yet logged in or registered, you will be automatically redirected to the login page to register and log in. Once completed, you will be automatically returned to the current page.
A general-purpose application's API Key can be used for services enabled for the account; a dedicated application's Key can be used within that application's service scope. Please check the Key's permissions, validity period, and limits, and confirm that the application balance is sufficient to pay for this request. Available trial credits are subject to what is displayed in your account. If the balance is insufficient, click the "Recharge" button.
📘 Full documentation: Veo Videos Generation API →
¶ Request Example
The Veo Tasks API can be used to query the results of the Veo Videos Generation API. For information on how to use the Veo Videos Generation API, please refer to the Veo Videos Generation API documentation.
We will use a task ID returned by the Veo Videos Generation API service as an example to demonstrate how to use this API. Suppose we have a task ID: 1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed. Next, we will demonstrate how to query it by passing in a task ID.
¶ Task Example Image

¶ Set the Request Headers and Request Body
Request Headers include:
accept: Specifies that the response should be received in JSON format. Set this toapplication/json.authorization: The key used to call the API. After applying for it, you can select it directly from the dropdown.
Request Body includes:
id: The submitted task ID.action: The operation to perform on the task.
Set them as shown below:

¶ Code Examples
You can see that code in various languages has already been automatically generated on the right side of the page, as shown below:

Some code examples are as follows:
¶ CURL
curl -X POST 'https://api.acedata.cloud/veo/tasks' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"id": "1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed",
"action": "retrieve"
}'
¶ Python
import requests
url = "https://api.acedata.cloud/veo/tasks"
headers = {
"accept": "application/json",
"authorization": "Bearer {token}",
"content-type": "application/json"
}
payload = {
"id": "1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed",
"action": "retrieve"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
¶ Response Example
After a successful request, the API will return the details of the video task. For example:
{
"_id": "68834c16550a4144a5112589",
"id": "1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed",
"api_id": "52a0fa83-3c78-4793-b45a-c1a5c869ae46",
"application_id": "b7341df0-3a87-40ef-8f3c-a7dda97816a2",
"created_at": 1753435158.509,
"started_at": 1753435158.569,
"finished_at": 1753435250.969,
"elapsed": 92.4,
"credential_id": "1f64eaaa-eff0-4f18-bfc2-8c5b1e7949ae",
"request": {
"callback_url": "https://webhook.site/aed5cd28-f8aa-4dca-9480-8ec9b42137dc",
"action": "text2video",
"model": "veo2-fast",
"prompt": "White ceramic coffee mug on glossy marble countertop with morning window light. Camera slowly rotates 360 degrees around the mug, pausing briefly at the handle."
},
"trace_id": "d1d53c04-58c5-4c40-bb63-f00188540e56",
"type": "videos",
"user_id": "ad7afe47-cea9-4cda-980f-2ad8810e51cf",
"response": {
"success": true,
"task_id": "1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed",
"trace_id": "d1d53c04-58c5-4c40-bb63-f00188540e56",
"data": [
{
"id": "2f43ceed37944b4d836e1a1899dad0a1",
"video_url": "https://platform.cdn.acedata.cloud/veo/1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed.mp4",
"created_at": "2025-07-25 17:19:20",
"complete_at": "2025-07-25 17:21:45",
"state": "succeeded"
}
]
}
}
The returned result contains multiple fields. The request field is the request body used when the task was initiated, while the response field is the response body returned after the task is completed. The fields are described below.
id, the ID of the generated video task, used to uniquely identify this video generation task.request, the request information in the video task query.response, the response information in the video task query.created_at, the task creation time, as a Unix timestamp (seconds, floating-point).started_at, the time the task began execution, as a Unix timestamp (seconds, floating-point).finished_at, the task completion time, as a Unix timestamp (seconds, floating-point). This field is not returned when the task is incomplete.elapsed, the task execution time in seconds (floating-point, rounded to 3 decimal places). This field is not returned when the task is incomplete.
¶ Batch Query Operation
This queries video task details for multiple task IDs. Unlike the above, you need to select retrieve_batch for action.
Request Body includes:
ids: An array of submitted task IDs.action: The operation to perform on the tasks.
Set them as shown below:

¶ Code Examples
You can see that code in various languages has already been automatically generated on the right side of the page, as shown below:

Some code examples are as follows:
¶ Response Example
After a successful request, the API will return the specific details of all video tasks in this batch. For example:
{
"items": [
{
"_id": "68834c16550a4144a5112589",
"id": "1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed",
"api_id": "52a0fa83-3c78-4793-b45a-c1a5c869ae46",
"application_id": "b7341df0-3a87-40ef-8f3c-a7dda97816a2",
"created_at": 1753435158.509,
"started_at": 1753435158.569,
"finished_at": 1753435250.969,
"elapsed": 92.4,
"credential_id": "1f64eaaa-eff0-4f18-bfc2-8c5b1e7949ae",
"request": {
"callback_url": "https://webhook.site/aed5cd28-f8aa-4dca-9480-8ec9b42137dc",
"action": "text2video",
"model": "veo2-fast",
"prompt": "White ceramic coffee mug on glossy marble countertop with morning window light. Camera slowly rotates 360 degrees around the mug, pausing briefly at the handle."
},
"trace_id": "d1d53c04-58c5-4c40-bb63-f00188540e56",
"type": "videos",
"user_id": "ad7afe47-cea9-4cda-980f-2ad8810e51cf",
"response": {
"success": true,
"task_id": "1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed",
"trace_id": "d1d53c04-58c5-4c40-bb63-f00188540e56",
"data": [
{
"id": "2f43ceed37944b4d836e1a1899dad0a1",
"video_url": "https://platform.cdn.acedata.cloud/veo/1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed.mp4",
"created_at": "2025-07-25 17:19:20",
"complete_at": "2025-07-25 17:21:45",
"state": "succeeded"
}
]
}
},
{
"_id": "68834c16550a4144a5112589",
"id": "1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed",
"api_id": "52a0fa83-3c78-4793-b45a-c1a5c869ae46",
"application_id": "b7341df0-3a87-40ef-8f3c-a7dda97816a2",
"created_at": 1753435158.509,
"started_at": 1753435158.569,
"finished_at": 1753435250.969,
"elapsed": 92.4,
"credential_id": "1f64eaaa-eff0-4f18-bfc2-8c5b1e7949ae",
"request": {
"callback_url": "https://webhook.site/aed5cd28-f8aa-4dca-9480-8ec9b42137dc",
"action": "text2video",
"model": "veo2-fast",
"prompt": "White ceramic coffee mug on glossy marble countertop with morning window light. Camera slowly rotates 360 degrees around the mug, pausing briefly at the handle."
},
"trace_id": "d1d53c04-58c5-4c40-bb63-f00188540e56",
"type": "videos",
"user_id": "ad7afe47-cea9-4cda-980f-2ad8810e51cf",
"response": {
"success": true,
"task_id": "1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed",
"trace_id": "d1d53c04-58c5-4c40-bb63-f00188540e56",
"data": [
{
"id": "2f43ceed37944b4d836e1a1899dad0a1",
"video_url": "https://platform.cdn.acedata.cloud/veo/1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed.mp4",
"created_at": "2025-07-25 17:19:20",
"complete_at": "2025-07-25 17:21:45",
"state": "succeeded"
}
]
}
}
],
"count": 2
}
The response contains several fields, where items contains the details of the batch video tasks, and the details of each video task have the same fields as above. The field information is as follows.
items, all the details of the batch video tasks. It is an array, and each element in the array has the same format as the response for querying a single task above.count, the number of video tasks queried in this batch.
¶ CURL
curl -X POST 'https://api.acedata.cloud/veo/tasks' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"ids": ["1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed","1ebe4f2b-59ba-4385-a4ea-0ce8a3fe12ed"],
"action": "retrieve_batch"
}'
¶ 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.
¶ Error Response Example
{
"success": false,
"error": {
"code": "api_error",
"message": "fetch failed"
},
"trace_id": "2cf86e86-22a4-46e1-ac2f-032c0f2a4e89"
}
¶ Conclusion
Through this document, you have learned how to use the Veo Tasks API to query all the details of a single video task or a batch of video tasks. We hope this document helps you better integrate and use the API. If you have any questions, please feel free to contact our technical support team.
