Skip to main content
POST
/
v1
/
videos
/
generations
curl --request POST \
  --url https://api.evolink.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "seedance-2.0-fast-image-to-video",
  "prompt": "The camera slowly zooms in, the scene gradually comes to life",
  "image_urls": [
    "https://example.com/first-frame.jpg"
  ],
  "duration": 5,
  "aspect_ratio": "adaptive"
}
'
{
  "created": 1761313744,
  "id": "task-unified-1774857405-abc123",
  "model": "seedance-2.0-fast-image-to-video",
  "object": "video.generation.task",
  "progress": 0,
  "status": "pending",
  "task_info": {
    "can_cancel": true,
    "estimated_time": 165,
    "video_duration": 8
  },
  "type": "video",
  "usage": {
    "billing_rule": "per_second",
    "credits_reserved": 50,
    "user_group": "default"
  }
}

Authorizations

Authorization
string
header
required

##All endpoints require Bearer Token authentication##

Get API Key:

Visit the API Key Management Page to obtain your API Key

Add to request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
enum<string>
default:seedance-2.0-fast-image-to-video
required

Video generation model name

Available options:
seedance-2.0-fast-image-to-video
Example:

"seedance-2.0-fast-image-to-video"

prompt
string
required

Text prompt describing the desired video. Supports both Chinese and English, recommended no more than 500 characters for Chinese or 1000 words for English

Note:

  • This model does not support video_urls or audio_urls input
Example:

"The camera slowly zooms in, the scene gradually comes to life"

image_urls
string<uri>[]
required

Image URL array, 1–2 images

Image count and behavior:

Image CountBehaviorRole
1 imageFirst-frame image-to-videoAutomatically set as first_frame
2 imagesFirst-last-frame image-to-video1st image → first_frame, 2nd image → last_frame

Image requirements:

  • Supported formats: .jpeg, .png, .webp, .bmp, .tiff, .gif
  • Aspect ratio (width/height): 0.4 ~ 2.5
  • Width/height pixels: 300 ~ 6000 px
  • Max size per image: 30MB
  • Total request body size must not exceed 64MB, do not use Base64 encoding for large files
  • When providing first and last frames, both images can be identical. If aspect ratios differ, the first frame takes priority and the last frame will be automatically cropped to fit
  • Image URLs must be directly accessible by the server
Required array length: 1 - 2 elements
Example:
["https://example.com/first-frame.jpg"]
duration
integer
default:5

Video duration (seconds), defaults to 5 seconds

Details:

  • Supports any integer value between 415 seconds
  • Duration directly affects billing
Required range: 4 <= x <= 15
Example:

5

quality
enum<string>
default:720p

Video resolution, defaults to 720p

Options:

  • 480p: Lower clarity, lower cost
  • 720p: Standard clarity, this is the default
Available options:
480p,
720p
Example:

"720p"

aspect_ratio
enum<string>
default:16:9

Video aspect ratio, defaults to 16:9

Options:

  • 16:9 (landscape), 9:16 (portrait), 1:1 (square), 4:3, 3:4, 21:9 (ultrawide)
  • adaptive: Automatically selects the closest aspect ratio based on the first-frame image proportions

Pixel values per resolution:

Aspect Ratio480p720p
16:9864×4961280×720
4:3752×5601112×834
1:1640×640960×960
3:4560×752834×1112
9:16496×864720×1280
21:9992×4321470×630
Available options:
16:9,
9:16,
1:1,
4:3,
3:4,
21:9,
adaptive
Example:

"adaptive"

generate_audio
boolean
default:true

Whether to generate synchronized audio, defaults to true

Options:

  • true: Video includes synchronized audio at no additional charge
  • false: Output silent video
Example:

true

callback_url
string<uri>

HTTPS callback URL for task completion

Callback timing:

  • Triggered when the task is completed, failed, or cancelled
  • Sent after billing confirmation is complete

Security restrictions:

  • Only HTTPS protocol is supported
  • Callbacks to private IP addresses are prohibited (127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x, etc.)
  • URL length must not exceed 2048 characters

Callback mechanism:

  • Timeout: 10 seconds
  • Up to 3 retries after failure (at 1/2/4 seconds after failure respectively)
  • Callback response body format is consistent with the task query endpoint response format
  • A 2xx status code is considered successful; other status codes trigger retries
Example:

"https://your-domain.com/webhooks/video-task-completed"

Response

Video generation task created successfully

created
integer

Task creation timestamp

Example:

1761313744

id
string

Task ID

Example:

"task-unified-1774857405-abc123"

model
string

Actual model name used

Example:

"seedance-2.0-fast-image-to-video"

object
enum<string>

Specific type of the task

Available options:
video.generation.task
progress
integer

Task progress percentage (0-100)

Required range: 0 <= x <= 100
Example:

0

status
enum<string>

Task status

Available options:
pending,
processing,
completed,
failed
Example:

"pending"

task_info
object

Video task details

type
enum<string>

Output type of the task

Available options:
text,
image,
audio,
video
Example:

"video"

usage
object

Usage and billing information