Gemini 3.8 Flash
How TheRouter serves this differently from the vendor
Google serves Gemini 3.8 Flash through the Gemini API (ai.google.dev) and Vertex AI. The upstream model accepts text, image, audio, and video input and returns text output. Native capabilities include thinking, function calling, structured outputs, code execution, context caching, Batch API, Google Search grounding, Google Maps grounding, and file search. Audio generation, image generation, and the Live API are not supported. Thinking tokens are billed as output tokens at the same rate.
TheRouter serves Gemini 3.8 Flash as OpenAI-compatible /v1/chat/completions under google/gemini-3.8-flash. Exposed input modalities are text, image, and PDF; audio and video input are not passed through. Function calling and structured outputs work unchanged via the OpenAI tools schema. Thinking tokens appear in usage.completion_tokens. Audio generation, image generation, and the Live API are not available through TheRouter.
API guide
Chat completion
Standard OpenAI-compatible chat completion. Thinking is enabled by default; its tokens count as output tokens.
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"google/gemini-3.8-flash","messages":[{"role":"user","content":"Solve this bug in my code"}]}'Function calling
Function calling is supported and maps onto the OpenAI tools schema.
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-3.8-flash",
"messages": [{"role":"user","content":"Run the test suite and report results"}],
"tools": [{"type":"function","function":{"name":"run_tests","parameters":{"type":"object","properties":{"suite":{"type":"string"}},"required":["suite"]}}}]
}'Fact ledger β every claim on this page traces here
| source | URL | retrieved | |
|---|---|---|---|
| Release date | deepmind.google β | 2026-09-19 | verified |
| Knowledge cutoff | deepmind.google β | 2026-09-19 | verified |
| Input token limit | deepmind.google β | 2026-09-19 | verified |
| Output token limit | deepmind.google β | 2026-09-19 | verified |
| Native modalities (upstream) | deepmind.google β | 2026-09-19 | verified |
| Vendor list price (Standard tier) | cloud.google.com β | 2026-09-19 | verified |
| Effort-level control | blog.google β | 2026-09-19 | verified |
| DeepSWE v1.1 | deepmind.google β | 2026-09-19 | verified |
| Terminal-bench 2.1 | deepmind.google β | 2026-09-19 | verified |
| Terminal-bench 4.0 | deepmind.google β | 2026-09-19 | verified |
| GDPVal-AA v2 | deepmind.google β | 2026-09-19 | verified |
| Vals Finance Agent v2 | deepmind.google β | 2026-09-19 | verified |
| Harvey Legal Agent Benchmark | deepmind.google β | 2026-09-19 | verified |
| HLE-Verified | deepmind.google β | 2026-09-19 | verified |
| CharXiv (no tools) | deepmind.google β | 2026-09-19 | verified |
| LVBench (agentic) | deepmind.google β | 2026-09-19 | verified |
| OSWorld-2.0 | deepmind.google β | 2026-09-19 | verified |
| BioMysteryBench (Human Solvable) | deepmind.google β | 2026-09-19 | verified |
| Google ships Gemini 3.8 Flash and 3.8 Flash Cyber | blog.google β | 2026-09-19 | verified |
| How does Gemini 3.8 Flash compare to Gemini 3.7 Flash? | deepmind.google β | 2026-09-19 | to verify |
| Why does my usage.completion_tokens seem high? | deepmind.google β | 2026-09-19 | to verify |
| Is the $0.75/$3.75 introductory price the real billed rate? | cloud.google.com β | 2026-09-19 | to verify |