Gemini Video Generation
Generate and edit videos using Google’s Veo 2 / Veo 3 / Veo 3.1 models. Supports text-to-video, image-to-video, duration extension, reshoot, and object insert/remove.Supported Models
| Model | Description |
|---|---|
veo31_fast | Veo 3.1 Fast — latest, recommended for most use cases |
veo31_quality | Veo 3.1 Quality — highest quality |
veo31_fast_ingredients | Veo 3.1 Fast with 1-3 reference images (ingredients-to-video) |
veo3_fast / veo3_quality | Veo 3 generation |
veo2_fast / veo2_quality | Veo 2 generation (legacy) |
Features
Text-to-Video
Create videos from text prompts with
action: "text2video"Image-to-Video
Use 1-2 reference images (start frame / start+end) with
action: "img2video"Ingredients-to-Video
Use 1-3 reference images to compose a scene with
action: "ingredients2video"Upsample & Extend
Upscale to 1080p/4K, generate GIFs, or extend video duration
Reshoot
Re-generate with different camera motion (15 motion types)
Object Edit
Insert or remove objects from videos using mask-based editing
How to Use
Generate a video
Call
POST /gemini/video/generate with your prompt and model. You’ll receive a taskId.Poll for results
Use
GET /gemini/task/result?taskId=xxx to poll until status is completed. The result contains the video URL.Available Endpoints
Generation
| Endpoint | Method | Description |
|---|---|---|
/gemini/video/generate | POST | Create video from text or images |
/gemini/video/prompt/expand | POST | Expand a simple prompt into a cinematic description (synchronous) |
Post-Processing
| Endpoint | Method | Description |
|---|---|---|
/gemini/video/upsample | POST | Upscale to 1080p/4K or generate GIF |
/gemini/video/extend | POST | Extend video duration (Veo 3.1 only) |
/gemini/video/reshoot | POST | Re-generate with different camera motion |
Object Editing
| Endpoint | Method | Description |
|---|---|---|
/gemini/video/object/insert | POST | Insert an object into a video |
/gemini/video/object/remove | POST | Remove an object from a video |
Task Management
| Endpoint | Method | Description |
|---|---|---|
/gemini/task/result | GET | Get task result by taskId |
Explore the API Documentation
- Generate Video — Text-to-video, image-to-video, ingredients-to-video
- Upsample Video — Upscale to 1080p/4K or generate GIF
- Expand Prompt — Enhance prompts for better results
- Reshoot Video — Change camera motion
- Extend Video — Extend video duration
- Insert Object — Add objects to video
- Remove Object — Remove objects from video
- Get Task Result — Check task status and download results