Gemini 2.5 Flash
by Google
Previous-generation Flash, best price-performance. GA and stable.
Parameters
Context Length
1M
Category
chat
Available Serverless
Run queries immediately, pay only for usage
$0.32in|$2.63out
Per 1M Tokens
About this model
Previous-generation Flash, best price-performance. GA and stable.
Capabilities
Long context (1M)
Model Details
- Provider
- Model ID
- gemini-2.5-flash
- Parameters
- Context Length
- 1M tokens
- Category
- chat
API Usage
Use the DOS API to integrate Gemini 2.5 Flashinto your applications. Our API is compatible with OpenAI's client libraries for easy migration.
Model ID
gemini-2.5-flashPython
python
from dos import DOS
client = DOS()
response = client.chat.completions.create(
model="gemini-2.5-flash",
messages=[
{"role": "user", "content": "Hello, how are you?"}
]
)
print(response.choices[0].message.content)cURL
bash
curl https://api.dos.ai/v1/chat/completions \
-H "Authorization: Bearer $DOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.5-flash",
"messages": [
{"role": "user", "content": "Hello, how are you?"}
]
}'Node.js
javascript
import DOS from 'dos-ai';
const client = new DOS();
const response = await client.chat.completions.create({
model: "gemini-2.5-flash",
messages: [
{ role: "user", content: "Hello, how are you?" }
]
});
console.log(response.choices[0].message.content);Related Models
DOS.AI
DOS.AI Auto
Smart routing - automatically picks the best model for your request. Free for simple tasks, paid models for complex ones.
Usage-based
DOS.AI
DOS.AI
Ultra-efficient MoE model — 35B total, 3B active parameters. Fast inference at near-8B cost with 70B-class quality.
$0.07 / 1M tokens
DeepSeek
DeepSeek V4 Flash
1M-context fast tier replacing DeepSeek V3
$0.15 / 1M tokens