Key Metrics
Input Limit
N/A tokens
Output Limit
N/A tokens
Input Cost
N/A/1M
Output Cost
N/A/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('imagen-3.0-generate-002')
# Generate image
response = model.generate_content("A serene landscape with mountains and a lake at sunset.")
# Save the image
response.image.save("generated_image.png")
Required Libraries
google-generativeai
@google/generative-ai
Notes
Highest quality text-to-image model, capable of generating images with better detail, richer lighting and fewer distracting artifacts than previous models. Can generate up to 4 images per request.
Capabilities
Image generation
Supported Data Types
Input Types
text
Output Types
image
Strengths & Weaknesses
Exceptional at
image generation
image quality
Good at
detail rendering
lighting
Additional Information
Latest Update
Feb 5, 2024
Knowledge Cutoff