Loading model…正在加载模型详情…
Loading model…正在加载模型详情…
Generate images from text with Google’s Imagen 4, with standard, Fast and Ultra variants in one workspace.


Create a cinematic, photorealistic medium shot capturing the nostalgic warmth of a late 90s indie film. The focus is a young woman with brightly dyed pink hair (slightly faded) and freckled skin, looking directly and intently into the camera lens with a hopeful yet slightly uncertain smile. She wears an oversized, vintage band t-shirt (slightly worn, with the faintly cracked white text “{{appName}}” across the chest) layered over a long-sleeved striped top, along with simple silver stud earrings. The lighting is soft, golden hour sunlight streaming through a slightly dusty window, creating lens flare and illuminating dust motes in the air. The background shows a blurred, cluttered bedroom with posters on the wall and fairy lights, rendered with a shallow depth of field. Natural film grain, a warm, slightly muted color palette, and sharp focus on her expressive eyes enhance the intimate, authentic feel.

An extreme close-up shot plunges into a field overflowing with abundant frosted wildflowers. Petals of deep pink, purple, and yellow glisten under a crystalline glaze of ice. The frost catches the morning light, scattering shimmering highlights. The razor-thin depth of field renders the nearest blossoms in exquisite detail, with crystalline frost against vivid pigments. Among the frosted petals, a delicate frost pattern forms the faint letters “{{appName}},” appearing as though etched naturally by the ice itself, blending with the scene’s magical beauty.
Imagen 4 is Google’s text-to-image model family. The standard, Fast and Ultra variants accept a written image description and an aspect option on UniRoute.
Describe the subject, action and visual style, then choose one of the catalog options and review the request quote. The available input is text and the catalog option; reference-media inputs are not exposed for these variants.
Choose standard, Fast or Ultra by the settings and request prices listed below; an unavailable image-editing mode is not offered in the workspace.
What you can do with Imagen 4 through UniRoute today.
Describe the subject, action and visual style, then choose one of the catalog options and review the request quote.
The workspace shows only callable variants; other family operations are not available on UniRoute yet.
The variants you can call, with their options and prices.
| Variant | Model ID | Modes | Inputs | Output | Price |
|---|---|---|---|---|---|
| Imagen 4 Fast | google/imagen4-fast | Text to image | Text prompt and an option for aspect ratio | Aspect ratio: 1:1, 16:9 | $0.03 per request |
| Imagen 4 Ultra | google/imagen4-ultra | Text to image | Text prompt and an option for aspect ratio | Aspect ratio: 1:1, 16:9, 9:16 | $0.08 per request |
| Imagen 4 | google/imagen4 | Text to image | Text prompt and an option for aspect ratio | Aspect ratio: 1:1, 16:9, 9:16 | $0.05 per request |
Priced per request. The option you choose sets the price.
| Imagen 4 Fast | |
|---|---|
| 1:1 | $0.03 |
| 16:9 | $0.03 |
| Imagen 4 Ultra | |
|---|---|
| 1:1 | $0.08 |
| 16:9 | $0.08 |
| 9:16 | $0.08 |
| Imagen 4 | |
|---|---|
| 1:1 | $0.05 |
| 16:9 | $0.05 |
| 9:16 | $0.05 |
Rounded to the cent; the live quote in the workspace shows the exact amount. Prices updated 2026-11-08.
Pay as you go from a single USD wallet balance. You see the quote before each request.
Call Imagen 4 from your own code with the media API.
# Requires bash, curl and jq. Set API_KEY to your own unified UniRoute Key.set -euo pipefail: "${API_KEY:?Set API_KEY first}"BASE='https://api.uniroute.app/v1/media'MODEL='google/imagen4-ultra'OPTION='1:1'PROMPT='A calm sunrise over a mountain lake'curl -fsS --max-time 60 "$BASE/catalog" -H "Authorization: Bearer $API_KEY" | jq -e '.data.models'BODY=$(jq -n --arg model "$MODEL" --arg option "$OPTION" --arg prompt "$PROMPT" '{model:$model,option:$option,prompt:$prompt}')QUOTE_BODY=$(printf '%s' "$BODY" | jq '{model,option}')QUOTE=$(curl -fsS --max-time 60 "$BASE/quote" -H "Authorization: Bearer $API_KEY" -H 'Content-Type: application/json' -d "$QUOTE_BODY")CAP=$(printf '%s' "$QUOTE" | jq -er '.data.quoted_usd')BODY=$(printf '%s' "$BODY" | jq --arg cap "$CAP" '. + {max_cost_usd:$cap}')IDEMPOTENCY="example-$(date +%s)-$$"create() { curl -fsS --max-time 60 "$BASE/tasks" -H "Authorization: Bearer $API_KEY" -H "Idempotency-Key: $IDEMPOTENCY" -H 'Content-Type: application/json' -d "$BODY"; }TASK_ID=$(create | jq -er '.data.task_id')# The same request and idempotency key must return the original task without charging again.REPLAY_ID=$(create | jq -er '.data.task_id')[ "$TASK_ID" = "$REPLAY_ID" ]for attempt in $(seq 1 120); do TASK=$(curl -fsS --max-time 60 "$BASE/tasks/$TASK_ID" -H "Authorization: Bearer $API_KEY") printf '%s' "$TASK" | jq -e '.data | {task_id,status,billing}' if printf '%s' "$TASK" | jq -e '.data.status == "success" and .data.billing.state == "charged"' >/dev/null; then index=0 while IFS= read -r url; do index=$((index+1)) curl -fL --max-time 120 "$url" -o "$TASK_ID-$index.bin" done < <(printf '%s' "$TASK" | jq -er '.data.urls[].url') break fi if printf '%s' "$TASK" | jq -e '.data.status == "failed" and .data.billing.state == "released"' >/dev/null; then exit 1; fi if [ "$attempt" = 120 ]; then echo "Polling limit reached. Keep task ID $TASK_ID and query it later; do not create a new task." >&2 exit 1 fi sleep 5donecurl -fsS --max-time 60 "$BASE/tasks?limit=20" -H "Authorization: Bearer $API_KEY" | jq -e '.data'# Check this task and the caller Key in Console usage; billing.charged_usd is the actual USD charge.| Name | In | Description |
|---|---|---|
model | Body | Model ID to run. |
option | Body | One of the options offered for the model: 1:1, 16:9, 9:16. |
prompt | Body | Text prompt describing what to generate. |
max_cost_usd | Body | Maximum cost in USD for this task, taken from the quote. |
Idempotency-Key | Header | A unique key per task, so a repeated request returns the original task instead of charging again. |
Typical ways to put Imagen 4 to work.
Explore a visual idea from a written brief, then revise the description to refine the result.
Use the generated result as a draft in a wider production workflow and review it before publication.
Use the media API to quote a request, create a task and poll until the output is ready.
Common questions about Imagen 4.
Imagen 4 is Google’s text-to-image model family. The standard, Fast and Ultra variants accept a written image description and an aspect option on UniRoute.
The variant selector lists the callable model IDs on UniRoute. Unavailable operations are omitted, and the specifications table shows the available options.
From $0.03 / image. The Pricing section lists the available rates for the selected variant and settings, with prices updated 2026-11-08.
Use the media API to request a quote, create a task with an Idempotency-Key and a maximum cost, then poll for the result.
Describe the subject, action and visual style, then choose one of the catalog options and review the request quote. Reference-media inputs are not exposed for the callable variants shown here.
No. Generation is paid from your wallet balance. You can open the workspace and review the price without paying, create an account to see a live quote for your exact settings, and you are charged only for requests that are accepted.