Gemini 3.8 Flash
AvailableGemini 3.8 Flash is the newest Flash model in Google’s Gemini 3.x line, a lower-priced, faster tier below Gemini 3.1 Pro.
Good for Fast and cheap · Long context · Images and screenshots · Bulk and batch jobs
Is it right for you?
Google lists a 1M-token context and up to about 66K tokens per reply. It keeps reasoning on at low, medium or high effort. It suits coding-agent work where you want a large context at a low price: reading a whole module, triaging test output, drafting a fix for a stronger model to review.
Best for
- Reading large parts of a repository at a low price per token.
- Sub-agent work: search, summaries, log triage.
- Batch jobs over many files.
Not ideal for
- Replies longer than about 66K tokens, such as generating many large files in one turn.
- The hardest refactors, where Gemini 3.1 Pro Preview or a Claude or GPT top tier is the safer pick.
Next to the rest of the Google line
| Model | Input | Output | Context | Per session |
|---|---|---|---|---|
| Gemini 3 Flash Preview | $0.5757 | $3.4545 | 977K | $0.2004 |
| Gemini 3.1 Flash-Lite | $0.2879 | $1.7272 | 977K | $0.1029 |
| Gemini 3.1 Pro Preview | $2.3030 | $13.8178 | 195K | $0.8014 |
| Gemini 3.6 Flash | $0.8636 | $4.3181 | 977K | $0.2746 |
| Gemini 3.8 Flash (this page) | $0.8636 | $4.3181 | 977K | $0.2746 |
What it costs
Prepaid, per token, no subscription. Set your traffic to see your bill.
30 days, at today's prices. You're billed on actual tokens.
- Per request
- $0.005061
- Coding session
- $0.27
- Per day
- $10.12
- Suggested key budget
- $350.00
- Alert at 80%
- $280.00
A coding session is 30 requests of 20,000 input tokens, 80% from cache, and 1,000 output tokens each: the same session as the "Per session" column above. Thinking tokens are billed as output, so reasoning raises the cost.
Cached input. When the provider serves part of a prompt from its cache, those tokens are billed at the cache-read price instead of the input price. Writing a prompt into the cache is billed at the cache-write price. Separately, an exact repeat of a recent request is answered from Yunshu’s own cache and not charged.
Capabilities
What Gemini 3.8 Flash can do, as Google lists it.
Get started
Create a key in the console, export it as YUNSHU_API_KEY, then use one of these.
curl https://api.yunshurouter.com/v1/chat/completions \
-H "Authorization: Bearer $YUNSHU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.8-flash",
"messages": [{"role": "user", "content": "Write a Python function that checks if a string is a palindrome."}]
}'curl https://api.yunshurouter.com/v1/messages \
-H "x-api-key: $YUNSHU_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.8-flash",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Write a Python function that checks if a string is a palindrome."}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.yunshurouter.com/v1", api_key="YOUR_YUNSHU_KEY")
resp = client.chat.completions.create(
model="gemini-3.8-flash",
messages=[{"role": "user", "content": "Explain what this regex does: ^\\d{3}-\\d{4}$"}],
)
print(resp.choices[0].message.content)import anthropic
client = anthropic.Anthropic(base_url="https://api.yunshurouter.com", api_key="YOUR_YUNSHU_KEY")
msg = client.messages.create(
model="gemini-3.8-flash",
max_tokens=1024,
messages=[{"role": "user", "content": "Explain what this regex does: ^\\d{3}-\\d{4}$"}],
)
print(msg.content[0].text)Full steps for each tool: integration guides →
Questions
What is Gemini 3.8 Flash?
Gemini 3.8 Flash is the newest Flash model in Google’s Gemini 3.x line, a lower-priced, faster tier below Gemini 3.1 Pro. See the Google page for the rest of the family.
Does Gemini 3.8 Flash support tool calling?
Yes. Send tools in OpenAI format to /v1/chat/completions or in Anthropic format to /v1/messages. Through the Responses API (used by Codex) only function tools are passed through.
Does Gemini 3.8 Flash support reasoning?
Yes, and it can’t be turned off; you choose the effort. Effort levels: low, medium, high (default medium per one listing).
How is Gemini 3.8 Flash different from Gemini 3.1 Pro Preview?
Flash is the lower-priced, faster tier. Google lists about 1M tokens of context and up to about 66K tokens per reply for both, and both keep thinking on. Pro is Google’s model for harder reasoning and coding, and it is still in preview, so Google may change or retire it.