Google's Imagen 4 is the flagship text-to-image model for generating images from text prompts with strong fidelity and creative control. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Idle

$0.038per run·~26 / $1

An elderly man with a weathered face and a wool hat, sitting on a wooden bench in autumn, photorealistic portrait

A young woman with freckles and red hair standing in soft morning sunlight, natural expression, candid photo style

A winding mountain road under golden sunset light, detailed textures on rocks and trees, hyper-realism

Chef plating food in a busy kitchen, shallow depth of field, cinematic color grading

Close-up of a honeybee on a sunflower, extreme macro, visible pollen grains, lifelike details

A golden retriever lying on a wooden floor, warm indoor lighting, high detail fur

A snowy owl in mid-flight over a frozen tundra, focused eyes and wings spread, natural realism

A female dancer in 1920s Jazz Age attire, elegantly performing in a dimly lit ballroom, with the image featuring a vintage film grain effect.

In a rain-slicked neon alley, a cyberpunk girl with glowing blue eyes stares ahead with calm intensity. Her leather jacket flickers with reflections from the signs above as electric sparks scatter nearby. The camera glides past her shoulder, revealing towering holograms and buzzing drones in the background.

A middle-aged man in a classic trench coat stands alone at the deserted train station, exhaling a slow stream of smoke as an old train rolls by in the background. The camera lingers in monochrome tones, capturing every wrinkle of time on his face as he glances at his watch, the wind rustling his coat.

A futuristic agent in sleek tactical armor walks briskly through a glowing corridor lined with digital panels. His visor lights pulse with data as he scans the environment. The camera follows from behind, then rotates to a frontal close-up as he stops and raises his hand to activate a floating holographic map.

A highly detailed, photorealistic A4 image for a workbook on self-awareness and inner transformation called “Activatory”. The composition should feature the Activatory Power Box – a low, cylindrical object with rotating outer panels and a central fold-out activation button at the very top – prominently in the scene. The environment should combine symbolic and surreal elements: soft, textured white paper, flowing abstract lines symbolizing personal transformation, and subtle, luminous embellishments around the Power Box symbolizing activation. Free-floating symbols should be incorporated around the cylinder, such as keys, doors, abstract shapes, and fragmented patterns, each representing different layers of the self. The style should be whimsical yet sophisticated, with subtle, inky outlines, soft watercolor shading, and subdued, harmonious color tones. The illustration should be inspiring, magical, and visually balanced, filling the space. photorealistic
The Imagen 4 series represents Google’s latest generation of high-quality text-to-image models, offering unparalleled fidelity, style flexibility, and advanced text rendering. Whether you need cinematic photorealism, stylized artwork, or crisp typography, Imagen 4 is designed to deliver.
Just $0.038 per image!!!
You can generate up to 4 images at once, billed individually.
If you encounter the error message 'Content is filtered due to unknown reasons,' please review your prompt input, modify your prompt, and regenerate.
Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/google/imagen4 with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Imagen4 below.
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/google/imagen4" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WAVESPEED_API_KEY" \
-d '{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"aspect_ratio": "1:1",
"resolution": "1k",
"num_images": 1,
"negative_prompt": "blurry, low quality, distorted",
"seed": 0,
"enable_base64_output": false
}'
# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
-H "Authorization: Bearer $WAVESPEED_API_KEY"
# When status is "completed", read the output from data.outputs[0].// npm install wavespeed
const WaveSpeed = require('wavespeed');
const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env
const result = await client.run("google/imagen4", {
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"aspect_ratio": "1:1",
"resolution": "1k",
"num_images": 1,
"negative_prompt": "blurry, low quality, distorted",
"seed": 0,
"enable_base64_output": false
});
console.log(result.outputs[0]); // → URL of the generated output# pip install wavespeed
import wavespeed
output = wavespeed.run(
"google/imagen4",
{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"aspect_ratio": "1:1",
"resolution": "1k",
"num_images": 1,
"negative_prompt": "blurry, low quality, distorted",
"seed": 0,
"enable_base64_output": false
}
)
print(output["outputs"][0]) # → URL of the generated outputImagen4 is a Google model for image generation, exposed as a REST API on WaveSpeedAI. Google's Imagen 4 is the flagship text-to-image model for generating images from text prompts with strong fidelity and creative control. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/google/google-imagen4.
Imagen4 starts at $0.038 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
Key inputs: `prompt`, `aspect_ratio`, `resolution`, `seed`, `negative_prompt`, `enable_base64_output`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/google/google-imagen4.
Average end-to-end generation time on WaveSpeedAI is around 28 seconds per request — measured across recent runs. Queue time scales with global demand; live status is visible in the prediction record.
Commercial usage rights depend on the model's license, set by its provider (Google). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.