Workflow DevKit 5: 12 MiB frames, pass Sume URLs not video
Workflow DevKit 5.0.1 splits WebSocket frames over 12 MiB by default (16 MiB at most). Pass Sume artifact URLs between steps instead of video bytes.

Workflow Development Kit v5.0.1, released Oct 1, 2026, limits each WebSocket message: a frame over WORKFLOW_WS_MAX_MESSAGE_BYTES (default 12 MiB, at most 16 MiB) is sent as several messages and rebuilt by the receiver, per the release notes. A generated video can exceed that, so pass the Sume artifact URL between workflow steps and let the step that needs the file download it.
Why URLs instead of bytes
The release notes say oversized frames are split and rebuilt, so large values are not rejected, but every extra chunk is more transport work. A URL is a few hundred bytes. The video stays on media.sume.com and any step with network access can fetch it when needed.
What a Sume result contains
A completed Sume job returns artifacts, and the webhook payload carries the same fields. Each artifact has an id, a url on media.sume.com, a type and a content_type. Store the artifact url and the job id and treat them as the unit you pass between steps.
| Field | Example | Pass it? |
|---|---|---|
job_id | job_... | Yes, the idempotency key on your side |
artifacts[].url | https://media.sume.com/artifacts/... | Yes |
artifacts[].content_type | video/mp4 | Yes, if a step branches on type |
| Video bytes | n/a | No |
Webhook delivery and retries
Use the job id as your idempotency key in the receiving step. Sume's docs say the job webhook retries up to 10 attempts, so the same event can arrive more than once. Return success after durably storing the event.
Copy what you must keep
Keep the file for as long as you need it: the docs describe the artifacts as Sume-hosted URLs and state no retention period, so copy the file to your own storage when you must keep it.
- Pass
artifacts[].url, not file contents - Use
job_idto dedupe repeated events - Download in the step that needs the file
- Copy to your own storage for long retention
Sources
Related posts
More in Developers
- Workflow DevKit replays: a stable Idempotency-Key for Sume submits
Workflow DevKit 4.8.12 fixed replay clock tracking. A replayed step must send the same Sume Idempotency-Key, so derive it from the run id, not Date.now.
- Which MCP server lets Claude Code or Cursor generate video and images?
MCP servers that let Claude Code and Cursor make video and images: Sume, fal, Replicate, Runway, Higgsfield. Endpoints, sign-in, billing, setup.
- Idempotency keys for AI video APIs: retry without paying twice
An idempotency key makes a retried create return the original run or job instead of a second paid one. How Sume's Idempotency-Key works on each API.
- Signed webhooks for Sume video runs: events, retries, verification
Sume sends one HMAC-SHA256 signed POST when a Format, Action, or Agent Completion run completes or fails. Verify the raw body and dedupe on request_id.
Written by Sume