veo-3.1-fast-generate-preview is Google's fast video generation model for prompt-guided creation, editing, and motion workflows.
Modalities
inTextinImageinFileoutVideo
Price
$0.165/ call
Channels
Every channel serves the same model, but they differ in price and stability. On each API key in the Platform, you pick a primary and a backup channel per vendor, and each billing line shows which channel served the request.
Provider
Discount
/ call
Officialstable
—
$0.17
Capabilities
Vision
Quick start
# 1. start the job curl https://api.mirapi.ai/v1/video/generations \ -H "Authorization: Bearer $MIRAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "veo-3.1-fast-generate-preview", "prompt": "A kite over the sea", "duration": 5 }' # 2. poll until status is "completed" curl https://api.mirapi.ai/v1/video/generations/$TASK_ID \ -H "Authorization: Bearer $MIRAPI_API_KEY"
import os, time, requests h = {"Authorization": f"Bearer {os.environ['MIRAPI_API_KEY']}"} job = requests.post( "https://api.mirapi.ai/v1/video/generations", # changed headers=h, json={"model": "veo-3.1-fast-generate-preview", "prompt": "A kite over the sea", "duration": 5}, ).json() while job["status"] not in ("completed", "failed"): time.sleep(5) job = requests.get(f"https://api.mirapi.ai/v1/video/generations/{job['id']}", headers=h).json()
const h = { Authorization: `Bearer ${process.env.MIRAPI_API_KEY}`, "Content-Type": "application/json", }; let job = await (await fetch("https://api.mirapi.ai/v1/video/generations", { // changed method: "POST", headers: h, body: JSON.stringify({ model: "veo-3.1-fast-generate-preview", prompt: "A kite over the sea", duration: 5 }), })).json(); while (!["completed", "failed"].includes(job.status)) { await new Promise((r) => setTimeout(r, 5000)); job = await (await fetch(`https://api.mirapi.ai/v1/video/generations/${job.id}`, { headers: h })).json(); }
Links
Wire veo-3.1-fast-generate-preview into your product
Start free1M free tokens to start, no card required. It’s OpenAI-compatible, so you only change the base URL.