/ent/v2/tasksTask Management
/ent/v2/tasksAuthorizationstring*Replace {} with your API key
Token {your api key}created_at.fromstringStart time for querying the task list, defaults to 7 days
created_at.tostringEnd time for querying the task list, defaults to 7 days
task_idsarrayList of task IDs to query
templatesarrayTemplates to query
model_versionsarrayModel versions of the tasks to query
q1, q2
resolutionsarrayResolutions of the tasks to query
statesarrayStatus of the tasks to query, defaults to all
pager.pageintegerPage number, starts from page 0 by default
pager.pageszintegerNumber of items per page, default 10, maximum 100
pager.page_tokenstringStarting token for the next query
curl --request GET \
--url 'https://api.vidu.com/ent/v2/tasks?created_at.from=string&created_at.to=string&task_ids=%5B%5D&templates=%5B%5D&model_versions=%5B%5D&resolutions=%5B%5D&states=%5B%5D&pager.page=0&pager.pagesz=0&pager.page_token=string' \
--header 'Authorization: Token {your api key}'{
"next_page_token": "string",
"tasks": [
{
"id": "string",
"key_id": "string",
"type": "unspecified",
"template": "string",
"model": "string",
"prompt": "string",
"images": [
"string"
],
"duration": 0,
"resolution": "string",
"aspect_ratio": "string",
"state": "created",
"creations": [
{
"id": "string",
"url": "string",
"cover_url": "string",
"watermarked_url": "string",
"moderation_url": [
"string"
],
"video": {
"duration": 0,
"fps": 0,
"resolution": {
"width": 0,
"height": 0
}
}
}
],
"created_at": "2019-08-24T14:15:22Z",
"credits": 0
}
]
}application/jsonResponse fields
next_page_tokenstringPass next_page_token to query the next page
tasksarrayTask list information
idstringTask ID
key_idstringkey_id used when creating the task
templatestringTemplate enum value used by this task (returned only when type=template)
modelstringModel used by this task
promptstringPrompt used for this task
imagesarrayImages used for this task
durationintegerGeneration duration of this task
resolutionstringResolution of this task
aspect_ratiostringAspect ratio of this task
creationsobjectInformation about the output generated by this task
creations.idstringOutput ID
creations.urlstringOutput URL (without watermark), valid for 24 hours
creations.watermarked_urlstringOutput URL (with watermark), valid for 24 hours
creations.cover_urlstringOutput cover image, valid for 24 hours
creations.videoobjectVideo information generated by this task
creations.video.durationnumberDuration of the current video
creations.video.fpsintegerFrame rate of the current video
creations.video.resolutionobjectCurrent resolution information
creations.video.resolution.widthintegerWidth of the current video (px)
creations.video.resolution.heightintegerHeight of the current video (px)
statestringProcessing status:
queueing task is queued
processing task is processing
success task succeeded
failed task failed (creation failed, generation failed)
created_atstringCreation time of this task
creditsintegerCredits consumed by this task