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

Reference Image Video

Generate video using reference images with the Doubao seedance model. Reference images are used to guide the style and content of the generated video.

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-0-lite-i2v-250428
contentarrayYesArray of content objects with text and reference images

Content Object

FieldTypeDescription
typestringContent type: text or image_url
textstringText prompt. Use [img1], [img2] etc. to reference images in the prompt
image_urlobjectImage URL object with url field
rolestringImage role: reference_image for reference images

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-0-lite-i2v-250428",
    "content": [
      {
        "type": "text",
        "text": "[img1] boy and [img2] dog playing in the park"
      },
      {
        "type": "image_url",
        "image_url": {
          "url": "https://example.com/boy-reference.png"
        },
        "role": "reference_image"
      },
      {
        "type": "image_url",
        "image_url": {
          "url": "https://example.com/dog-reference.png"
        },
        "role": "reference_image"
      }
    ]
  }'

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