Skip to main content
POST
/
v1
/
generation
/
first-last-image-to-video
Submit First-and-Last-Frame-to-Video Task
curl --request POST \
  --url https://api.weryai.com/v1/generation/first-last-image-to-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "VEO_3_1",
  "prompt": "The camera slowly moves from the first frame to the last frame with smooth motion.",
  "first_pic_url": "https://example.com/start.jpg",
  "end_pic_url": "https://example.com/end.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 first-last-image-to-video:

Model NameModel Key
Veo 3.1VEO_3_1
Veo 3.1 FastVEO_3_1_FAST
Werydance 2.0WERYDANCE_2_0
Werydance 2.0 FastWERYDANCE_2_0_FAST
Seedance 1.5 ProDOUBAO_1_5_PRO
Kling 3.0 StandardKLING_V3_0_STA
Kling 3.0 ProKLING_V3_0_PRO
Kling 2.5 TurboKLING_V2_5_TURBO
Kling V2.1 ProKLING_V2_1_PRO
Example:

"VEO_3_1"

prompt
string
required

Positive text prompt

Required string length: 1 - 2000
Example:

"The camera slowly moves from the first frame to the last frame with smooth motion."

first_pic_url
string<uri>
required

Start frame image URL (supports jpg, jpeg, png, webp)

Example:

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

end_pic_url
string<uri>
required

End frame image URL (supports jpg, jpeg, png, webp)

Example:

"https://example.com/end.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
string

Whether to generate audio. Enter true or false manually.

Example:

"false"

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