AI Gateway
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 red balloon on a wooden table.'});Try out Imagen 4 by Google. Usage is billed to your team at API rates. Free users get $5 of credits every 30 days, and you are considered a free user if you haven't made a payment.
Chat with
Powered by AI Gateway