Skip to main content
POST
/
v3
/
async
/
veo-3.1-fast-generate-firstlastframe
Veo 3.1 Fast First/Last Frame Video Generation
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/veo-3.1-fast-generate-firstlastframe \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "seed": 123,
  "image": "<string>",
  "prompt": "<string>",
  "last_image": "<string>",
  "resolution": "<string>",
  "aspect_ratio": "<string>",
  "sample_count": 123,
  "enhance_prompt": true,
  "generate_audio": true,
  "negative_prompt": "<string>",
  "duration_seconds": 123,
  "person_generation": "<string>"
}
'
{
  "task_id": "<string>"
}
Generate a video by specifying first-frame and last-frame images together with a text prompt. The model interpolates between the two frames to generate coherent motion content. Uses the Google Veo 3.1 Fast model (veo-3.1-fast-generate-001) for faster generation.
This is an asynchronous API and only returns the asynchronous task’s task_id. You should use this task_id to request the Get Task Result API to retrieve the generated result.

Request Headers

Content-Type
string
required
Enum value: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API key}}.

Request Body

seed
integer
Random seed for deterministic generation. The same seed and parameters will produce the same result.Value range: [0, 4294967295]
image
string
required
First-frame image, supporting image URLs or Base64 encoding. Supports JPEG and PNG formats, up to 20MB.
prompt
string
required
Text prompt describing the video content and the motion process between the first and last frames.
last_image
string
required
Last-frame image, supporting image URLs or Base64 encoding. Supports JPEG and PNG formats, up to 20MB.
resolution
string
default:"720p"
Output video resolution.Allowed values: 720p, 1080p
aspect_ratio
string
default:"16:9"
Video aspect ratio. 16:9 is landscape, and 9:16 is portrait.Allowed values: 16:9, 9:16
sample_count
integer
default:1
Number of videos to generate, ranging from 1 to 4.Value range: [1, 4]
enhance_prompt
boolean
default:true
Whether to enhance the input prompt to improve generation quality.
generate_audio
boolean
default:false
Whether to generate an audio track.
negative_prompt
string
Negative prompt describing content you do not want to appear in the video.
duration_seconds
integer
default:8
Video duration in seconds. Options: 4, 6, or 8 seconds.Allowed values: 4, 6, 8
person_generation
string
default:"allow_adult"
Person generation control. allow_adult: allow generating adults; disallow: prohibit generating people.Allowed values: allow_adult, disallow

Response Information

task_id
string
Use task_id to request the Get Task Result API to retrieve the generated output.