Gemini 3.8 Flash API pricing and setup

Gemini 3.8 Flash (gemini-3.8-flash) is a Google model. It is available through the relay.fast API with one relay.fast key and pay-as-you-go billing.

Prices checked from the live catalog. "From" is the lowest price among the relay.fast sources that currently serve the model. The price you pay depends on the source your request uses and can change on any day. The pricing page always shows current values.

Official input price$1.5 per 1M tokens
Official output price$7.5 per 1M tokens
relay.fast input from$0.06 per 1M tokens
relay.fast output from$0.3 per 1M tokens
Cache read from$0.006 per 1M tokens
Lower than the official price byup to 96%
Context window1.05M tokens
Endpoints/v1/chat/completions, /v1beta/models/gemini-3.8-flash:generateContent

Example request

Keep the key in the RELAY_FAST_API_KEY environment variable.

curl https://relay.fast/v1/chat/completions \
  -H "Authorization: Bearer $RELAY_FAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gemini-3.8-flash","messages":[{"role":"user","content":"Hello"}]}'

Use Gemini 3.8 Flash in coding tools

Setup guides: Claude Code, Codex, Cursor, Cline, Kilo Code, OpenCode, Aider. The API docs have one-command installers.

Frequently asked questions

How much does the Gemini 3.8 Flash API cost?

On 2026-11-05, relay.fast charges from $0.06 per 1M input tokens and $0.3 per 1M output tokens for Gemini 3.8 Flash, against the official $1.5 and $7.5. The price depends on the source your request uses and can change; https://relay.fast/pricing/gemini-3.8-flash shows the current value.

What is the context window of Gemini 3.8 Flash?

Gemini 3.8 Flash accepts up to 1.05M tokens of context in the relay.fast catalog. Output limits depend on the model and client settings.

Which API endpoint does Gemini 3.8 Flash use?

Call /v1/chat/completions and /v1beta/models/gemini-3.8-flash:generateContent with a relay.fast API key. OpenAI-compatible SDKs use the base URL https://relay.fast/v1.

Do I need a Google account to use Gemini 3.8 Flash?

No. You use a relay.fast account and API key. relay.fast is an independent API gateway and is not affiliated with Google.

Other Google models

Gemini 4 Argon

All model prices · API reference · Service status