---
title: "Gemini 3.8 Flash"
description: "Gemini 3.8 Flash by Google: 1.05M context. Compare provider prices and applicable pricing conditions on the model page. Pay as you go."
canonical: https://pirouter.ai/models/google/gemini-3.8-flash
last-updated: 2026-10-15
---

# Gemini 3.8 Flash

> Gemini 3.8 Flash by Google: 1.05M context. Compare provider prices and applicable pricing conditions on the model page. Pay as you go.

Gemini 3.8 Flash is the newest Flash model, which Google calls its most intelligent, built for long-horizon software engineering, autonomous agents and complex enterprise workflows. It supports low, medium and high thinking levels and a 1M-token context with multimodal input.

## At a glance

- Model ID: `google/gemini-3.8-flash`
- Also accepted as: `gemini-3.8-flash`
- Vendor: Google
- Category: text
- Openness: Proprietary
- Model page: https://ai.google.dev/gemini-api/docs/models/gemini-3.8-flash
- Context: 1,048,576 tokens
- Max output: 65,536 tokens
- Added to pirouter: 2026-09-02
- Status: Available

## Pricing (USD per 1M tokens)

|  | Input | Output | Cache read | Cache write | Reasoning | Audio input |
|---|---|---|---|---|---|---|
| Standard | $0.75 ~~$1.5~~ | $3.75 ~~$7.5~~ | $0.075 ~~$0.15~~ | $0.0833 | $3.75 ~~$7.5~~ | $0.75 ~~$1.5~~ |

50% off for a limited time · Ends 2026-12-31 23:59 HKT · Same price on every provider · this is what you are billed.

## Capabilities

- Function calling
- Tool choice
- Structured outputs
- Response schema
- Reasoning
- Prompt caching
- System messages
- Streaming
- Vision
- Audio input
- Video input
- PDF input

## Reasoning effort

- high, medium, low (default: medium)

## How to call it

One pirouter API key works with every API format below; create it in the console. Use one of these formats; formats not listed are not available for this model.

- API key: https://app.pirouter.ai/sign-in

### OpenAI Responses

- Endpoint: `POST /v1/responses` on https://api.pirouter.ai
- Auth: `Authorization: Bearer <key>`
- SDK base URL: https://api.pirouter.ai/v1
- Reference: https://pirouter.ai/docs/api/responses

```bash
curl https://api.pirouter.ai/v1/responses \
  -H "Authorization: Bearer $PIROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-3.8-flash",
    "input": "Hello!"
  }'
```

### OpenAI Chat

- Endpoint: `POST /v1/chat/completions` on https://api.pirouter.ai
- Auth: `Authorization: Bearer <key>`
- SDK base URL: https://api.pirouter.ai/v1
- Reference: https://pirouter.ai/docs/api/chat-completions

```bash
curl https://api.pirouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $PIROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-3.8-flash",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'
```

### Gemini

- Endpoint: `POST /v1beta/models/google/gemini-3.8-flash:generateContent` on https://api.pirouter.ai
- Auth: `Authorization: Bearer <key>`
- SDK base URL: https://api.pirouter.ai
- Reference: https://pirouter.ai/docs/api/generate-content

```bash
curl "https://api.pirouter.ai/v1beta/models/google/gemini-3.8-flash:generateContent" \
  -H "Authorization: Bearer $PIROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{ "parts": [{ "text": "Hello!" }] }]
  }'
```

## Providers

One row per provider; pirouter sends each request to a healthy one.

| Provider | API format | Context | Max output | Input /M | Output /M | Trains on your data | Data retention |
|---|---|---|---|---|---|---|---|
| gcp | openai, gemini | 1,048,576 | 65,536 | $0.75 ~~$1.5~~ | $3.75 ~~$7.5~~ | No | Limited |

## Rankings

Where this model ranks on each blind-vote leaderboard, listing the boards where it makes the top 100. Open a board for the full ranking.

| Board | Rank | Score |
|---|---|---|
| [Overall](https://pirouter.ai/rankings/overall) | #9 / 385 | 1494 |
| [Coding](https://pirouter.ai/rankings/coding) | #16 / 380 | 1531 |
| [Math](https://pirouter.ai/rankings/math) | #6 / 371 | 1516 |
| [Creative writing](https://pirouter.ai/rankings/creative) | #8 / 383 | 1484 |
| [Instruction following](https://pirouter.ai/rankings/instruct) | #11 / 385 | 1487 |
| [Multi-turn](https://pirouter.ai/rankings/multiturn) | #6 / 383 | 1501 |
| [Long prompts](https://pirouter.ai/rankings/longctx) | #7 / 363 | 1508 |
| [Chinese](https://pirouter.ai/rankings/chinese) | #12 / 362 | 1535 |
| [Web dev](https://pirouter.ai/rankings/webdev) | #26 / 121 | 1583 |
| [Agents](https://pirouter.ai/rankings/agent) | #18 / 44 | +3.0 pp |
| [Vision](https://pirouter.ai/rankings/vision) | #15 / 144 | 1286 |

Data: [LMArena leaderboard dataset](https://huggingface.co/datasets/lmarena-ai/leaderboard-dataset), used under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Updated 2026-10-01

## Supported parameters

`tools`, `tool_choice`, `response_format`, `structured_outputs`, `max_tokens`, `temperature`, `top_p`, `seed`, `stop`, `reasoning`, `include_reasoning`, `stream`

## Links

- HTML: https://pirouter.ai/models/google/gemini-3.8-flash
- JSON: https://pirouter.ai/api/models/google/gemini-3.8-flash
- Providers JSON: https://api.pirouter.ai/v1/models/google/gemini-3.8-flash/endpoints
- Leaderboard ranks (JSON): https://pirouter.ai/api/models/google/gemini-3.8-flash/rankings
- Catalog: https://pirouter.ai/models
- Quickstart: https://pirouter.ai/docs/quickstart
- How routing works: https://pirouter.ai/docs/routing
- llms.txt: https://pirouter.ai/llms.txt

---

HTML version: https://pirouter.ai/models/google/gemini-3.8-flash · Machine-readable index: https://pirouter.ai/llms.txt
