Models Hub
API ReferenceVideo

Create a video generation task.

Create a video generation task. This generic endpoint covers `/v1/video/generations` providers such as HappyHorse, Seedance, Veo, and Wanxiang.

Edit this page
POST
/v1/video/generations

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/video/generations" \  -H "Content-Type: application/json" \  -d '{    "model": "veo-3.1-generate-preview",    "prompt": "A robotic arm assembling chips in a modern factory",    "duration": 8,    "size": "16:9"  }'
{
  "id": "task_123456",
  "task_id": "task_123456",
  "object": "video.generation",
  "status": "succeeded",
  "model": "string",
  "created_at": 0,
  "updated_at": 0,
  "url": "http://example.com",
  "content_url": "http://example.com",
  "output": [
    {}
  ],
  "error": {}
}
{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "string"
  }
}