Create a video generation task
Unified video interface supports VEO, Sora-2, Grok-Video and other models. Distinguish specific models through the model field; return id after submission and poll through GET /v1/video/query.
POST
/v1/video/createBody Parametersapplication/json
aspect_ratio string
Aspect ratio (VEO series)
duration oneOf
Video duration (seconds)
enable_upsample boolean
Whether to enable upsampling (VEO)
enhance_prompt boolean
Whether to automatically optimize prompt words (VEO)
images array
Reference image URL list (Tusheng Video)
items string string
model* string
Model name
orientation string
Direction (Sora-2)
prompt* string
Video content description
seconds oneOf
Duration compatible field
size string
Clarity (Sora-2)
type oneOf
Omni series task types
watermark boolean
Whether to add watermark; false=do not add
Responses
200 OK application/json
response-200 object
400 Bad request or validation failed application/json
response-400 object
properties error* object
401 Missing or invalid API Key application/json
response-401 object
1{
2"aspect_ratio": "16:9",
3"enhance_prompt": true,
4"model": "veo3",
5"prompt": "A majestic eagle soaring over mountains at sunset"
6}
1curl -X POST "https://api.digislash.com/v1/video/create" \
2-H "Authorization: Bearer <API Key>" \
3-H "Content-Type: application/json" \
4-d '{
5"aspect_ratio": "16:9",
6"enhance_prompt": true,
7"model": "veo3",
8"prompt": "A majestic eagle soaring over mountains at sunset"
9}'
1▼{
2"code": 0,
3▼"data": {
4"task_id": "task_example_001"
5},
6"message": "success"
7}
