Skip to main content

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

  1. Create a Task: Call a generation endpoint (video, image, etc.) to create an async task.
  2. Get Task ID: The response returns a taskId for tracking.
  3. Poll Task Status: Use the task result endpoint to check progress.
  4. Download Results: Once completed, the task result contains URLs to download your content.

Available Endpoints

Video Generation

EndpointMethodDescription
/gemini/video/generatePOSTCreate video from text or images (Veo2/Veo3/Veo3.1)
/gemini/video/upsamplePOSTUpscale video to 1080p/4K or generate GIF
/gemini/video/prompt/expandPOSTExpand a simple prompt into a cinematic description

Video Editing

EndpointMethodDescription
/gemini/video/reshootPOSTRe-generate video with different camera motion
/gemini/video/extendPOSTExtend video duration (Veo3.1 only)
/gemini/video/object/insertPOSTInsert an object into a video
/gemini/video/object/removePOSTRemove an object from a video

Image Generation

EndpointMethodDescription
/gemini/image/generatePOSTGenerate or edit images with Nano Banana models

Task Management

EndpointMethodDescription
/gemini/task/resultGETGet task result by taskId

Explore the API Documentation

Video: Image: Task: