Key Metrics
Input Limit
1.0M tokens
Output Limit
8.2K tokens
Input Cost
$0.04/1M
Output Cost
$0.15/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-8b')
# 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
Small model designed for lower intelligence 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
high volume
cost efficiency
Good at
basic tasks
Poor at
complex reasoning
Additional Information
Latest Update
Oct 1, 2024
Knowledge Cutoff
2023-11
ELO Score
1250