Loading model…正在加载模型详情…
Loading model…正在加载模型详情…
用 Google 的 Imagen 4 根据文字生成图片,在同一工作区选择标准版、Fast 或 Ultra。


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 是 Google 的文字生图模型系列。在 UniRoute 上,标准版、Fast 与 Ultra 均接受图片文字描述与宽高比选项。
描述主体、动作和视觉风格,选择目录中开放的规格,并查看请求报价。 这些版本当前接受文字与目录选项,尚未开放参考媒体输入。
根据下方列出的规格与请求价格选择标准版、Fast 或 Ultra;工作区暂未开放图片编辑模式。
目前通过 UniRoute 使用 Imagen 4 可以做什么。
描述主体、动作和视觉风格,选择目录中开放的规格,并查看请求报价。
工作区仅展示可调用版本;Imagen 4 的其他操作暂未在 UniRoute 开放。
可调用的版本,以及各自的选项和价格。
| 版本 | 模型 ID | 模式 | 输入 | 输出 | 价格 |
|---|---|---|---|---|---|
| Imagen 4 Fast | google/imagen4-fast | 文生图 | 文字提示词和宽高比选项 | 宽高比:1:1、16:9 | $0.03 / 次请求 |
| Imagen 4 Ultra | google/imagen4-ultra | 文生图 | 文字提示词和宽高比选项 | 宽高比:1:1、16:9、9:16 | $0.08 / 次请求 |
| Imagen 4 | google/imagen4 | 文生图 | 文字提示词和宽高比选项 | 宽高比:1:1、16:9、9:16 | $0.05 / 次请求 |
按请求计价,所选规格决定价格。
| 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 |
金额四舍五入到分;工作区中的实时报价显示精确金额。价格更新于 2026-11-08。
按用量计费,统一使用一个美元钱包余额。每次请求前都会先看到报价。
用媒体 API 在你自己的代码里调用 Imagen 4。
# 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.| 名称 | 位置 | 说明 |
|---|---|---|
model | 请求体 | 要运行的模型 ID。 |
option | 请求体 | 该模型提供的规格之一:1:1, 16:9, 9:16。 |
prompt | 请求体 | 描述要生成内容的文字提示词。 |
max_cost_usd | 请求体 | 本次任务的最高费用(美元),取自报价。 |
Idempotency-Key | 请求头 | 每个任务唯一的键;重复请求会返回原任务,不会重复扣费。 |
Imagen 4 的常见用法。
根据文字需求探索画面,再修改描述来完善结果。
将生成结果作为完整制作流程中的草稿,发布前先行检查。
通过媒体 API 获取请求报价、创建任务,并轮询直到输出就绪。
关于 Imagen 4 的常见问题。
Imagen 4 是 Google 的文字生图模型系列。在 UniRoute 上,标准版、Fast 与 Ultra 均接受图片文字描述与宽高比选项。
版本选择器列出 UniRoute 当前可调用的模型标识,不可用操作不展示,具体选项见规格表。
$0.03 起 / 张。“价格”一节列出了所选版本和设置的可用费率,价格更新于 2026-11-08。
使用媒体 API 获取报价,再带上 Idempotency-Key 与最高费用创建任务,随后轮询结果。
描述主体、动作和视觉风格,选择目录中开放的规格,并查看请求报价。 本页所列可调用版本暂未开放参考媒体输入。
没有。生成费用从你的钱包余额中扣除。你可以直接打开工作区查看价格,注册账号后可看到针对当前设置的实时报价,只有被接受的请求才会计费。