Introduction to Gemini
Welcome to the Gemini service documentation! This service integrates Gemini AI, a powerful tool for generating and editing images and videos. Whether you’re looking to generate creative images, create video content, or perform advanced video editing operations, Gemini provides the ideal tools for your project.Features
Gemini AI offers advanced image and video generation tools to enhance your creative work:- Generate Videos: Use Veo2, Veo3, and Veo3.1 models to create video content from text prompts or images, with multiple quality/speed options.
- Generate Images: Create images using Nano Banana models (fast, pro, 2) with support for text-to-image and image editing.
- Video Upsample: Upscale generated videos to 1080p or 4K resolution, or generate GIF previews.
- Video Extend: Extend the duration of generated videos with optional prompt guidance.
- Video Reshoot: Re-generate videos with different camera motion types.
- Object Insert / Remove: Add or remove objects from generated videos using mask-based editing.
- Prompt Expand: Automatically expand short prompts into detailed, cinematic descriptions.
- Task Management: Track and monitor the status of all generation tasks.
How to Use Gemini
- Create a Task: Call a generation endpoint (video, image, etc.) to create an async task.
- Get Task ID: The response returns a
taskIdfor tracking. - Poll Task Status: Use the task result endpoint to check progress.
- Download Results: Once completed, the task result contains URLs to download your content.
Available Endpoints
Video Generation
| Endpoint | Method | Description |
|---|---|---|
/gemini/video/generate | POST | Create video from text or images (Veo2/Veo3/Veo3.1) |
/gemini/video/upsample | POST | Upscale video to 1080p/4K or generate GIF |
/gemini/video/prompt/expand | POST | Expand a simple prompt into a cinematic description |
Video Editing
| Endpoint | Method | Description |
|---|---|---|
/gemini/video/reshoot | POST | Re-generate video with different camera motion |
/gemini/video/extend | POST | Extend video duration (Veo3.1 only) |
/gemini/video/object/insert | POST | Insert an object into a video |
/gemini/video/object/remove | POST | Remove an object from a video |
Image Generation
| Endpoint | Method | Description |
|---|---|---|
/gemini/image/generate | POST | Generate or edit images with Nano Banana models |
Task Management
| Endpoint | Method | Description |
|---|---|---|
/gemini/task/result | GET | Get task result by taskId |
Explore the API Documentation
Video:- Generate Video — Create videos from text or images
- 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
- Generate Image — Create or edit images with Nano Banana
- Get Task Result — Check task status and download results