Imagen 4
Imagen 4 Image Generation

Access Imagen 4 API
Photorealistic Detail
Sharp Text Rendering
Produces legible typography in posters and graphics using Imagen 4 model.
High Resolution
Up to 2K Output
Supports 2K resolution across 1:1, 3:4, 4:3, 9:16, 16:9 ratios via Imagen 4 API.
Fast Generation
Multiple Speed Options
Choose Imagen 4 Fast for 10x speed or Ultra for refined Imagen 4 image generation.
Examples
See what Imagen 4 can create
Copy any prompt below and try it yourself in the playground.
City Skyline
“Photorealistic image of a modern city skyline at dusk, sharp lights reflecting on glass towers, 16:9 aspect ratio, high detail”
Mountain Landscape
“Detailed landscape of snow-capped mountains over a calm lake, golden hour lighting, photorealistic, 3:4 aspect ratio”
Abstract Architecture
“Futuristic architecture with geometric patterns and neon accents, clean lines, 1:1 square format, high resolution”
Product Mockup
“Sleek smartphone on marble surface with soft shadows, studio lighting, product photography style, 4:3 aspect ratio”
For Developers
A few lines of code.
Imagen 4. One call.
ModelsLab handles the infrastructure: fast inference, auto-scaling, and a developer-friendly API. No GPU management needed.
- Serverless: scales to zero, scales to millions
- Pay per image, no minimums
- Python and JavaScript SDKs, plus REST API
import requestsresponse = requests.post("https://modelslab.com/api/v7/images/text-to-image",json={"key": "YOUR_API_KEY","prompt": "a regal knight in ornate, reflective golden armor with intricate blue accents, wearing a deep royal blue cape adorned with gold embroidery, sitting proudly on a majestic white horse. the knight’s helmet features a tall blue plume. the horse is also dressed in elaborate golden and blue tack, standing gracefully on a stone step partially surrounded by water. in the background, there is a grand palace with classical columns, arches, and marble statues, evoking renaissance or baroque architecture. lush greenery frames the scene, adding a serene, enchanted garden ambiance. the lighting is bright and natural, casting soft reflections in the water below","aspect_ratio": "1:1"})print(response.json())