Gemini API pricing & API key
Every Google model on one page: 29 models, from $0.13 to $2.95 per 1M input tokens. Get one Gemini API key from YepAPI and pay per request — no subscription, no Google account or waitlist.
Takes 30 seconds.
Gemini API pricing (29 models)
YepAPI prices per 1M tokens (text) or per output (media), cheapest first. Updated November 8, 2026.
Text Generation
| Model | Input / 1M | Output / 1M | Context |
|---|---|---|---|
| Gemma 4 26B | $0.13 | $0.44 | 262K |
| Gemini 2.5 Flash Lite | $0.15 | $0.59 | 1.0M |
| Gemma 4 31B | $0.30 | $0.59 | 262K |
| Gemini 3.1 Flash Lite | $0.37 | $2.22 | 1.0M |
| Gemini 2.5 Flash | $0.44 | $3.69 | 1.0M |
| Gemini 3.5 Flash Lite | $0.44 | $3.69 | 1.0M |
| Gemini 3 Flash | $0.74 | $4.43 | 1.0M |
| Gemini 3.7 Flash | $1.11 | $5.54 | 1.0M |
| Gemini 3.6 Flash | $1.11 | $5.54 | 1.0M |
| Gemini 3.8 Flash | $1.22 | $6.09 | 1.0M |
| Gemini 3.5 Flash | $2.22 | $13.29 | 1.0M |
| Gemini 2.5 Pro | $1.85 | $14.77 | 1.0M |
| Gemini 4 Argon | $2.95 | $14.77 | 1.0M |
| Gemini 3.1 Pro | $2.95 | $17.72 | 1.0M |
Image Generation
| Model | Price |
|---|---|
| Gemini 3.1 Flash Lite Image | from $0.08/image |
| Gemini 2.5 Flash Image | from $0.09/image |
| Nano Banana 3.1 Flash | $1.00/1M input, $120.00/1M output (~$0.19 est.) |
| Nano Banana 3 Pro | $4.00/1M input, $240.00/1M output (~$0.32 est.) |
Text to Speech
| Model | Price |
|---|---|
| Gemini 3.8 Flash Lite TTS | $0.0359/1K chars |
| Gemini 3.8 Flash TTS | $0.0527/1K chars |
| Gemini 3.1 Flash TTS | $0.2005/1K chars |
Video Generation
| Model | Price |
|---|---|
| Veo 3.1 Lite | $0.11/sec (720p), $0.17/sec (1080p); without audio from $0.06/sec |
| Veo 3.1 Fast | $0.21/sec (720p), $0.25/sec (1080p), $0.63/sec (4K); without audio from $0.17/sec |
| Veo 3.1 | $0.84/sec (720p-1080p), $1.27/sec (4K); without audio $0.42/sec, $0.84/sec (4K) |
Music Generation
| Model | Price |
|---|---|
| Lyria 3 Clip | $0.08/song |
| Lyria 3 Pro | $0.16/song |
| Lyria 3.5 | $0.16/track |
Image Analysis
| Model | Price |
|---|---|
| Gemini Image Analysis | $0.60/1M input, $5.00/1M output, thinking billed as output (~$0.01 est.) |
Video Analysis
| Model | Price |
|---|---|
| Gemini Video Analysis | $0.60/1M input, $5.00/1M output, thinking billed as output (~$0.03 est.) |
All Gemini models
Text Generation
Gemini 2.5 Flash
Text GenerationAccess Gemini 2.5 Flash through one API key. Google's fastest model with 1M context.
Gemini 2.5 Pro
Text GenerationAccess Gemini 2.5 Pro through one API key. Google's most capable model with 1M context.
Gemini 3.5 Flash
Text GenerationAccess Gemini 3.5 Flash through one API key. Google's latest fast multimodal model.
Gemini 3.1 Pro
Text GenerationAccess Gemini 3.1 Pro through one API key. Google's next-generation model.
Gemini 3 Flash
Text GenerationAccess Gemini 3 Flash through one API key. Google's next-generation fast model.
Gemini 3.1 Flash Lite
Text GenerationAccess Gemini 3.1 Flash Lite through one API key. Ultra-affordable with 1M context.
Gemini 3.8 Flash
Text GenerationAccess Gemini 3.8 Flash through one API key. Google Most Intelligent Flash.
Gemini 3.7 Flash
Text GenerationAccess Gemini 3.7 Flash through one API key. Google Fast Agentic Multimodal.
Gemini 3.6 Flash
Text GenerationAccess Gemini 3.6 Flash through one API key. Google High-Efficiency Coding Flash.
Gemini 3.5 Flash Lite
Text GenerationAccess Gemini 3.5 Flash Lite through one API key. Google Cheapest Gemini Subagent Model.
Gemma 4 31B
Text GenerationAccess Gemma 4 31B through one API key. Google's open-weight model at ultra-low cost.
Gemma 4 26B
Text GenerationAccess Gemma 4 26B through one API key. Efficient MoE model at the lowest price.
Gemini 2.5 Flash Lite
Text GenerationAccess Gemini 2.5 Flash Lite through one API key. Google's cheapest model.
Gemini 4 Argon
Text GenerationAccess Gemini 4 Argon through one API key. Google Gemini 4 Flagship Reasoning.
Image Generation
Nano Banana 3.1 Flash
Image GenerationFast AI image generation via Nano Banana 3.1 Flash. Generate and edit images up to 4K resolution.
Nano Banana 3 Pro
Image GenerationNano Banana API for AI image generation. Generate photorealistic images from text prompts — an AI image generator API and Midjourney alternative via simple REST API.
Gemini 3.1 Flash Lite Image
Image GenerationGemini 3.1 Flash Lite Image from $0.08 — fast Google image generation with 14 aspect ratios.
Gemini 2.5 Flash Image
Image GenerationGemini 2.5 Flash Image — the original Nano Banana — from $0.09 per image via one REST call.
Text to Speech
Gemini 3.1 Flash TTS
Text to SpeechGemini 3.1 Flash TTS text to speech — 70+ languages, 200+ audio tags, billed on input length.
Gemini 3.8 Flash Lite TTS
Text to SpeechGemini 3.8 Flash Lite TTS text to speech — fast, high-throughput Gemini 3.8 TTS, 30 voices, billed on input length.
Gemini 3.8 Flash TTS
Text to SpeechGemini 3.8 Flash TTS text to speech — the creative tier of Gemini 3.8 TTS, 30 voices, billed on input length.
Video Generation
Veo 3.1
Video GenerationAI video generation via Veo 3.1. Generate videos from text or images at up to 4K resolution.
Veo 3.1 Fast
Video GenerationAI video generation API powered by Google Veo 3.1. Generate videos from text prompts at up to 4K — a Sora, Runway, and Kling alternative via simple REST API.
Veo 3.1 Lite
Video GenerationBudget AI video generation via Veo 3.1 Lite. Fastest and cheapest option.
Music Generation
Lyria 3 Clip
Music GenerationAI music generation via Lyria 3 Clip. Generate 30-second music clips from text.
Lyria 3 Pro
Music GenerationAI music generation via Lyria 3 Pro. Generate full-length songs from text or images.
Lyria 3.5
Music GenerationAI music generation via Lyria 3.5. Generate music from text with Google DeepMind's newest Lyria model.
Google API through YepAPI
YepAPI provides access to Google models through a unified API endpoint. Instead of managing a separate Google API key and billing account, use your single YepAPI key to call any Google model alongside 256 other AI models from OpenAI, Anthropic, Google, Meta, and more.
All Google models use the same OpenAI-compatible request format. Switch between models by changing the model parameter — no SDK changes, no code rewrites. Pay per token with no monthly minimums.
How to get a Gemini API key
- Sign up at yepapi.com with Google or email — about 30 seconds.
- Open the dashboard and create an API key (it starts with yep_sk_).
- Call any Google model with that key — the OpenAI-compatible /v1/ai/chat/completions endpoint for text models.
- Top up any amount; usage is billed per request.
Gemini API FAQ
- How much does the Gemini API cost?
- Google models cost from $0.13 to $2.95 per 1M input tokens through YepAPI. The cheapest is Gemma 4 26B ($0.13 in / $0.44 out per 1M). You pay per request with no monthly fee.
- How do I get a Gemini API key?
- Sign up at yepapi.com (about 30 seconds), open the dashboard and create an API key. The one key works for all 29 Google models and 256 models from other providers — no separate Google account.
- What is the cheapest Gemini model?
- Gemma 4 26B — $0.13 in / $0.44 out per 1M.
- Which Gemini model has the largest context window?
- Gemini 2.5 Flash, with 1.0M tokens of context.
- Can I use the Gemini API with the OpenAI SDK?
- Yes. Set the base URL to https://api.yepapi.com/v1/ai, use your YepAPI key, and pass the Google model ID (for example "google/gemini-2.5-flash").