POST
/
v1
/
video
/
generations
Audio Video Generation
curl --request POST \
  --url https://api.example.com/v1/video/generations

Audio Video Generation

Generate video with audio using the Doubao seedance model. Supports image-to-video generation with optional audio.

Endpoint

POST /v1/video/generations

Authentication

All requests require a Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEY

Request Parameters

ParameterTypeRequiredDescription
modelstringYesModel ID, e.g., doubao-seedance-1-5-pro-251215
contentarrayYesArray of content objects (text and images)
generate_audiobooleanNoWhether to generate audio. Default: false
ratiostringNoVideo aspect ratio, e.g., 16:9, 9:16, 1:1
durationintegerNoVideo duration in seconds. Default: 5
watermarkbooleanNoWhether to add watermark. Default: true
resolutionstringNoVideo resolution, e.g., 480p, 720p, 1080p
draftbooleanNoWhether to generate a draft (lower quality, faster). Default: false

Content Object

FieldTypeDescription
typestringContent type: text or image_url
textstringText description (when type is text)
image_urlobjectImage URL object with url field (when type is image_url)

Request Example

curl -X POST "https://www.anyfast.ai/v1/video/generations" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-seedance-1-5-pro-251215",
    "content": [
      {
        "type": "text",
        "text": "A cat playing with a ball of yarn"
      },
      {
        "type": "image_url",
        "image_url": {
          "url": "https://example.com/reference.png"
        }
      }
    ],
    "generate_audio": true,
    "ratio": "16:9",
    "duration": 5,
    "watermark": false,
    "resolution": "480p",
    "draft": false
  }'

Response Example

{
  "id": "doubao_task_123456",
  "status": "submitted",
  "created_at": "2024-01-01T00:00:00Z"
}

Response Fields

FieldTypeDescription
idstringTask ID for querying status
statusstringTask status
created_atstringCreation timestamp