用阿里巴巴的 Qwen Image 2.1 根据文字生成图片,探索人物、产品细节和含文字的视觉设计。


Create a horizontal 3:2 botanical art poster photographed directly from above. On a rich cobalt-blue matte surface, arrange fresh flowers into the exact readable phrase "{{appName}}". The letters themselves are physical floral sculptures, not printed text and not typography placed over an image. Build the letterforms from densely arranged coral-orange ranunculus, pale peach carnations, and small cream chrysanthemums. Use flower heads of different sizes to create deliberate thick and thin strokes while preserving clean, recognizable letter shapes. Preserve the exact capitalization: uppercase K, lowercase i and e, followed by a clear space, then uppercase A and I. Keep the counters and gaps open so the phrase reads immediately. Make the floral lettering the dominant central subject, occupying roughly two-thirds of the image width. Allow a few short stems and delicate leaves to extend naturally beyond the letter edges, with just three or four loose petals nearby. Maintain generous untouched blue space around the arrangement. Use directional morning sunlight from the upper left to reveal translucent petal edges, tightly layered blooms, and crisp but delicate shadows cast onto the blue surface. Combine the precision of a contemporary exhibition poster with the tactile beauty of real floral craftsmanship. Bold color contrast, elegant spacing, finely resolved botanical details.

Create a horizontal 3:2 fashion editorial photograph of an adult woman with a short blonde bob standing beside a sunlit Mediterranean seawall. Frame her from the waist up, with her body almost front-facing and her head turned slightly toward the camera. A gentle sea breeze lifts a few individual strands of hair. Her expression is relaxed and quietly confident. She wears a loose cobalt-blue knitted sweater. The exact text "{{appName}}" is knitted directly into the upper chest in large cream-colored intarsia lettering. Each letter is constructed from visible yarn stitches, sharing the texture, folds, and shadows of the sweater. Keep the complete wording readable, with no hair or accessories covering it. Capture natural skin texture, subtle freckles, believable eyes, soft lip texture, and individual wool fibers. Late-afternoon sunlight illuminates one side of her face, with soft reflected light from the pale stone wall. A turquoise sea and a distant peach-colored building form a softly blurred background.

Create a horizontal 3:2 premium ecommerce hero photograph of a beautifully designed pair of over-ear headphones. The headphones have translucent ice-blue outer shells, brushed silver aluminum earcup plates, and soft ivory leather cushions with fine stitching. Position the headphones upright at a three-quarter angle on a low, warm-white cylindrical pedestal. Turn the nearest earcup toward the camera so its broad aluminum surface is clearly visible. Engrave the exact text "{{appName}}" into this metal plate, using elegant, highly readable lettering. The engraved strokes have subtle recessed edges and tiny directional shadows, physically belonging to the metal rather than appearing as a digital overlay. Reveal carefully arranged internal components through the translucent blue shell without making the design visually cluttered. Show realistic glass-like refraction in the shell, fine directional grain in the aluminum, and gentle compression in the leather cushions.
Qwen Image 2.1 是阿里巴巴的图片生成与编辑模型。阿里巴巴介绍称,它采用紧凑的模型设计,并改进了人物、产品和字体排版的呈现。
在 UniRoute 上,文生图版本接受文字提示词,以及将分辨率与宽高比组合在一起的尺寸选项。工作区和表格列出了每次请求可用的规格。
Qwen Image 2.1 是同一系列中 Qwen Image 2.0 的后续版本。阿里巴巴的介绍强调高效的图片创作,以及更细致的人物、产品和文字呈现;下方也链接了 Qwen Image 3.0 供比较。
目前通过 UniRoute 使用 Qwen Image 2.1 可以做什么。
描述主体、构图以及需要在图中呈现的文字,选择可用尺寸,查看报价后生成图片。

Qwen Image 2.1 的其他模式与控制项(参考图编辑、蒙版和透明背景输出)暂未在 UniRoute 开放。
可调用的版本,以及各自的选项和价格。
| 版本 | 模型 ID | 模式 | 输入 | 输出 | 价格 |
|---|---|---|---|---|---|
| Qwen Image 2.1 | qwen2-1/text-to-image | 文生图 | 文字提示词和尺寸选项 | 分辨率:1K、2K;宽高比:1:1、16:9、9:16 | $0.03 至 $0.05 / 次请求 |
按请求计价,所选规格决定价格。
| Qwen Image 2.1 | |
|---|---|
| 1K · 1:1 | $0.03 |
| 1K · 16:9 | $0.03 |
| 1K · 9:16 | $0.03 |
| 2K · 1:1 | $0.05 |
| 2K · 16:9 | $0.05 |
| 2K · 9:16 | $0.05 |
金额四舍五入到分;工作区中的实时报价显示精确金额。价格更新于 2026-11-25。
按用量计费,统一使用一个美元钱包余额。每次请求前都会先看到报价。
用媒体 API 在你自己的代码里调用 Qwen Image 2.1。
# 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='qwen2-1/text-to-image'OPTION='1K: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 | 请求体 | 该模型提供的规格之一:1K:1:1, 1K:16:9, 1K:9:16, 2K:1:1, 2K:16:9, 2K:9:16。 |
prompt | 请求体 | 描述要生成内容的文字提示词。 |
max_cost_usd | 请求体 | 本次任务的最高费用(美元),取自报价。 |
Idempotency-Key | 请求头 | 每个任务唯一的键;重复请求会返回原任务,不会重复扣费。 |
Qwen Image 2.1 的常见用法。
描述产品材质、光照和周围环境,根据文字起草新的产品场景。
指定文案、信息层级和版式,起草含文字的配图或推广海报。
通过详细的文字需求,探索人物、服装、场景和插画风格。
关于 Qwen Image 2.1 的常见问题。
Qwen Image 2.1 是阿里巴巴的图片生成与编辑模型。阿里巴巴介绍称,它采用紧凑的模型设计,并改进了人物、产品和字体排版的呈现。
可以在工作区选择分辨率与宽高比组合。当前目录未为这一版本开放独立的透明背景、蒙版、种子值或参考图设置。
$0.03 起 / 张。每次请求按所选版本和规格报价。完整价格表见“价格”一节(价格更新于 2026-11-25)。
本页列出的版本均根据文字提示词生成新图片,工作区只展示当前目录开放的规格。
使用媒体 API:先对所选模型和规格请求报价,再带上 Idempotency-Key 和最高费用创建任务,然后轮询任务直到结果就绪。“API”一节给出了完整示例和参数说明。
没有。生成费用从你的钱包余额中扣除。你可以直接打开工作区查看价格,注册账号后可看到针对当前设置的实时报价,只有被接受的请求才会计费。