Available now

Veo 3.1 Fast

By Google

Generate videos from a first/last frame using Google's Veo 3.1 Fast

Model ID
Maker
Google

Model id

Use this in every request
veo3.1/fast/first-last-frame-to-video

This model has other modes with their own ids: veo3.1/fast, veo3.1/fast/image-to-video, veo3.1/fast/reference-to-video.

Run it

Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "veo3.1/fast/first-last-frame-to-video",
  "input": {
    "prompt": "A red ceramic cup on a wooden table, soft morning light",
    "first_frame_url": "https://example.com/input.png",
    "last_frame_url": "https://example.com/input.png"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "veo3.1/fast/first-last-frame-to-video", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light","first_frame_url":"https://example.com/input.png","last_frame_url":"https://example.com/input.png"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Input

Input fields for veo3.1/fast/first-last-frame-to-video
NameTypeDescription
promptrequiredstring
The text prompt describing the video you want to generate
aspect_ratiostring (enum)
The aspect ratio of the generated video.

Default: auto

One of: auto, 16:9, 9:16

durationstring (enum)
The duration of the generated video.

Default: 8s

One of: 4s, 6s, 8s

negative_promptstring
A negative prompt to guide the video generation.
resolutionstring (enum)
The resolution of the generated video.

Default: 720p

One of: 720p, 1080p, 4k

generate_audioboolean
Whether to generate audio for the video.

Default: true

seedinteger
The seed for the random number generator.
auto_fixboolean
Whether to automatically attempt to fix prompts that fail content policy or other validation checks by rewriting them.

Default: false

safety_tolerancestring (enum)
The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict.

Default: 4

One of: 1, 2, 3, 4, 5, 6

first_frame_urlrequiredstring (image URL)
URL of the first frame of the video
last_frame_urlrequiredstring (image URL)
URL of the last frame of the video

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"outputs": [
  { "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]

Pricing

  • 1080p · audio off$0.1585/ second
  • 1080p · audio on$0.2377/ second
  • 4k · audio off$0.4754/ second
  • 4k · audio on$0.5547/ second
  • 720p · audio off$0.1585/ second
  • 720p · audio on$0.2377/ second

The exact charge for your input comes from a quote. How charges settle

API docs