jobs_wait any on 20 Wan 3.0 clips: the other 19 still bill $5.94
With wait_for any, jobs_wait returns when one of 20 Wan 3.0 480p 5-second clips ends, but the other 19 keep running and billing: $5.9375 of $6.25.

If an agent submits 20 Wan 3.0 clips of 5 seconds at 480p and then calls jobs_wait with wait_for: "any", the call can return when the first clip ends, while the other 19 keep running and billing: $5.9375 of the $6.25 batch. The docs say it plainly: the remaining jobs continue and still bill.
What the batch costs
Wan 3.0 480p is $0.0625 per second, so one 5-second clip is $0.3125. jobs_wait takes 1 to 20 job_ids.
| Item | Rate per second | Count | Total |
|---|---|---|---|
| One 5 s clip | $0.0625 | 1 | $0.3125 |
| All clips submitted | $0.0625 | 20 | $6.25 |
| Still running after the first ends | $0.0625 | 19 | $5.9375 |
The wait call
Use wait_for: "all" (the default) when you need every clip, and any only when you will use the first result and cancel the rest. A cancel works only before generation starts.
{
"job_ids": ["job_a", "job_b", "job_c"],
"wait_for": "all",
"timeout_seconds": 50,
"include_results": true
}Limits and gotchas
A single call holds at most 55 seconds (default 50). On wait_slice_expired, repeat the call with the same ids and never resubmit the paid create.
jobs_cancelneeds the Write scope and anidempotency_key.- A 524, 522, 523 or 525 on the wait is a transport failure, not a job outcome.
- One unknown or foreign-workspace id fails the whole call.
Sources
Related posts
More in Developers
- Kling Motion Control: a 30 s job reserves $4.73, refunded on failure
Sume reserves ceil(seconds) x $0.1575 for Kling 3.0 Motion Control: $4.725 for 30 s, shown as 473 cents. Failed or pre-generation canceled jobs are refunded.
- Korean ad with an English brand name: set Sume TTS language to ko
Send a Korean script with language set to ko; the default is English. A brand name in Latin letters is read by the chosen language, so listen and fix it.
- Korean voiceover: 1,200 Hangul characters cost 5.7 cents, so use NFC
Sume TTS bills $0.0475 per 1,000 transcript characters, so 1,200 Hangul characters cost 5.7 cents. Decomposed text can count two or three times more.
- Lint a video against TikTok, Reels, Feed and Shorts limits in Python
A 24-line Python check for duration, file size and average bitrate against the limits TikTok, Meta and YouTube publish, plus where Sume jobs fit before it.
Written by Sume