Seedance 2.5 Video Edit & Extend API in Python (2026): omni_reference_task_type, Wan 3.0 & Live Pricing
If you are building automated video pipelines in late 2026, text-to-video is only half the story. Most production teams actually spend their budget on video-to-video editing (changing wardrobe, lighting, or scenery witho
If you are building automated video pipelines in late 2026, text-to-video is only half the story. Most production teams actually spend their budget on video-to-video editing (changing wardrobe, lighting, or scenery without breaking camera motion) and video extension (continuing an existing shot forward from its final frame).
In this guide, we walk through production-tested Python and cURL code for ByteDance Seedance 2.5 Video Edit & Extend (omni_reference_task_type), 480p-to-4K Draft Mode, and Alibaba Wan 3.0 prompt-driven editing via VideoToken โ along with live December 2026 discounted USD pricing (45%โ55% OFF international official list rates).
MIT runnable scripts: github.com/luow-y/videotoken-api-examples (
python/seedance_edit_extend.py,python/seedance_draft_to_4k.py,python/fetch_live_pricing.py)
1. Live Dec 2026 Discounted Pricing Comparison (USD)
VideoToken (video-token.cc) publishes real-time pay-as-you-go USD rates with zero monthly subscription, instant self-serve API keys, and 100% automatic refunds on failed jobs (auditable anytime without auth at GET https://video-token.cc/api/pricing).
ByteDance Seedance 2.5 & 2.5 Flash (Standard & Video Edit/Extend Tiers)
| Model / Tier | Discount vs Official | 480p / sec | 720p / sec | 1080p / sec | 4K / sec | Delivery & Key Features |
|---|---|---|---|---|---|---|
seedance-2-5 (Standard) |
50% OFF | $0.0538 | $0.1156 | $0.2843 | $0.4569 | Cloudflare R2 CDN ยท 480pโ1080p/4K Draft Mode |
seedance-2-5 (Edit / Extend / Ref Video) |
50% OFF | $0.0643 | $0.1383 | $0.3402 | $0.5638 | Cloudflare R2 CDN ยท omni_reference_task_type
|
seedance-2-5-flash (Std / Ref Video) |
50% OFF | $0.0352 / $0.0432 | $0.0756 / $0.0929 | โ | โ | Cloudflare R2 CDN ยท Fast 2.5 Edit/Extend |
doubao-seedance-2-5-260628 (Ark v3) |
28% OFF | $7.704 / $4.608 per 1M | $7.704 / $4.608 per 1M | $8.424 / $5.04 per 1M | $3.384 / $2.088 per 1M | Drop-in Ark v3 ยท duration: -1 ยท ratio: "adaptive" ยท POST /v1/assets
|
| BytePlus Official (reference) | List | $0.1075 | $0.2311 | $0.5686 | $0.9137 | Enterprise onboarding |
| fal.ai (reference) | โ | โ | ~$0.30โ$0.47 | โ | โ | General marketplace |
Alibaba Wan 3.0 (wan3.0-video 55% OFF & wan3.0-video-prime 45% OFF)
| Provider / Model | Discount vs Official | 480p / sec | 720p / sec | 1080p / sec | 5s 720p Clip | Delivery & Capabilities |
|---|---|---|---|---|---|---|
wan3.0-video |
55% OFF | $0.0225 | $0.045 | $0.09 | $0.23 | Cloudflare R2 CDN ยท 2โ30s or -1 auto ยท prompt-driven edit/extend |
wan3.0-video-prime |
45% OFF | $0.0374 | $0.077 | $0.154 | $0.39 | Cloudflare R2 CDN ยท priority Prime lane |
| Alibaba Cloud Intl (list) | List | $0.05 | $0.10 | $0.20 | $0.50 | Direct international cloud account |
Full interactive calculator: Seedance 2.5 API Pricing Comparison ยท Wan 3.0 API Pricing Comparison
2. Seedance 2.5 Video Editing (omni_reference_task_type: "edit")
Pass your source clip with role: "reference_video", set "omni_reference_task_type": "edit", and reference @่ง้ข1 in the prompt:
curl -X POST 'https://video-token.cc/v1/videos/generations' \
-H "Authorization: Bearer $VIDEOTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance-2-5",
"resolution": "720p",
"ratio": "9:16",
"duration": 5,
"generate_audio": true,
"omni_reference_task_type": "edit",
"content": [
{
"type": "text",
"text": "Edit @่ง้ข1: change the jacket to a deep crimson wool coat and shift lighting to warm golden-hour sunset while keeping face, motion and camera framing unchanged"
},
{
"type": "video_url",
"role": "reference_video",
"video_url": {"url": "https://cdn.example.com/source.mp4"}
}
]
}'
Poll GET https://video-token.cc/v1/tasks/{task_id} until status == "succeeded". VideoToken automatically mirrors the finished MP4 to Cloudflare R2 CDN (media.video-token.cc) so video_url does not hit 72-hour upstream OSS expiration.
Need automatic source-length matching? Send the same payload to
POST https://video-token.cc/api/v3/contents/generations/taskswith"model": "doubao-seedance-2-5-260628","duration": -1, and"ratio": "adaptive".
3. Seedance 2.5 Video Extension (omni_reference_task_type: "extend")
To extend an existing shot forward from its final frame in Python:
import os, time, uuid, requests
API_KEY = os.environ["VIDEOTOKEN_API_KEY"]
BASE = "https://video-token.cc"
payload = {
"model": "seedance-2-5",
"resolution": "720p",
"ratio": "9:16",
"duration": 4,
"generate_audio": True,
"omni_reference_task_type": "extend",
"content": [
{
"type": "text",
"text": "Extend @่ง้ข1 forward: continue smoothly from its last frame as the camera slowly pulls back to reveal the sunlit street, natural continuous motion and ambient sound",
},
{
"type": "video_url",
"role": "reference_video",
"video_url": {"url": "https://cdn.example.com/source.mp4"},
},
],
}
res = requests.post(
f"{BASE}/v1/videos/generations",
json=payload,
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
"Idempotency-Key": str(uuid.uuid4()),
},
timeout=30,
)
res.raise_for_status()
task_id = res.json()["task_id"]
while True:
poll = requests.get(f"{BASE}/v1/tasks/{task_id}", headers={"Authorization": f"Bearer {API_KEY}"}, timeout=20).json()
if poll["status"] == "succeeded":
print("Extended R2 CDN MP4:", poll["video_url"])
break
if poll["status"] == "failed":
raise RuntimeError(f"Failed (100% auto-refunded): {poll.get('error')}")
time.sleep(5)
4. Four Production Gotchas That Save Real Debugging Hours
-
No inline Base64 on Recommended Seedance (
HTTP 400 base64_media_unsupported):seedance-2-5*andseedance-2-0*require direct, publicly reachablehttp://orhttps://media URLs (no User-Agent walls or 302 redirects). Passingdata:...;base64,...fails synchronously with HTTP 400 at zero cost. -
Alibaba Wan 3.0 needs no
omni_reference_task_type: Passreference_videoininput.media(DashScope native) ormedia[](POST /v1/videos) and write the edit/extension instruction in your prompt. Keepinput_video_duration + output_video_duration <= 30s. -
Stack 480p Draft Mode for 4K masters: On
seedance-2-5, iterate at 480p ("draft": true,$0.0538/s) for text orfirst_frameshots, then promote only the winningdraft_taskto1080por4k(or720p/1080p/4kon Official Arkdoubao-seedance-2-5-260628). -
Always send
Idempotency-Key: Retrying timed-out submissions with the same UUID prevents double-billing, and any failed render automatically releases 100% of reserved balance.
Explore full interactive API docs at video-token.cc/docs, test prompts in VideoToken Online Studio, or grab the MIT Python/Node/cURL scripts on GitHub.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.