SnapeditAPI
Đăng nhậpBắt đầu miễn phí
Đăng nhập
API Reference

Create image-to-video task

Generate a video from an image and motion prompt. The output video preserves the input aspect ratio, with the longest edge limited to 1024 pixels.

Model:image-to-video
Credit:129/video (0-8 seconds), 4/second (each additional second)
post/v1/videos/image-to-video

AuthorizationThis endpoint requires an API key. Pass it in the api-key header on every request. Learn more

Parameters

NameTypeStatusDescription
task_id
stringRequired
prompt
stringRequiredMotion prompt.
duration
numberOptionalOutput duration in seconds.(default: 4)

Responses

Task createdTaskCreatedResponse

FieldTypeDescription
task_idstringUnique task identifier. Poll the matching task-status endpoint for results.
statusstring
created_atintegerUnix timestamp of task creation
curl -X POST "https://api.snapedit.app/v1/videos/image-to-video" \
  -H "api-key: YOUR_API_KEY" \
  -F "task_id=value" \
  -F "prompt=value" \
  -F "duration=4"
Response
{
  "task_id": "task_abc123",
  "status": "CREATED",
  "created_at": 1745827200
}

Examples (1 example)

Prompt

The man smiles and turns his head left and right

Input

Input 1

Output