ApiframeApiframe Docs
Video GenerationVeo

Veo 3.1 Fast

Google Veo 3.1 Fast — faster video generation with audio, reference images, and last-frame control.

Use in Apiframe Studio

POST /v2/videos/generatemodel: "veo-3.1-fast"

Google Veo 3.1 Fast provides the same capabilities as Veo 3.1 — audio, reference images, last-frame control — optimized for speed.

See Video Generation overview for common request fields, response format, and error codes.

Model-specific parameters

ParameterTypeDefaultDescription
veoParams.durationinteger8Video duration in seconds: 4, 6, or 8
veoParams.aspect_ratiostringAspect ratio in "W:H" format (e.g. "16:9")
veoParams.seedintegerRandom seed for reproducibility
veoParams.imagestringURL of an input image for image-to-video
veoParams.resolutionstringOutput resolution: "720p" or "1080p"
veoParams.generate_audiobooleantrueWhether to generate audio along with the video
veoParams.negative_promptstringThings to avoid in the video (max 2,000 chars)
veoParams.last_framestringURL of an image to use as the last frame
veoParams.reference_imagesstring[]Up to 3 reference image URLs for style guidance

Credit cost

VariantCredits
4s3
4s-audio5
6s4
6s-audio6
8s5
8s-audio8

Code examples

curl -X POST https://api.apiframe.ai/v2/videos/generate \
  -H "X-API-Key: afk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a cat sitting on a windowsill watching rain fall outside",
    "model": "veo-3.1-fast",
    "veoParams": {
      "duration": 4,
      "generate_audio": true
    }
  }'
import requests

response = requests.post(
    "https://api.apiframe.ai/v2/videos/generate",
    headers={
        "X-API-Key": "afk_your_api_key_here",
        "Content-Type": "application/json",
    },
    json={
        "prompt": "a cat sitting on a windowsill watching rain fall outside",
        "model": "veo-3.1-fast",
        "veoParams": {
            "duration": 4,
            "generate_audio": True,
        },
    },
)
print(response.json())
const response = await fetch("https://api.apiframe.ai/v2/videos/generate", {
  method: "POST",
  headers: {
    "X-API-Key": "afk_your_api_key_here",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    prompt: "a cat sitting on a windowsill watching rain fall outside",
    model: "veo-3.1-fast",
    veoParams: {
      duration: 4,
      generate_audio: true,
    },
  }),
});
console.log(await response.json());

Try it

POST/v2/videos/generateTry it

On this page