Skip to content
Google · Veo

Veo 3.1 API

Generate videos from text or images with Google's Veo 3.1 fast model on Openrouter API.

Video generationVideoAsync task
Model id
veo3.1-fast

Veo 3.1 API pricing

All prices in USD. Openrouter API rates compared with the official list price for the same unit.

OptionOpenrouter APIOfficialSave
1080P$0.1031$0.1172−12%
4K$0.2475$0.2812−12%
720PDefault$0.0825$0.09375−12%

Prices are per second.

What is Veo 3.1?

Veo 3.1 from Google brings text-to-video and image-to-video generation to Openrouter API through veo3.1-fast. This fast variant is suited to quick previews and iterations, helping teams test video concepts before choosing a final direction. Generate 8-second clips in landscape or portrait, choose 720p, 1080p, or 4K output, and use reference images or start and end frames to guide generation. The API also offers optional GIF output and a remix endpoint for continuing generated videos from 8 seconds to 15 seconds.

Submit requests through Openrouter API with Bearer Token authentication; generation is asynchronous and returns a task ID for subsequent status queries. Openrouter API uses pay-as-you-go pricing and bills only successful requests. Rates are $0.0825 per second for 720P, $0.1031 per second for 1080P, and $0.2475 per second for 4K. The default configuration is about 12% below the developer's list price.

Veo 3.1 highlights

Text and image inputs

Generate video from a text prompt or publicly accessible reference image URLs. Frame-to-video mode uses the first image as the start frame and the second as the end frame.

Three output resolutions

Choose 720p, 1080p, or 4K output. Supported aspect ratios are 16:9 for landscape and 9:16 for portrait.

Video continuation

Use the remix endpoint to extend a successfully generated video from 8 seconds to 15 seconds with a continuation prompt.

Optional submission controls

Enable content moderation before submission with nsfw_check, or set official_fallback to true to automatically retry a request the standard edition cannot complete on the -official edition. Both default to false.

How to call the Veo 3.1 API in 4 steps

  1. 01

    Get an API key

    Sign in to Openrouter API, top up from $50, and create an sk-ora key in the console.

  2. 02

    Set the base URL

    Use https://openrouterapi.ru/v1 as the base URL in your SDK or HTTP client.

  3. 03

    Send the request

    Call POST /v1/videos/generations with "model": "veo3.1-fast" and the parameters below.

  4. 04

    Handle the response

    The response contains a task_id. Poll GET /v1/tasks/{task_id} until the status is completed, then download the result URLs.

# model can be "veo3.1-fast", or the compatible alias "veo3.1-fast-ext"
curl --request POST \
  --url https://openrouterapi.ru/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "veo3.1-fast",
    "prompt": "Dolphins leaping in the azure ocean",
    "duration": 8,
    "aspect_ratio": "16:9",
    "image_urls": ["https://cdn.example.com/doc/9998238783208208-9972597b-255d-4e7e-9649-e6ee38a837aa-image_task_01K88B53MTK41PP5KGDTG2PA5P_0.png"]
  }'

Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredveo3.1-fastVideo generation model name
nsfw_checkbooleanOptionalfalseWhether to run content moderation before submitting the video task.
promptstringRequired—Text description for video generation
durationintegerOptional—Video duration in seconds
aspect_ratiostringOptional—Video aspect ratio
generation_typestringOptional—Video generation type
image_urlsarray\<url\>Optional—Array of reference image URLs for image-to-video generation
resolutionstringOptional—Video resolution
enable_gifbooleanOptional—Enable GIF output format. Default: false
official_fallbackbooleanOptionalfalseWhether to use the `-official` edition as fallback

What you can build with Veo 3.1

Video concept previews

Build a workflow that turns text descriptions into short video concepts for review and iteration.

Image-driven motion studies

Use reference images to explore video treatments, or provide start and end frames to guide a transition.

Landscape and portrait drafts

Generate 16:9 and 9:16 clips for teams developing video content for different layouts.

Continued video sequences

Let users submit continuation prompts for successful clips, extending an 8-second result to 15 seconds through remix.

Tips for better results

  • 01

    Start with default resolution

    Use resolution set to 720p for initial iterations. Its Openrouter API rate is $0.0825 per second; choose 1080p or 4k when you need those output resolutions.

  • 02

    Set image mode explicitly

    Set generation_type to frame for start/end-frame generation or reference for reference image-to-video. If omitted, the mode defaults based on image count: two images for frame mode and three for reference mode.

  • 03

    Track asynchronous tasks

    Store the returned task ID and query its status rather than expecting a finished video in the submission response. Remix requires the original task to have status success.

  • 04

    Check GIF compatibility

    If you enable enable_gif, use 720p output. GIF output cannot be combined with 1080p or 4k resolution.

Limits and things to know

  • Initial generation supports only 8-second videos; remix can extend a generated video to 15 seconds.

  • Image input is limited to three images, with a maximum file size of 10MB and supported formats of .jpeg, .jpg, .png, and .webp.

  • Generated video links expire after 24 hours, so save outputs promptly.

Veo 3.1 API FAQ

How much does Veo 3.1 cost on Openrouter API?

Openrouter API pricing is $0.0825 per second for 720P, $0.1031 per second for 1080P, and $0.2475 per second for 4K. The default configuration is about 12% below the developer's list price, with pay-as-you-go billing only for successful requests.

How do I call the Veo 3.1 fast API?

Send a Bearer-authenticated POST request to https://openrouterapi.ru/v1/videos/generations with model set to veo3.1-fast and a required prompt. The response returns a task ID for subsequent queries; veo3.1-fast-ext is an interchangeable alias that produces identical results.

Which generation parameters does Veo 3.1 fast support?

Controls include duration, aspect_ratio, generation_type, image_urls, resolution, and enable_gif, plus nsfw_check and official_fallback. Supported resolutions are 720p, 1080p, and 4k, and aspect ratios are 16:9 and 9:16.

What are the video duration and image input limits?

Initial generation is fixed at 8 seconds, while remix can continue a successful video to 15 seconds. Image-to-video accepts up to three publicly accessible image URLs, with a maximum file size of 10MB and JPEG, PNG, or WebP formats.

Can I use generated videos commercially?

Commercial use is subject to the model developer's terms. Review Google's applicable terms and any rights requirements for your prompts and reference images before publishing.

How does Veo 3.1 fast compare with quality and lite?

The documentation positions veo3.1-fast for quick previews and iterations, veo3.1-quality for final production, and veo3.1-lite for low-cost batch generation. Quality does not support reference mode, while lite does not support generation_type or image_urls.

Related models

Depth: 250+ models · Minimum top-up $50

Start building with Veo 3.1

One key, pay as you go from $50, billed only for successful requests.