{ "model_id": "google/veo-3.1-fast", "provider_id": "google", "name": "Veo 3.1 Fast", "description": "A faster version of Veo 3.1 optimized for lower latency while maintaining high-quality video and audio output.", "task": "Text-to-Video", "tags": [ "Video Generation", "Audio", "Fast" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Default (per second)": 0.08, "@720p (per second)": 0.08, "@1080p (per second)": 0.1, "@4k (per second)": 0.25, "@720p w/ audio (per second)": 0.1, "@1080p w/ audio (per second)": 0.12, "@4k w/ audio (per second)": 0.3 }, "examples": [ { "name": "Quick Demo", "description": "Fast video generation for testing", "input": { "prompt": "A butterfly landing on a colorful flower in a garden", "aspect_ratio": "16:9", "duration": "6s", "generate_audio": true, "resolution": "720p" }, "output": { "video": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__veo-3.1-fast/quick-demo.mp4" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "video": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__veo-3.1-fast/quick-demo.mp4" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'google/veo-3.1-fast',\n {\n prompt: 'A butterfly landing on a colorful flower in a garden',\n aspect_ratio: '16:9',\n duration: '6s',\n generate_audio: true,\n resolution: '720p',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"google/veo-3.1-fast\",\n \"input\": {\n \"prompt\": \"A butterfly landing on a colorful flower in a garden\",\n \"aspect_ratio\": \"16:9\",\n \"duration\": \"6s\",\n \"generate_audio\": true,\n \"resolution\": \"720p\"\n }\n}'" } ] }, { "name": "Social Content", "description": "Quick vertical video for social media", "input": { "prompt": "Aesthetic morning routine: sun rays through curtains, coffee being poured", "aspect_ratio": "9:16", "duration": "6s", "generate_audio": true, "resolution": "720p" }, "output": { "video": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__veo-3.1-fast/social-content.mp4" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "video": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__veo-3.1-fast/social-content.mp4" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'google/veo-3.1-fast',\n {\n prompt: 'Aesthetic morning routine: sun rays through curtains, coffee being poured',\n aspect_ratio: '9:16',\n duration: '6s',\n generate_audio: true,\n resolution: '720p',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"google/veo-3.1-fast\",\n \"input\": {\n \"prompt\": \"Aesthetic morning routine: sun rays through curtains, coffee being poured\",\n \"aspect_ratio\": \"9:16\",\n \"duration\": \"6s\",\n \"generate_audio\": true,\n \"resolution\": \"720p\"\n }\n}'" } ] }, { "name": "Motion Graphics", "description": "Quick animated graphics", "input": { "prompt": "Glowing neon lines forming geometric patterns on a dark background", "aspect_ratio": "16:9", "duration": "4s", "generate_audio": false, "resolution": "720p" }, "output": { "video": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__veo-3.1-fast/motion-graphics.mp4" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "video": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__veo-3.1-fast/motion-graphics.mp4" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'google/veo-3.1-fast',\n {\n prompt: 'Glowing neon lines forming geometric patterns on a dark background',\n aspect_ratio: '16:9',\n duration: '4s',\n generate_audio: false,\n resolution: '720p',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"google/veo-3.1-fast\",\n \"input\": {\n \"prompt\": \"Glowing neon lines forming geometric patterns on a dark background\",\n \"aspect_ratio\": \"16:9\",\n \"duration\": \"4s\",\n \"generate_audio\": false,\n \"resolution\": \"720p\"\n }\n}'" } ] }, { "name": "Ambient Scene", "description": "Relaxing background video", "input": { "prompt": "Rain falling on a window with a blurred city skyline in the background at night", "aspect_ratio": "16:9", "duration": "8s", "generate_audio": true, "resolution": "720p" }, "output": { "video": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__veo-3.1-fast/ambient-scene.mp4" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "video": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__veo-3.1-fast/ambient-scene.mp4" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'google/veo-3.1-fast',\n {\n prompt: 'Rain falling on a window with a blurred city skyline in the background at night',\n aspect_ratio: '16:9',\n duration: '8s',\n generate_audio: true,\n resolution: '720p',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"google/veo-3.1-fast\",\n \"input\": {\n \"prompt\": \"Rain falling on a window with a blurred city skyline in the background at night\",\n \"aspect_ratio\": \"16:9\",\n \"duration\": \"8s\",\n \"generate_audio\": true,\n \"resolution\": \"720p\"\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": true, "zdr_comment": null, "external_info": "https://deepmind.google/technologies/veo/", "terms": "https://ai.google.dev/gemini-api/terms", "cover_image_url": "https://pub-26f1392c1b674324be6786695bd72257.r2.dev/google/veo-3.1-fast.png", "metadata": { "Audio Generation": "Yes", "Max Duration": "8 seconds", "Resolutions": "720p, 1080p" }, "request_formats": null, "providers": null, "provider_details": [ { "id": "google-vertex-ai", "pricing": { "default": 0.08, "720p": 0.08, "1080p": 0.1, "4k": 0.25, "720p_audio": 0.1, "1080p_audio": 0.12, "4k_audio": 0.3 } } ], "banner": null, "created_at": "2026-05-22 17:53:15", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "prompt": { "type": "string", "description": "Text prompt describing the video to generate" }, "image_input": { "description": "Base64-encoded reference image for i2v", "type": "string" }, "duration": { "default": "6s", "description": "Video duration", "type": "string", "enum": [ "4s", "6s", "8s" ] }, "aspect_ratio": { "default": "16:9", "description": "Video aspect ratio", "type": "string", "enum": [ "16:9", "9:16", "1:1" ] }, "resolution": { "default": "720p", "description": "Video resolution", "type": "string", "enum": [ "720p", "1080p" ] }, "generate_audio": { "default": true, "description": "Whether to generate audio with the video", "type": "boolean" } }, "required": [ "prompt", "duration", "aspect_ratio", "resolution", "generate_audio" ], "additionalProperties": false }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "video": { "type": "string", "format": "uri", "description": "URL to the generated video" } }, "required": [ "video" ], "additionalProperties": false } } }