Back to Models
Gemini 2.5 Flash
googlegoogle/gemini-2.5-flash
Best for balancing reasoning and speed. Gemini 2.5 Flash offers thinking capabilities with strong performance across coding, math, and reasoning tasks at an efficient price point.
Context Length
1.0M
Max Output
66K
Input Priceper 1M tokens
$0.360/ 1M tokens
Output Priceper 1M tokens
$3.00/ 1M tokens
Modalities
textimagepdfβtext
Pricing Breakdown
| Type | Rate |
|---|---|
| Input | $0.360 / 1M tokens |
| Output | $3.00 / 1M tokens |
Supported Parameters
temperaturemax_tokenstop_ptoolstool_choiceresponse_formatstop
API Usage Examples
Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.
cURL
curl https://api.therouter.ai/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer $THE_ROUTER_API_KEY" -d '{
"model": "google/gemini-2.5-flash",
"messages": [
{"role": "user", "content": "Summarize the key points from this input."}
]
}'