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-1.5-flash')
# 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
Fast and versatile multimodal model for scaling across diverse tasks. Supports up to 3,600 images per prompt, 1 hour of video, and approximately 9.5 hours of audio.
Capabilities
Multimodal input
Long context
Function calling
JSON mode
System instructions
Code execution
Caching
Tuning
Supported Data Types
Input Types
text
image
audio
video
Output Types
text
Strengths & Weaknesses
Exceptional at
fast performance
versatile tasks
Good at
general reasoning
multimodal understanding
Additional Information
Latest Update
Sep 1, 2024
Knowledge Cutoff
2023-11
ELO Score
1270