Google Gemini

Google Gemini

Google Gemini AI models with text generation, vision, embeddings, and chat capabilities

Authentication: apiKey

Tools

Generate Content
Generate text using Google Gemini models. Support for multimodal inputs (text, images, video, audio), long context windows (up to 2M tokens), and advanced AI capabilities.
Stream Generate Content
Stream text generation in real-time using Gemini models. Returns chunks of text as they are generated for a responsive user experience.
Count Tokens
Count the number of tokens in content before sending to avoid hitting limits. Helps estimate costs and ensure prompts fit within context windows.
Embed Content
Generate embeddings for semantic search, clustering, recommendations, and similarity tasks. Convert text into vector representations.
Batch Embed Contents
Generate embeddings for multiple texts at once, more efficient than calling embed_content repeatedly.
List Models
Get a list of all available Gemini models including their capabilities, context windows, and supported features.
Get Model
Get detailed information about a specific Gemini model including capabilities, limits, and supported features.
Analyze Image
Analyze images with Gemini vision models. Extract information, answer questions, describe content, detect objects, read text (OCR), and more from images.
Create Cache
Create a cached content for reuse across multiple generate_content calls. Caching reduces costs by up to 75% and improves latency. Use for system instructions, common context, or large documents that will be reused. Cache lives for specified TTL (default 1 hour). Returns cache name to use in generate_content's cachedContent parameter.
Create Batch Job
Create a batch job for async processing with 50% cost savings. Processes multiple requests asynchronously with up to 24 hour turnaround. Ideal for bulk image generation or text processing.
Get Batch Status
Check the status of a batch job. Returns current state (PENDING, RUNNING, SUCCEEDED, FAILED, CANCELLED, EXPIRED) and result file info when complete.
List Batch Jobs
List all batch jobs for the current API key. Shows job status, creation time, and result file info.
Download Batch Results
Download results from a completed batch job. Returns parsed JSONL with responses matched to request keys. For image results, returns base64-encoded image data.
Cancel Batch Job
Cancel a running batch job. Only works for jobs in PENDING or RUNNING state.
Delete Batch Job
Delete a batch job and its associated files. Only works for completed, failed, or cancelled jobs.
Batch Files With Url
Batch process multiple files (images, PDFs, videos, audio, text) from URLs with 50% cost savings. Auto-fetches files and converts to base64. Supports any publicly accessible URL (R2, S3, CDN, etc.).
Chat
Simple chat interface for Gemini. Just send a message and get a response - no complex formatting needed.