Skip to main content
POST
/
v1
/
generation
/
image-to-video
Submit Image-to-Video Task
curl --request POST \
  --url https://api.weryai.com/v1/generation/image-to-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "WERYAI_VIDEO_1_0",
  "prompt": "Make the person wave their hand",
  "image": "https://example.com/reference.jpg",
  "video_number": 1,
  "aspect_ratio": "16:9",
  "duration": 5,
  "generate_audio": false
}
'
{
  "status": 0,
  "desc": "success",
  "message": "success",
  "data": {
    "batch_id": 123456789,
    "task_ids": [
      "task_abc123"
    ]
  }
}

Authorizations

Authorization
string
header
required

Authenticate using Bearer token. Get your API Key from the WeryAI Console.

Example: Authorization: Bearer sk-xxxxxxxxxxxxxxxx

Body

application/json
model
string
required

Model Key. Supported models for image-to-video:

Model NameModel Key
WeryAI Video 1.0WERYAI_VIDEO_1_0
Veo 3.1VEO_3_1
Veo 3.1 FastCHATBOT_VEO_3_1_FAST
Sora 2SORA_2
Sora 2 ProSORA_2_PRO
Seedance 1.5 ProDOUBAO_1_5_PRO
Kling 2.6 ProKLING_V2_6_PRO
Kling O1KLING_O1
Wan2.6WAN_2_6
Runway Gen 4.5RUNWAY_4_5
Veo 3VEO_3
Veo 3 FastVEO_3_FAST
Pika 2.2PIKA_2_2
Hailuo 2.3 Standard FastHAILUO_2_3_STA_FAST
Hailuo 2.3 Pro FastHAILUO_2_3_PRO_FAST
Hailuo 2.3 StandardHAILUO_2_3_STA
Hailuo 2.3 ProHAILUO_2_3_PRO
Seedance 1.0 LiteDOUBAO_1_LITE
Seedance 1.0 ProDOUBAO
Seedance 1.0 Pro FastDOUBAO_1_PRO_FAST
Runway Gen 4RUNWAY
Kling 2.5 TurboKLING_V2_5_TURBO
Wan2.5WAN_2_5
Dreamina 3.0 ProDREAMINA_3_PRO
Dreamina 3.0DREAMINA_3
Kling V2.1 StandardKLING_V2_1
Kling V2.1 MasterKLING_V2_1_MASTER
Kling V2.1 ProKLING_V2_1_PRO
Example:

"WERYAI_VIDEO_1_0"

prompt
string
required

Positive text prompt

Required string length: 1 - 2000
Example:

"Make the person wave their hand"

image
string<uri>
required

Reference image (supports jpg, jpeg, png, webp)

Example:

"https://example.com/reference.jpg"

aspect_ratio
string
required

Video aspect ratio

Example:

"16:9"

duration
integer
required

Video duration (seconds)

Example:

5

negative_prompt
string

Negative text prompt

Maximum string length: 1000
video_number
integer
default:1

Number of videos to generate (currently only supports 1)

Required range: x <= 1
resolution
string

Resolution

generate_audio
boolean
default:false

Whether to generate audio

webhook_url
string<uri>

Callback URL

caller_id
integer<int64>

Caller ID

Response

Task submitted successfully

status
integer

Business status code (0 indicates success)

Example:

0

desc
string

Status description

Example:

"success"

message
string

Multi-language message

Example:

"success"

data
object