WaveSpeedAI APIGoogleGoogle Imagen4 Fast

Google Imagen4 Fast

Google Imagen4 Fast

Playground

Try it on WavespeedAI!

Google Imagen4 Fast is the fast variant of Google’s Imagen 4 flagship text-to-image model for high-quality image generation. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

Features

Google Imagen 4 Fast

Imagen 4 Fast is the high-speed, cost-efficient variant of Google’s Imagen 4 image generation model. It delivers near-identical visual fidelity to the standard version but at significantly higher speed and lower cost — ideal for creative iteration, social content, and rapid prototyping.


⚡ Why it stands out

  • 10× Faster Generation Creates high-quality images in a fraction of the time, enabling instant visual feedback for creators.
  • Cost-Effective Performance Optimized for efficiency — generate more images on the same budget without compromising clarity or color accuracy.
  • Cinematic and Artistic Range Handles both photorealistic and stylized compositions with balanced lighting and rich texture detail.
  • Enhanced Text Rendering Maintains Imagen 4’s superior typography performance, producing crisp, legible text for posters and designs.
  • Resolution Flexibility Supports multiple aspect ratios up to 2 K resolution, suitable for digital media and print layouts.

⚙️ How to use

  • Input: text prompt

  • Resolution: up to 2048 × 2048 px

  • Compatible with descriptive prompts such as:

    • “A futuristic city at sunrise, glowing glass towers and flying cars in the distance.”
    • “A close-up portrait of a woman in soft studio lighting, ultra-realistic detail.”

💰 Pricing

  • $0.018 per image
  • Commercial use allowed

💡 Best Use Cases

  • Rapid Concepting — Quickly explore visual directions during creative brainstorming.
  • Social Media & Marketing — Generate eye-catching visuals for campaigns in seconds.
  • Design & Illustration — Produce high-resolution imagery for posters, banners, and print layouts.
  • Product Visualization — Render realistic textures, materials, and lighting for prototypes.

📝 Notes

Please ensure your prompts comply with Google’s Safety Guidelines. If an error occurs, review your prompt for restricted content, adjust it, and try again.

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-fast" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
    "aspect_ratio": "1:1",
    "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.
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.