Models / Gemini 2.5 Flash
Gemini 2.5 Flash
proprietaryGoogle's fast, cost-efficient model. Optimized for low-latency, high-throughput applications.
google/gemini-2.5-flashContext Window
1M
Max Output
66K
Providers
1
Released
2025-04
Capabilities
chatcodevisionreasoningthinkingtoolsfunction_callingstreamingjson_mode
Pricing by Provider
| Provider | Input $/1M | Output $/1M | Latency p50 | Latency p95 | Status |
|---|---|---|---|---|---|
| $0.15 | $0.60 | 200ms | 600ms |
Quick Start
Python
import magicrouter
mr = magicrouter.Client(
provider_keys={"google": "your-api-key"}
)
response = mr.chat(
"google/gemini-2.5-flash",
"Your prompt here"
)
print(response.choices[0].message.content)TypeScript
import { MagicRouter } from "magicrouter";
const mr = new MagicRouter({
providerKeys: { google: "your-api-key" }
});
const response = await mr.chat({
model: "google/gemini-2.5-flash",
messages: [{ role: "user", content: "Your prompt here" }]
});
console.log(response.choices[0].message.content);cURL
curl https://generativelanguage.googleapis.com/v1beta/chat/completions \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.5-flash-preview-04-17",
"messages": [{"role": "user", "content": "Your prompt here"}]
}'