Google: Gemini 3.8 Flash

gemini-3.8-flash

Gemini 3.8 Flash costs $0.975 per million input tokens and $4.88 per million output tokens, supports 1.05M context, and is available through the OpenAI-compatible API.

Google's fast multimodal model for agentic workloads, including coding, tool use, image understanding, PDF and document extraction, audio, and video. Its capabilities, limits, reasoning behavior, and pricing currently mirror Gemini 3.7 Flash.

Modalities

Text + Image + Video + Audio → Text

Input / output price

$0.975 / $4.88 per 1M

Context

1.05M · max output 66K

Capabilities

ReasoningVisionTool callingLong context

Pricing

Billed per token actually used and deducted from your credits.

ItemUSD per 1M tokens
Input$0.975
Output$4.88
Cached input$0.0975

Calculator

Drag the sliders to estimate what this model will cost.

Per request
$0.00683
Per day
$3.41
Per month (30 days)
$102.38

Gemini 3.8 Flash: input $0.975/M · output $4.875/M · cached input $0.0975/M

Request with these settings
curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gemini-3.8-flash", "max_tokens": 800,
       "messages": [{"role": "user", "content": "…"}]}'

Code samples

OpenAI-compatible. Set the base URL to https://api.geniusrelaygpt.com/v1 and the model to gemini-3.8-flash.

curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.8-flash",
    "stream": true,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Use it in a client: Cursor · Cline · SillyTavern · Codex

Parameters

Common OpenAI parameters can be passed as-is.

temperaturetop_pmax_tokensstreamstoppresence_penaltyfrequency_penaltyseed

FAQ

How is Gemini 3.8 Flash billed?
Input is $0.975 and output is $4.88 per million tokens; cached input is $0.0975. The charge for every request is listed in Usage Logs in the console.
How long is the context window?
1.05M tokens. In a long conversation every turn is billed for the full input, so keep the history under control.
Does it support streaming?
Yes. Add "stream": true to the request to receive server-sent events in the OpenAI format.
Gemini 3.8 Flash API pricing · GeniusRelay