Key Metrics
Input Limit
1.0M tokens
Output Limit
8.2K tokens
Input Cost
$0.07/1M
Output Cost
$0.30/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.0-flash-lite')
# 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
Optimized for cost efficiency and low latency.
Capabilities
Multimodal input
Long context
Function calling
Structured outputs
Caching
Supported Data Types
Input Types
text
image
audio
video
Output Types
text
Strengths & Weaknesses
Exceptional at
cost efficiency
low latency
Good at
general reasoning
Additional Information
Latest Update
Feb 5, 2024
Knowledge Cutoff
2024-08
ELO Score
1312