Loading model…正在加载模型详情…
Loading model…正在加载模型详情…
用阿里巴巴的 Wan 2.5 把文字场景变成视频,探索画面与声音共同构成的短片创作。
A dimly lit jazz bar at night, wooden tables glowing under warm pendant lights. Patrons sip drinks and chat quietly while a three-piece band performs on stage. The saxophone player stands under a spotlight, gleaming instrument reflecting the light. No dialogue. Ambient audio: smooth live jazz music with saxophone and piano, clinking glasses, low murmur of audience conversations, occasional burst of laughter from a nearby table. Camera: slow pan across the crowd, then gentle zoom toward the saxophone player’s solo, focusing on expressive hand movements.
The white dragon warrior stands still, eyes full of determination and strength. The camera slowly moves closer or circles around the warrior, highlighting the powerful presence and heroic spirit of the character.
Wan 2.5 是阿里巴巴的视频生成模型。阿里巴巴在介绍中强调电影式场景,以及画面与对白、环境音、音乐的原生同步。
UniRoute 提供文生视频版本,接受文字提示词和分辨率与时长组合选项。你可以在网页里构思场景,也可以通过媒体 API 从应用提交生成请求。
Wan 2.5 是 Wan 视频系列中 Wan 2.2 的后续版本。阿里巴巴介绍把音画原生同步作为重点,在描述画面的同时安排对白、氛围与音乐。
目前通过 UniRoute 使用 Wan 2.5 可以做什么。
描述场景、动作与运镜,再选择输出分辨率和时长。任务在提交前按整段视频报价。
Wan 2.5 的其他模式(图生视频及其他控制项)暂未在 UniRoute 开放,目前仅提供文生视频版本的文字提示词和输出规格。
可调用的版本,以及各自的选项和价格。
| 版本 | 模型 ID | 模式 | 输入 | 输出 | 价格 |
|---|---|---|---|---|---|
| Wan 2.5 文生视频 | wan/2-5-text-to-video | 文生视频 | 文字提示词和尺寸选项 | 分辨率:720p、1080p;时长:5s、10s | $0.38 至 $1.25 / 次请求 |
按请求计价,所选规格决定价格。
| 规格 | 官方 API | UniRoute | 节省 |
|---|---|---|---|
| 720p · 5s | $0.50 | $0.375 | 省 25% |
| 720p · 10s | $1.00 | $0.75 | 省 25% |
| 1080p · 5s | $0.75 | $0.625 | 省 17% |
| 1080p · 10s | $1.50 | $1.25 | 省 17% |
官方价格:www.alibabacloud.com
价格更新于 2026-11-08。
按用量计费,统一使用一个美元钱包余额。每次请求前都会先看到报价。
用媒体 API 在你自己的代码里调用 Wan 2.5。
# 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='wan/2-5-text-to-video'OPTION='720p:5'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 | 请求体 | 该模型提供的规格之一:720p:5, 720p:10, 1080p:5, 1080p:10。 |
prompt | 请求体 | 描述要生成内容的文字提示词。 |
max_cost_usd | 请求体 | 本次任务的最高费用(美元),取自报价。 |
Idempotency-Key | 请求头 | 每个任务唯一的键;重复请求会返回原任务,不会重复扣费。 |
Wan 2.5 的常见用法。
描述一个场景及其中的动作,探索适合社交发布或编辑内容的短视频。
根据活动需求尝试产品场景、光线和运镜,为制作方案提供参考。
用文字预览人物动作或故事片段,通过修改提示词逐步完善场景。
关于 Wan 2.5 的常见问题。
Wan 2.5 是阿里巴巴的视频生成模型。UniRoute 目前提供文生视频版本,可在网页使用,也可通过媒体 API 调用。
目前不可以。本页尚不能调用图生视频版本,可用的文生视频版本接受文字提示词和输出规格。
UniRoute 当前可调用目录尚未为这个版本开放这些输入,可用控制项为文字提示词和分辨率与时长组合。
$0.38 起 / 条。每次请求按所选规格对整段视频计费,全部选项与费用见“价格”一节(价格更新于 2026-11-08)。
使用媒体 API 为所选模型和规格获取报价,再带上 Idempotency-Key 与最高费用创建任务,随后轮询状态直到视频就绪。本页“API”一节提供了完整请求示例。
没有。生成费用从你的钱包余额中扣除。你可以直接打开工作区查看价格,注册账号后可看到针对当前设置的实时报价,只有被接受的请求才会计费。