Agent may make mistakes. Verify all outputs.
Imagen 4: Google's flagship text-to-image model that serves as the go-to choice for a wide variety of high-quality image generation tasks, featuring significant improvements in text rendering over previous models. It now supports up to 2K resolution generation for creating detailed and crisp visuals, making it suitable for everything from marketing assets to artistic compositions.
import { experimental_generateImage as generateImage } from 'ai';
const result = await generateImage({ model: 'google/imagen-4.0-generate-001', prompt: 'A turquoise hummingbird resting on a branch covered with dew at sunrise.'});Try out Imagen 4 by Google. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.
Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.
| Provider |
|---|
| Model |
|---|