Imagen 4 API turns text into product, lifestyle and campaign images in six aspect ratios. Try it online and review examples, live pricing and API examples.

Provider: Google

Category: image generation

Status: In progress

Back to Models

Imagen 4

NewComing soon
by GoogleImage

Imagen 4 API turns text into product, lifestyle and campaign images in six aspect ratios. Try it online and review examples, live pricing and API examples.

Integration in progress

Imagen 4 is coming to HiAPI

From product campaigns to detailed scenes

Browse results across different aspect ratios, complete prompts, and visual detail.

Related image models

Choose an adjacent model by task, output tier, and reference-image needs.

About Imagen 4

Imagen 4 API turns text into product, lifestyle and campaign images in six aspect ratios. Try it online and review examples, live pricing and API examples.

The Playground and API use the same model ID: Google-Imagen4. This endpoint accepts text prompts only; reference-image editing uses the separate Image-to-Image route.

Provider
Google
Task
Text-to-Image
References
Not supported

Model specifications

Choose inputs and output settings for your creative goal with Imagen 4.

Reference images
Not supported
Aspect ratios
1:116:99:163:44:3auto
Negative prompt
Optional, up to 5,000 characters
Seed
Optional string, up to 500 characters
Per request
1 image
Prompt length
1–5,000 characters

Aspect ratio, negative prompt and seed do not change how a task is billed; confirm the charge with the live price and the task record.

How to use Imagen 4

Choose the destination and aspect ratio before composing subject, scene, material, light, and text.

Subject
Scene
Light and camera
01

Write the prompt

Describe the subject, scene, material, light and any exact text in 1–5,000 characters. Imagen 4 suits turning a settled direction into a reviewable image.

Default ratio

16:9

Optional

auto

02

Pick aspect_ratio; add negative_prompt and seed if needed

Choose aspect_ratio from 1:1, 16:9, 9:16, 3:4, 4:3 or auto (this page defaults to 16:9). Use negative_prompt for what to exclude; seed is an optional string (up to 500 characters).

Playground
POST /v1/tasks
03

Validate in Playground, then call /v1/tasks

Confirm the result in the Playground, then send the same inputs and model ID to POST /v1/tasks and use the returned taskId to fetch the Imagen 4 image.

API Quickstart

Copy a minimal request below. See Docs for parameters, callbacks, task retrieval, and errors.

Endpoint
POST /v1/tasks
Model ID
Google-Imagen4
cURL
curl -X POST "https://api.hiapi.ai/v1/tasks" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "Google-Imagen4",
  "input": {
    "prompt": "Create a premium skincare product photo for a landing-page hero. Show one frosted glass bottle on natural stone beside still water and green botanicals. Keep the bottle centered with empty space on the left for a headline. Warm daylight and soft shadows; the result should look like calm studio photography. Do not add logos or text.",
    "aspect_ratio": "16:9"
  }
}'

The create request immediately returns a taskId; image generation continues asynchronously.

Read the full API documentation

IMAGEN 4 · TEXT TO IMAGE

Imagen 4 turns a settled visual direction into a reviewable image

Imagen 4 is a text-to-image model that handles product stills, lifestyle scenes and documentary portraits, with 6 aspect ratios and prompts up to 5,000 characters. It suits product heroes, campaign drafts and editorial images.

6 aspect ratios16:9 defaultNegative promptString seed
Explore the model ↓
Editorial Scandinavian living room · 16:9
Editorial Scandinavian living room · 16:9

IMAGEN 4 · TEXT TO IMAGE

About Imagen 4

aspect_ratio is required: 1:1, 16:9, 9:16, 3:4, 4:3 or auto. This page defaults to 16:9, ready for landscape ad slots and landing-page heroes.

negative_prompt excludes unwanted elements; seed is a string of up to 500 characters that helps compare prompt changes. Each request returns one image and takes no reference images.

After confirming the image in the Playground, send the same inputs to HiAPI's POST /v1/tasks and fetch the image with the taskId.

What Imagen 4 can do

Each capability comes with a real result; images generated on the test frontend show the prompt as submitted.

Make the product the visual anchor

The product, stone, water and plants share one visual relationship, with the product always the clearest element. State the subject and its position first, then add light, material and negative space, reserving room in the prompt when a headline is needed. It suits product heroes, landing-page headers and social ad drafts.

Premium skincare campaign
Premium skincare campaign

Tell person and place in a 3:4 portrait

