{"slug":"veo-3.1","routeSlug":"veo-31","name":"Veo 3.1","developer":"Google DeepMind","modality":"video","inferenceTypes":["txt2video"],"surface":"native-v2","infrastructure":"partner-cloud","planRequired":"premium","status":"test_model","tags":["External","Partner Cloud","Premium"],"description":"Google's Veo 3.1 for text-to-video. Cinematic 4, 6 or 8-second clips at 720p or 1080p, landscape or portrait, with dialogue, sound effects and music generated in sync with the picture.","useCases":["Run Veo 3.1 via unified v2 jobs with free pre-run /price quotes","Partner-hosted flagship model accessible on Premium accounts"],"samplePrompt":"Close-up of a late-night radio host in his forties with headphones around his neck, leaning into a large studio microphone in a dim booth lit by a warm desk lamp and glowing ON AIR sign. He smiles and says in a low, calm voice: \"It's two a.m., and this one goes out to everyone still awake.\" Faint hum of the studio, a soft click of a fader.","pricing":{"unit":"Partner rate (estimated before run)","headlineRate":"Live estimate via /api/v2/quote","hasLiveQuoteEndpoint":true,"quoteEndpoint":"/api/v2/quote","isEstimated":true,"notes":"Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion."},"specs":{},"links":{"html":"https://runstage.dev/models/veo-31","markdown":"https://runstage.dev/models/veo-31.md","json":"https://runstage.dev/models/veo-31.json","playground":"https://runstage.dev/playground?model=veo-3.1"},"snippets":{"curl":"# 1. Free pre-run retail quote\ncurl -X POST 'https://runstage.dev/api/v2/quote' \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"model\":\"veo-3.1\",\"width\":1280,\"height\":720,\"durationSec\":4}'\n\n# 2. Submit metered job\ncurl -X POST 'https://runstage.dev/api/v2/run' \\\n  -H \"Authorization: Bearer $RUNSTAGE_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{   \"model\": \"veo-3.1\",   \"prompt\": \"Close-up of a late-night radio host in his forties with headphones around his neck, leaning into a large studio microphone in a dim booth lit by a warm desk lamp and glowing ON AIR sign. He smiles and says in a low, calm voice: \\\"It'\\''s two a.m., and this one goes out to everyone still awake.\\\" Faint hum of the studio, a soft click of a fader.\",   \"width\": 1280,   \"height\": 720,   \"frames\": 96,   \"fps\": 24,   \"seed\": 42 }'\n\n# 3. Poll owner-scoped job result until status is \"done\" or \"failed\"\ncurl -H \"Authorization: Bearer $RUNSTAGE_API_KEY\" \\\n  'https://runstage.dev/api/v2/jobs/<request_id>'","typescript":"const headers = {\n  Authorization: `Bearer ${process.env.RUNSTAGE_API_KEY}`,\n  \"Content-Type\": \"application/json\",\n};\n\n// 1. Free pre-run retail quote\nconst quote = await fetch(\"https://runstage.dev/api/v2/quote\", {\n  method: \"POST\",\n  headers: { \"Content-Type\": \"application/json\" },\n  body: JSON.stringify({\n  \"model\": \"veo-3.1\",\n  \"width\": 1280,\n  \"height\": 720,\n  \"durationSec\": 4\n}),\n}).then((r) => r.json());\nconsole.log(\"Quoted USD:\", quote.data?.price);\n\n// 2. Submit metered job\nconst job = await fetch(\"https://runstage.dev/api/v2/run\", {\n  method: \"POST\",\n  headers,\n  body: JSON.stringify({\n  \"model\": \"veo-3.1\",\n  \"prompt\": \"Close-up of a late-night radio host in his forties with headphones around his neck, leaning into a large studio microphone in a dim booth lit by a warm desk lamp and glowing ON AIR sign. He smiles and says in a low, calm voice: \\\"It's two a.m., and this one goes out to everyone still awake.\\\" Faint hum of the studio, a soft click of a fader.\",\n  \"width\": 1280,\n  \"height\": 720,\n  \"frames\": 96,\n  \"fps\": 24,\n  \"seed\": 42\n}),\n}).then((r) => r.json());\n\n// 3. Poll owner-scoped job status until terminal\nlet result;\nfor (let i = 0; i < 90; i++) {\n  result = await fetch(`https://runstage.dev/api/v2/jobs/${job.data.request_id}`, {\n    headers: { Authorization: headers.Authorization },\n  }).then((r) => r.json());\n  if ([\"done\", \"failed\", \"refunded\"].includes(result.data?.status)) break;\n  await new Promise((r) => setTimeout(r, 3000));\n}\nconsole.log(\"Status:\", result?.data?.status, result?.data?.result_url);","python":"import os, time, requests\n\nheaders = {\"Authorization\": f\"Bearer {os.environ['RUNSTAGE_API_KEY']}\"}\n\n# 1. Free pre-run retail quote\nquote = requests.post(\n    \"https://runstage.dev/api/v2/quote\",\n    json={\n    \"model\": \"veo-3.1\",\n    \"width\": 1280,\n    \"height\": 720,\n    \"durationSec\": 4\n},\n    timeout=15,\n).json()\nprint(\"Quoted USD:\", quote[\"data\"][\"price\"])\n\n# 2. Submit metered job\njob = requests.post(\n    \"https://runstage.dev/api/v2/run\",\n    headers=headers,\n    json={\n    \"model\": \"veo-3.1\",\n    \"prompt\": \"Close-up of a late-night radio host in his forties with headphones around his neck, leaning into a large studio microphone in a dim booth lit by a warm desk lamp and glowing ON AIR sign. He smiles and says in a low, calm voice: \\\"It's two a.m., and this one goes out to everyone still awake.\\\" Faint hum of the studio, a soft click of a fader.\",\n    \"width\": 1280,\n    \"height\": 720,\n    \"frames\": 96,\n    \"fps\": 24,\n    \"seed\": 42\n},\n    timeout=30,\n).json()\njob_id = job[\"data\"][\"request_id\"]\n\n# 3. Poll owner-scoped job status until terminal\nresult = None\nfor _ in range(90):\n    result = requests.get(f\"https://runstage.dev/api/v2/jobs/{job_id}\", headers=headers, timeout=15).json()\n    if result[\"data\"][\"status\"] in (\"done\", \"failed\", \"refunded\"):\n        break\n    time.sleep(3)\nprint(\"Status:\", result[\"data\"][\"status\"], result[\"data\"].get(\"result_url\"))"}}