Vidu API
Dashboard
Docs
Sign in

Get Generation

GET https://api.vidu.com/ent/v2/tasks/{id}/creations

Request Header

FieldValueDescription
Content-Typeapplication/jsonData Exchange Format
AuthorizationToken {your api key}Replace {} with your API key

Request Body

FieldTypeRequiredDescription
idStringRequiredTask id
The id is returned upon the successful creation of a task by the Start Generating API
curl -X GET -H "Authorization: Token {your_api_key}" https://api.vidu.com/ent/v2/tasks/{your_id}/creations

Response Body

FieldSubfieldTypeDescription
stateStringIt will be returned to a specific processing state:
- created created task successfully
- queueing task in queue
- processing processing
- success generation successful
- failed task failed
err_codeStringIn case of an error, a specific error code will be returned.
creditsIntThe number of credits consumed by this task.
Unit: credits.
payloadStringThe payload parameter used for this call
creationsArrayGenerated results
idStringCreation id
urlStringThe URL of the generated results, valid for one hour
cover_urlStringThe cover URL of the generated results, valid for one hour
{
"state": "success",
"err_code": "",
"credits": 4,
"payload":"",
"creations": [
{
"id": "your_creations_id",
"url": "your_generated_results_url",
"cover_url": "your_generated_results_cover_url"
}
]
}