字节跳动 Seedance 2.0 火山 Ark 官方直连版。文生 / 图生 / 多模态参考,按官方 token 用量结算。真人素材可直接传(被审核拒时系统自动注册素材库重试);要跨任务复用固定人物,先注册到素材库(account: "official")拿 asset:// 引用。
| 字段 | 必填 | 类型 | 说明 |
|---|---|---|---|
| 模型 | API name | 分辨率 | 计费(每秒) |
| Seedance 2.0 Official | seedance-2.0-official | 480p / 720p / 1080p | $0.092 / $0.197 / $0.492 |
| Seedance 2.0 Fast Official | seedance-2.0-fast-official | 480p / 720p | $0.071 / $0.153 |
| Seedance 2.0 Mini Official | seedance-2.0-mini-official | 480p / 720p | $0.044 / $0.095 |
上表为每秒约值(上游按生成 token 结算,实际扣费以完成的 token 为准)。计费秒数 4-15s,仅成功扣费。
别名:seedance-2.0 / seedance-2.0-fast / seedance-2.0-max / seedance-2.0-max-fast 都指向本官方通道(原晨语渠道已下线迁移至此,标准=seedance-2.0-official,极速=seedance-2.0-fast-official)。真人一律走下方 asset://(account:"official")。
/api/v1/video/generations# Text-to-video (model: seedance-2.0-official / -fast-official / -mini-official)
curl -X POST https://api.apimodels.app/v1/video/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.0-fast-official",
"prompt": "a hummingbird hovering near a bright flower, slow motion",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5
}'
# Real-person: register the face in the asset library first (see below), then
# reference it. Raw real faces also work — an upstream moderation rejection
# triggers an automatic asset-library retry; asset:// skips that and is reusable:
# "reference_image_urls": ["asset://asset-2026...-xxxx"]
# Image-to-video: "first_frame_url" (+ "last_frame_url"); web search: "web_search": true写实真人脸直接当参考图可能触发内容审核——此时系统会自动把素材注册进素材库并重试,你无感知。要复用固定人物(顺便省掉这步),先把人像上传到素材库拿 asset:// 引用,再作为 reference_image_urls 传入。分组创建时必须带 account: "official"(与官方生成同账号/项目),素材才解析得到;上传成功每条计 $0.01。
# 1) Create a group ON THE OFFICIAL account (account: "official")
curl -X POST https://api.apimodels.app/v1/assets/groups \
-H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"name": "my-people", "account": "official"}'
# → { "data": { "id": 1, "account": "official", ... } }
# 2) Register a face from a public URL. The call WAITS until the asset is confirmed
# usable (~3s), so the returned id is ready to use right away. Charged $0.01 ONLY
# on success — if the image can't be fetched or fails moderation you get HTTP 422
# and are NOT charged.
curl -X POST https://api.apimodels.app/v1/assets \
-H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"url": "https://example.com/face.jpg", "asset_type": "Image", "group_id": 1}'
# → { "data": { "id": "asset-2026...-xxxx", "asset_url": "asset://asset-2026...-xxxx", "status": "Active" } }
# (on failure: HTTP 422, not charged)
# 3) Use asset_url directly in generation (reference_image_urls) — no polling needed.
# Optional status re-check:
# curl -X POST https://api.apimodels.app/v1/assets/get -H "Authorization: Bearer YOUR_API_KEY" \
# -H "Content-Type: application/json" -d '{"id": "asset-2026...-xxxx"}'| 字段 | 必填 | 类型 | 说明 |
|---|---|---|---|
| 端点 | 说明 | ||
| POST /v1/assets/groups | 建分组,传 account:"official" → 官方账号/apimodel | ||
| POST /v1/assets | 从 URL 注册人像 → asset://($0.01),继承分组账号 | ||
| POST /v1/assets/get | 查询单个素材(轮询到 Active) | ||
| POST /v1/assets/delete | 删除素材 |
试一试:Playground
先把人像注册到素材库(account "official")拿到 asset://,再作为 reference_image_urls 传。原始真人脸会被审核拒,asset:// 可过审。