Application Process
To use the Grok Videos 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, after which you will be automatically returned to the current page.
One API Token is sufficient to call all services on the platform, and there is no need 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: Grok Videos Generation API →
Request Example
The Grok Tasks API can be used to query the results of the Grok Videos Generation API.Setting Request Headers and Request Body
Request Headers include:accept: Specifies that the response should be in JSON format, set toapplication/json.authorization: The key to call the API, which can be selected directly after application.
id: The task ID to be queried.action: The operation method for the task, set toretrievefor a single query.
CURL Code Example
Response Example
Upon a successful request, the API will return the details of the task here. Therequest field contains the request body when the task was initiated, and the response field contains the response body returned after the task is completed, for example:
id: The ID of the generated task, used to uniquely identify this generation task.request: The request information in the queried task.response: The return information in the queried task.created_at: The task creation time, Unix timestamp (seconds, float).started_at: The time the task started executing, Unix timestamp (seconds, float).finished_at: The time the task was completed, Unix timestamp (seconds, float). This field is not returned if the task is not completed.elapsed: The time taken for task execution, in seconds (float, rounded to 3 decimal places). This field is not returned if the task is not completed.
Batch Query Operation
When querying the details of multiple task IDs, set theaction to retrieve_batch and pass the task ID array through ids:
Request Body includes:
ids: The array of task IDs to be queried.action: The operation method for the task, set toretrieve_batchfor batch queries.

