Google: Gemini 2.5 Flash
gemini-2.5-flash
Gemini 2.5 Flash costs $0.390 per million input tokens and $3.25 per million output tokens, supports 1.05M context, and is available through the OpenAI-compatible API.
Fast, cost efficient performance on complex tasks. The workhorse of the Gemini series. Stable release with improved capabilities. Audio input costs $1.00 per million audio tokens.
Modalities
Text + Image + Video + Audio → Text
Input / output price
$0.390 / $3.25 per 1M
Context
1.05M · max output 66K
Capabilities
Pricing
Billed per token actually used and deducted from your credits.
| Item | USD per 1M tokens |
|---|---|
| Input | $0.390 |
| Output | $3.25 |
| Cached input | $0.039 |
Calculator
Drag the sliders to estimate what this model will cost.
- Per request
- $0.00377
- Per day
- $1.89
- Per month (30 days)
- $56.55
Gemini 2.5 Flash: input $0.39/M · output $3.25/M · cached input $0.039/M
curl https://api.geniusrelaygpt.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gemini-2.5-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-2.5-flash.
curl https://api.geniusrelaygpt.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.5-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_penaltyseedFAQ
- How is Gemini 2.5 Flash billed?
- Input is $0.390 and output is $3.25 per million tokens; cached input is $0.039. 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.