One vertical frame covers the person, the action and the setting. Imagen 4 offers 6 aspect ratios; set aspect_ratio to 3:4 and state what the person is doing, where, and in what light. It suits editorial features, brand stories and portrait posters.

Elderly fisherman mending nets on a harbor pier; golden hour; documentary portrait

Fisherman mending nets · 3:4
Fisherman mending nets · 3:4

Set quoted text into a poster

The quoted headline becomes the centerpiece of the poster layout. Put the exact words in quotes, state position, size and style, and exclude other text with negative_prompt; this result spelled JAZZ as JAZZZ, so always zoom in before delivery. It suits event posters, cover drafts and social title cards.

Hand-drawn style poster with the text "SUMMER JAZZ NIGHT" in bold letters; saxophone illustration; warm colors

Hand-drawn jazz night poster · 16:9
Hand-drawn jazz night poster · 16:9

Build a lifestyle scene from environmental detail

The table, book, linen, vase and interior light form one coherent lifestyle scene. Name each object and where it sits relative to the others, then describe one light direction and color temperature. It suits editorial images, brand stories and seasonal campaigns.

Sunlit coffee corner
Sunlit coffee corner

Where Imagen 4 fits

Brand and product visuals

Product heroes, event covers and ad directions.

Coastal outdoor campaign
Coastal outdoor campaign

Outdoor and campaign frames

Keep a person, the weather and the action in one outdoor shot.

Design proposals

Turn style, material and scene ideas into images teams can discuss.

Batch content workflows

Store prompts and ratios, submit in batches through /v1/tasks and record each taskId.

When to choose Imagen 4

Choose it for everyday product and content images once the direction is roughly set: a clear subject and light give a reviewable image. If speed and volume matter more, look at Imagen 4 Fast; when the final needs more detail, look at Imagen 4 Ultra.

ItemImagen 4Imagen 4 FastImagen 4 Ultra
FocusEveryday productionFast draftsHighest detail
Best stageReviewable images once a direction is setExploration and batch versionsFinal delivery
Model IDGoogle-Imagen4imagen4-fastimagen4-ultra
Default ratio16:916:91:1
seedString, ≤500 charactersIntegerString, ≤500 characters
ReferencesNot supportedNot supportedNot supported
Per request1 image1 image1 image

The three models share almost the same inputs; only seed type and default ratio differ, so switching is a change of model.

Pricing

Billed per output image, one per request; ratio, negative prompt and seed do not change billing. See the live price for the current rate.

View all live prices →

Try Imagen 4 now

Write a prompt and pick a ratio in the Playground, then call /v1/tasks with the same inputs.

Related articles

Need to compare models and billing tiers?View live pricing for all models

Frequently asked questions

What is Imagen 4 good for?

Everyday product, lifestyle and content images. Describe the subject, scene, material and light to get an image ready for review, for product heroes, campaign drafts and editorial illustrations.

Which aspect ratios does Imagen 4 support?

Six: 1:1, 16:9, 9:16, 3:4, 4:3 and auto. aspect_ratio is required; the Playground on this page defaults to 16:9.

How long can the prompt be?

Up to 5,000 characters. prompt is required; order it as subject, scene, material, light and text.

Can I exclude things I don't want?

Yes, with negative_prompt. It is optional, up to 5,000 characters, and works for extra text, watermarks or a cluttered background.

What format does seed use?

A string of up to 500 characters, optional. Keep the seed and other inputs fixed to compare only the prompt change.

Can I upload a reference image?

No. Imagen 4 generates from text only; to edit an existing image, see Nano Banana 2.1 in the related models, which edits with references.

How many images per request?

One. Submit several tasks for more versions.

Can I set pixel size or output format?

No. Only aspect_ratio is exposed; custom pixel dimensions and output-format controls are not offered.

Can the image contain text?

Yes, but check it before delivery. Put the exact text in quotes with its position and size and say no other text should appear; the poster example on this page came back with one extra letter in its headline.

Imagen 4, Fast or Ultra?

Choose Imagen 4 for everyday production. Choose Imagen 4 Fast for many drafts and Imagen 4 Ultra when the final needs more detail; each has its own model ID, so one project can use them at different stages.

How do I call the API?

Submit a task to POST /v1/tasks. Send model: "Google-Imagen4" and prompt plus aspect_ratio inside input. The response returns a taskId right away; set callback.url for a completion notice or query GET /v1/tasks/:id, then download the image from output.

How is it billed?

Per image, one per request. Aspect ratio and seed do not change billing; see the live price on this page, and the task record is final.