Key Metrics
Input Limit
1.0M tokens
Output Limit
65.5K tokens
Input Cost
$0.15/1M
Output Cost
$0.60/1M
Sample API Code
import google.generativeai as genai
# Configure the API key
genai.configure(api_key="YOUR_API_KEY")
# Set up the model
model = genai.GenerativeModel('gemini-2.5-flash-preview-04-17')
# Generate content
response = model.generate_content("Explain the difference between transformers and RNNs in deep learning.")
print(response.text)
Required Libraries
google-generativeai
@google/generative-ai
Notes
Best model in terms of price-performance, offering well-rounded capabilities. Model thinks as needed or can be configured with a thinking budget. Best for low latency, high volume tasks that require thinking.
Capabilities
Multimodal input
Long context
Function calling
JSON mode
Code execution
Search grounding
Structured outputs
Thinking
Supported Data Types
Input Types
text
image
audio
video
Output Types
text
Strengths & Weaknesses
Exceptional at
Affordable
Thinking
Good at
Reasoning
Multimodal
Additional Information
Latest Update
Apr 17, 2024
Knowledge Cutoff
2025-01
ELO Score
1394