Providers / Google (Gemini)
Google (Gemini)
Google builds the Gemini family of models, developed by its Google DeepMind lab. Gemini models take text, images, audio, video and files as input and write text. The Gemini 3 line has a Pro tier and two fast tiers, Flash and Flash-Lite. Gemini 3.8 Flash is the newest Flash model we offer.
Models
USD per 1M tokens · prices as of 2026-11-21
| Model | Best for | Input | Output | Context |
|---|---|---|---|---|
| Gemini 3 Flash Preview | $0.5757 | $3.4545 | 977K | |
| Gemini 3.1 Flash-Lite | Cheap bulk work (classification, extraction) | $0.2879 | $1.7272 | 977K |
| Gemini 3.1 Pro Preview | Hard reasoning, planning and debugging · Long context (large repos, long PDFs, recordings) | $2.3030 | $13.8178 | 195K |
| Gemini 3.6 Flash | Minimal reasoning | $0.8636 | $4.3181 | 977K |
| Gemini 3.8 Flash | Coding agent, everyday work · Quick edits, short questions · Long context (large repos, long PDFs, recordings) | $0.8636 | $4.3181 | 977K |
Which model for which job
Gemini’s strength is input range. Google lists a context window of about 1M tokens for all the models here, with text, image, video, audio and PDF input on most of them. Reasoning is always on, but you can set how much. Gemini 3.6 Flash and Gemini 3 Flash Preview go down to “minimal”, which keeps simple calls short and cheap. Gemini 3.8 Flash doesn’t support minimal.
| Job | Use | Input / output per 1M | Why |
|---|---|---|---|
| Coding agent, everyday work | Gemini 3.8 Flash | $0.8636 / $4.3181 | Newest Flash model; large context at a low price |
| Hard reasoning, planning and debugging | Gemini 3.1 Pro Preview | $2.3030 / $13.8178 | Pro tier; still in preview, so Google may change it |
| Quick edits, short questions | Gemini 3.8 Flashat low effort | $0.8636 / $4.3181 | Fast tier |
| Long context (large repos, long PDFs, recordings) | Gemini 3.1 Pro PreviewGemini 3.8 Flash | $2.3030 / $13.8178$0.8636 / $4.3181 | About 1M tokens and mixed media input |
| Cheap bulk work (classification, extraction) | Gemini 3.1 Flash-Litewith the Batch API | $0.2879 / $1.7272 | Google’s low-cost, low-latency tier |
| Minimal reasoning | Gemini 3.6 Flash | $0.8636 / $4.3181 | Lists a minimal thinking level, which 3.8 Flash does not |
Data handling
What Google publishes
Google’s own terms cover two Google endpoints, both based in the United States and neither training on prompts. Google Vertex has zero retention.
What Yunshu does
Prompts aren’t stored by default. Batches are the one exception: batch inputs and results are kept for 7 days after the batch finishes, then deleted. An organisation can turn on zero retention, which refuses batches as well.
Pricing notes
- Yunshu’s own cache. Exact repeats of a request are answered from our cache and not charged.
Use it in your coding tool
Paste these settings to use Gemini 3 Flash Preview. Swap in any Google model ID from the table above.
export ANTHROPIC_BASE_URL=https://api.yunshurouter.com
export ANTHROPIC_AUTH_TOKEN=YOUR_YUNSHU_KEY
export ANTHROPIC_MODEL=gemini-3-flash-preview
export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1OpenAI API Key: YOUR_YUNSHU_KEY
Override OpenAI Base URL: https://api.yunshurouter.com/v1
Add model: gemini-3-flash-preview (then Verify)model = "gemini-3-flash-preview"
model_provider = "yunshu"
model_context_window = 1000448
[model_providers.yunshu]
name = "Yunshu Router"
base_url = "https://api.yunshurouter.com/v1"
env_key = "YUNSHU_API_KEY"
wire_api = "responses"Base URL: https://api.yunshurouter.com/v1
API Key: YOUR_YUNSHU_KEY
Model ID: gemini-3-flash-previewRun these in your shell before starting Claude Code, or put them in ~/.claude/settings.json (see the guide). No /v1 in the address: Claude Code adds it. The last line stops Claude Code sending fields only Anthropic models accept. Full guide →
In Cursor Settings → Models: paste the key under OpenAI, turn on the base URL override and keep the /v1. Then pick the model in the chat panel. Full guide →
Add this to ~/.codex/config.toml and set YUNSHU_API_KEY to your key. Codex sends the whole conversation each turn; we don't store responses. Full guide →
Set API Provider to OpenAI Compatible. Then set the context window and prices from the model page, so Cline's cost estimate matches your bill. Full guide →
Questions
Is there a Gemini API without a Google Cloud account?
Yes. A Yunshu Router key calls Gemini models through the OpenAI Chat Completions API or the Anthropic Messages API. You pay from a prepaid balance in USD, CNY or SGD, topped up by card.
How much does Gemini 3.8 Flash cost per token?
GET /v1/generation?id=<id> returns the
exact cost of any single request.
Which Gemini model is cheapest?
Gemini 3.1 Flash-Lite is Google’s low-cost tier of the models here. Its price is on its model page.
Can I turn off Gemini’s reasoning?
No. Google lists reasoning as always on for the Gemini models here. You can set the effort level instead: low, medium or high, and “minimal” on Gemini 3.6 Flash and Gemini 3 Flash Preview.