WaveSpeedAI APIGoogleGoogle Imagen4

Google Imagen4

Google Imagen4

Playground

Try it 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.

Features

Google’s Imagen 4

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.


Why it looks great

  • Fine detail rendering: Superior clarity for intricate elements like fabrics, water droplets, and animal fur.
  • Style versatility: Excels in both photorealistic and abstract artistic styles.
  • Resolution flexibility: Supports multiple aspect ratios with outputs up to 2K resolution.
  • Typography improvements: Dramatically better at rendering text on greeting cards, posters, and comics.
  • Fast variant: The upcoming Imagen 4 Fast delivers up to 10× faster generation compared to Imagen 3.

Limits and Performance

  • Max resolution per job: up to 2048 × 2048 pixels (2K)
  • Aspect ratio options: 1:1, 16:9, 9:16, 4:3, 3:4
  • Max images per run: up to 4 images per prompt
  • Processing speed: ~5–12 seconds per image (Ultra variant may take longer; Fast is optimized for speed)
  • Input prompt: supports multi-line, richly detailed descriptions

Pricing

Just $0.038 per image!!!

Billing Rule

You can generate up to 4 images at once, billed individually.


How to Use

  1. Enter your prompt (detailed description of the scene, style, or text).
  2. Select aspect_ratio (e.g., 1:1 for square, 16:9 for widescreen).
  3. Choose resolution (1K or 2K).
  4. Set num_images (up to 4).
  5. (Optional) Add a negative_prompt to exclude unwanted details.
  6. (Optional) Fix a seed for reproducibility across runs.
  7. Click Run → pay per image → preview and download results.

Pro tips for best quality

  • Use rich, descriptive prompts with lighting, mood, and style details.
  • For typography, specify exact text and style (handwritten, bold, comic font, etc.).
  • Use Ultra for maximum fidelity, Fast for speed and iteration.
  • Lock a seed if you want consistent subject appearance across multiple images.

More Versions


Note

If you encounter the error message ‘Content is filtered due to unknown reasons,’ please review your prompt input, modify your prompt, and regenerate.

Authentication

For authentication details, please refer to the Authentication Guide.

API Endpoints

Submit Task & Query Result


# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/google/imagen4" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
    "aspect_ratio": "1:1",
    "resolution": "1k",
    "num_images": 1,
    "enable_base64_output": false
}'

# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
promptstringYes-The positive prompt for the generation.
aspect_ratiostringNo1:11:1, 16:9, 9:16, 4:3, 3:4The aspect ratio of the generated media.
resolutionstringNo1k1k, 2kThe target resolution of the generated media.
num_imagesintegerNo11 ~ 4The number of images to generate.
negative_promptstringNo-The negative prompt for the generation.
seedintegerNo--1 ~ 2147483647The random seed to use for the generation.
enable_base64_outputbooleanNofalse-If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

© 2025 WaveSpeedAI. All rights reserved.