Loading model…正在加载模型详情…
Loading model…正在加载模型详情…
用阿里巴巴的 Qwen Image 根据文字生成图片,探索中英文文字呈现和多种视觉风格。


A vibrant, colorful scene at a lively amusement park during the day,featuring a cheerful young girl (around 10-12 years old) with a bright smile, wearing a colorful t-shirt and shorts, standing in the foreground. She's holding a cotton candy in one hand and pointing excitedly toward the background. Behind her a large, eye catching amusement park sign reads '{{appName}} Al' in bold, playful neon letters with a futuristic yet whimsical design, glowing in bright colors like pink, blue, and yellow. The background includes classic amusement park elements: a Ferris wheel, roller coaster tracks looping in the sky, colorful balloons, and a bustling crowd. The atmosphere is joyful, sunny, and energetic, with vivid colors and a sense of fun.

A serene natural landscape at sunrise, featuring a tranquil alpine meadow nestled between towering, snow-capped mountains. The meadow is filled with vibrant wildflowers in shades of purple, yellow, and red, swaying gently in the breeze. A crystal-clear stream winds through the scene, reflecting the golden hues of the rising sun. In the background, a dense pine forest stretches toward the horizon, and a soft morning mist adds a mystical touch. The sky is a gradient of warm orange and pink, with a few scattered clouds. The atmosphere is peaceful, crisp, and untouched, evoking a sense of calm and wonder.

A high school student walking home after school, carrying a backpack, wearing a casual school uniform with a skirt and jacket, walking away from the camera down a bustling street at dusk. The scene is filled with other students walking in the same direction, their figures slightly blurred in the background. City lights are beginning to glow, with neon signs and street lamps illuminating the path. The sky is a deep blue transitioning to night, and the atmosphere conveys a sense of relief and freedom at the end of the day.
Qwen Image 是阿里巴巴 Qwen 系列的图片生成模型。阿里巴巴的介绍强调中英文文字呈现,以及从写实场景到插画的多种风格。
UniRoute 提供 qwen/text-to-image,接受文字提示词与宽高比选项。在工作区选择画幅并查看请求预算上限后再提交,最终费用按实际用量结算。
本页介绍原版 Qwen Image 系列。下方列出了后续 Qwen Image 版本,便于比较可用模型及其目录规格。
目前通过 UniRoute 使用 Qwen Image 可以做什么。
描述场景、插画或配图,并写明需要出现在图中的文字,选择宽高比后根据提示词生成新图片。

Qwen Image 的其他模式(图生图编辑和基于参考图的变换)暂未在 UniRoute 开放。
可调用的版本,以及各自的选项和价格。
| 版本 | 模型 ID | 模式 | 输入 | 输出 | 价格 |
|---|---|---|---|---|---|
| Qwen Image | qwen/text-to-image | 文生图 | 文字提示词和宽高比选项 | 宽高比:1:1、16:9、9:16 | 每次请求预算上限 $0.05 |
预算上限限定最高费用,最终费用按实际用量结算。
| Qwen Image | |
|---|---|
| 1:1 | 每次请求预算上限 $0.05 |
| 16:9 | 每次请求预算上限 $0.05 |
| 9:16 | 每次请求预算上限 $0.05 |
金额四舍五入到分;工作区中的实时报价显示精确金额。价格更新于 2026-11-25。
按用量计费,统一使用一个美元钱包余额。每次请求前都会先看到报价。
用媒体 API 在你自己的代码里调用 Qwen Image。
# 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='qwen/text-to-image'OPTION='square_hd'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 | 请求体 | 该模型提供的规格之一:square_hd, landscape_16_9, portrait_16_9。 |
prompt | 请求体 | 描述要生成内容的文字提示词。 |
max_cost_usd | 请求体 | 本次任务的最高费用(美元),取自报价。 |
Idempotency-Key | 请求头 | 每个任务唯一的键;重复请求会返回原任务,不会重复扣费。 |
Qwen Image 的常见用法。
描述中英文文案及周围的视觉版式,起草营销创意。
根据文字想法,探索适合社交发布的插画或写实场景。
描述主体、色彩和构图,根据文字探索新的作品。
关于 Qwen Image 的常见问题。
Qwen Image 是阿里巴巴 Qwen 系列的图片生成模型。阿里巴巴的介绍强调中英文文字呈现,以及从写实场景到插画的多种风格。
可以在工作区选择宽高比。当前版本未开放独立的分辨率设置、编辑控制项或参考图输入。
每次请求预算上限 $0.05。显示金额为请求最高预算,最终费用按实际用量结算。“价格”一节列出了预算上限(价格更新于 2026-11-25)。
本页列出的版本均根据文字提示词生成新图片,工作区只展示当前目录开放的规格。
使用媒体 API:先对所选模型和规格请求报价,再带上 Idempotency-Key 和最高费用创建任务,然后轮询任务直到结果就绪。“API”一节给出了完整示例和参数说明。
没有。生成费用从你的钱包余额中扣除。你可以直接打开工作区查看价格,注册账号后可看到针对当前设置的实时报价,只有被接受的请求才会计费。