关于上传个人照片 / 参考图的说明:UniRoute 当前目录中的图像模型仅接受纯文本输入,不支持上传参考照片。如果你在支持上传参考图的其他工具中使用这些提示词,可以尝试在提示词中添加以下可选语句(我们未实测该句效果):Use the person in the attached photo and keep their face unchanged。请仅使用你本人或已明确同意之人的照片。
Editorial close-up portrait of an adult woman wearing a wide-brimmed black velvet witch hat, dark plum cloak, and subtle silver crescent jewelry, standing beside carved glowing jack-o'-lanterns on a mossy stone porch at dusk. Warm flickering candlelight balances against cool twilight mist in the background. Shot on a full-frame camera with an 85mm f/1.8 lens, shallow depth of field, crisp skin texture, rich autumn color grading, photorealistic studio quality, no text, no watermark, no signage.
Natural lifestyle portrait of an adult woman in a burnt-orange knit sweater, plaid wool scarf, and dark felt fedora, crouching among heirloom orange and white pumpkins in a rustic autumn pumpkin patch. Golden-hour sunset backlight filters through amber oak leaves with soft rim light on her hair. Captured on a 50mm f/1.4 prime lens, creamy bokeh, warm autumnal film tones, inviting seasonal atmosphere, photorealistic editorial photography, no text, no watermark, no signage.
Dramatic medium portrait of an adult man dressed in a tailored charcoal Victorian frock coat, brocade vest, and antique brass pocket watch chain, standing on a carved wooden staircase inside an old candlelit manor house. Moody chiaroscuro lighting from brass wall sconces casts long shadows across weathered wallpaper and drifting dust motes. Shot on a 35mm f/1.8 lens, cinematic Gothic romance mood, fine fabric detail, photorealistic portrait photography, no text, no watermark, no signage.
Candid vintage-style photograph of two adult friends laughing at a 1950s living-room Halloween party, wearing classic mid-century masquerade masks, polka-dot swing dress, and tweed suit with paper streamers and carved pumpkins on a wooden sideboard. Warm tungsten table lamps mixed with gentle vintage camera flash create nostalgic mid-century color contrast. Shot on a 35mm lens, subtle film grain, joyful retro party atmosphere, photorealistic editorial photography, no text, no watermark, no signage.
High-fashion Gothic portrait of an adult man wearing a deep crimson velvet collar cape, black silk cravat, and silver signet ring, posed in a vaulted stone hall lined with tall beeswax candelabras. Cool blue moonlight streams through a lancet window while warm candlelight sculpts dramatic cheekbones and dark eyes. Captured with an 85mm f/1.4 portrait lens, shallow depth of field, elegant nocturnal mood, photorealistic magazine editorial style, no text, no watermark, no signage.
Beauty studio portrait of an adult woman wearing intricate monochrome couture skeleton face paint with metallic silver eyeliner, black lace high-neck gown, and dark floral crown against a charcoal backdrop. Controlled softbox key light and crisp rim lighting highlight fine brushstroke pigment texture and shimmering eye makeup. Shot on a 100mm f/2.8 macro portrait lens, tack-sharp focus, luxury fashion magazine aesthetic, refined glamorous Halloween mood, photorealistic photography, no text, no watermark, no signage.
Warm lifestyle photograph of two adult friends in oversized autumn knit sweaters and witch headband accessories sitting on a plush window seat with ceramic mugs of spiced cider, surrounded by mini white pumpkins and fairy string lights. Soft amber lamp glow contrasts against rainy blue evening glass outside. Shot on a 35mm f/1.4 lens, shallow depth of field, cozy hygge autumn atmosphere, natural candid expressions, photorealistic indoor photography, no text, no watermark, no signage.
Cinematic environmental portrait of an adult traveler wearing a hooded dark wool cloak and leather satchel, holding a glowing vintage brass lantern along a leaf-strewn forest trail wrapped in low evening fog. Golden lantern light illuminates swirling mist and mossy tree trunks against deep teal twilight shadows. Shot on a 50mm f/1.4 lens, volumetric light rays, atmospheric autumn mystery mood, rich dynamic range, photorealistic cinematic still photography, no text, no watermark, no signage.
本页样张通过 UniRoute 媒体图像 API(/docs/media-image) 生成。按照 媒体 API 快速开始(/docs/media-quickstart) 的做法,将 API Key 保存在仅自己可读的文件(如 ~/.config/uniroute/api-key)中并通过临时请求头文件 -H @"$AUTH_HEADER" 传入,避免把原始密钥直接写在命令行参数里:先调用 POST /v1/media/quote 查询目标 model 与 option 的单价,再将 <unique-id> 替换为每次请求唯一的值后携带 Idempotency-Key 请求头和顶层 prompt、max_cost_usd 字段调用 POST /v1/media/tasks(返回 HTTP 202),最后轮询 GET /v1/media/tasks/{task_id} 直至 status 为 "success" 且 billing.state 为 "charged" 后从 urls[].url 下载图片(下载请求切勿附带 API Key):
POST /v1/media/quote → POST /v1/media/tasks → GET /v1/media/tasks/{task_id}
umask 077
KEY_FILE="$HOME/.config/uniroute/api-key"
AUTH_HEADER="$(mktemp)"
BODY="$(mktemp)"
printf 'Authorization: Bearer %s\n' "$(cat "$KEY_FILE")" > "$AUTH_HEADER"
trap 'rm -f "$AUTH_HEADER" "$BODY"' EXIT
# 1) Quote the exact price for model + option
curl -sS -X POST https://api.uniroute.app/v1/media/quote \
-H @"$AUTH_HEADER" \
-H "Content-Type: application/json" \
-d '{"model":"nano-banana-2","option":"1K:1:1"}'
# 2) Write the task JSON body with a quoted heredoc (safe for any prompt text with single quotes)
cat > "$BODY" <<'JSON'
{
"media_type": "image",
"model": "nano-banana-2",
"option": "1K:1:1",
"prompt": "Editorial close-up portrait of an adult woman wearing a wide-brimmed black velvet witch hat, dark plum cloak, and subtle silver crescent jewelry, standing beside carved glowing jack-o'-lanterns on a mossy stone porch at dusk. Warm flickering candlelight balances against cool twilight mist in the background. Shot on a full-frame camera with an 85mm f/1.8 lens, shallow depth of field, crisp skin texture, rich autumn color grading, photorealistic studio quality, no text, no watermark, no signage.",
"max_cost_usd": "0.05"
}
JSON
# 3) Submit the image task (returns HTTP 202 with data.task_id)
# Replace <unique-id> with a fresh unique string per request (e.g. from python3 -c "import uuid; print(uuid.uuid4())")
curl -sS -X POST https://api.uniroute.app/v1/media/tasks \
-H @"$AUTH_HEADER" \
-H "Idempotency-Key: <unique-id>" \
-H "Content-Type: application/json" \
--data @"$BODY"
# 4) Poll until data.status == "success" and data.billing.state == "charged",
# then download from data.urls[].url (do not send Authorization to the download URL)
TASK_ID="<task_id from step 3>"
curl -sS https://api.uniroute.app/v1/media/tasks/"$TASK_ID" \
-H @"$AUTH_HEADER"
目前在 UniRoute 上尚不支持——当前目录中的图像模型仅接受纯文本输入,不支持上传参考照片。如果你在支持上传参考图的其他工具中使用,可以尝试在提示词中加入 "Use the person in the attached photo and keep their face unchanged"(我们未实测该句效果)。请仅使用你本人或已同意之人的照片。