Curated models for your best work

Join the waitlist

Gemini 3.8 Flash

  • Vision
  • Tool calling
  • Reasoning
  • Streaming
  • 1.05M context
  • Runs on Google

Model id

google/gemini-3.8-flash
Context window
1.05M
tokens
Input price
$0.75
per 1M tokens
Output price
$3.75
per 1M tokens
Max output
66K
tokens

Provider list price

Pricing

USD / 1M tokens

Input$0.75 / M tokens
Output$3.75 / M tokens
Cache read$0.075 / M tokens
Context window1.05M tokens
RoutingFree

Provider list price. BYOK bills your provider; managed credits draw down at these rates. No markup or request fee. Every request is metered per engineer and joined to shipped work.

Registry 2026-10-31.2 · effective 9/17/2026 · Gemini API pricing

Registry contract

Capabilities

Protocols
3
Chat · Responses · Messages · streaming
Tools
2
Chat · Messages
JSON Schema
None
Not supported
Vision
Yes
Chat · Responses · Messages
Reasoning
1
Chat
Output limit
65,536
tokens
Input limit
1,048,576
tokens

canonical google/gemini-3.8-flash · revision google/gemini-3.8-flash · aliases gemini-3.8-flash

First request

Run it

Python · TokenSpend SDK
from tokenspend import TokenSpend

client = TokenSpend()
resp = client.chat.completions.create(
    model="google/gemini-3.8-flash",
    messages=[{"role": "user", "content": "hello"}],
)
TypeScript · TokenSpend SDK
import { TokenSpend } from "@tokenspend/sdk";

const client = new TokenSpend();
const resp = await client.chat.completions.create({
  model: "google/gemini-3.8-flash",
  messages: [{ role: "user", content: "hello" }]
});
curl
curl https://api.tokenspend.dev/v1/chat/completions \
  -H "content-type: application/json" \
  -H "Authorization: Bearer $TOKENSPEND_API_KEY" \
  -d '{"model":"google/gemini-3.8-flash","messages":[{"role":"user","content":"hello"}]}'
Claude Code integration
export ANTHROPIC_BASE_URL=https://api.tokenspend.dev
export ANTHROPIC_API_KEY=$TOKENSPEND_API_KEY
export ANTHROPIC_MODEL=google/gemini-3.8-flash

One request shape reaches every model. Claude Code connects as an integration with two environment variables. TokenSpend never stores prompts or responses.

Questions

Who runs Gemini 3.8 Flash?

Google runs it, at the list price above. A request that fails there fails with an error, because there is no second provider to move to.

What does Gemini 3.8 Flash cost?

$0.75 per 1M input tokens and $3.75 per 1M output tokens. TokenSpend adds no markup and no per-request fee. If you pay with managed credits, buying them carries a 5% fee.

What can I do with Gemini 3.8 Flash through TokenSpend?

Chat and streaming, plus tool calling (Chat, Messages), image input (Chat, Messages) and reasoning controls (Chat). It does not support JSON schema output here. Tool calling and JSON schema are enabled per provider, only after that provider passes our tests, so a provider chosen by hand may lack them.

How long can my prompt be?

1.05M tokens of context, prompt and reply together, with up to 65,536 tokens in a single reply.

Does prompt caching make Gemini 3.8 Flash cheaper?

Yes, when the provider caches a repeated prompt prefix. Cached input is billed at $0.075 per 1M tokens instead of $0.75.

How current is this pricing?

It follows rate card 2026-10-31.2, effective 9/17/2026. Source: Gemini API pricing.