Flex Async
Flex Async lowers compute pricing by 30% when delivery timing is flexible. You set priority: "flex" on an image.*, audio.*, or video.* job, and Splixir coalesces jobs in the async queue and notifies your webhook endpoint when verification finishes.
Compare standard and flex pricing
Section titled “Compare standard and flex pricing”| Media and tier | Standard | Flex (priority: "flex") |
|---|---|---|
Image (image.*) |
$0.002 / image | $0.0014 / image |
Audio (audio.*) |
$0.002 / min | $0.0014 / min |
Video (stream copy, video.*) |
$0.002 / min | $0.0014 / min |
Video 1080p transcode (video.*) |
$0.0141 / min (2.07 MP) | $0.0099 / min |
Video 4K transcode (video.*) |
$0.0266 / min (8.29 MP) | $0.0186 / min |
Video 8K transcode (video.*) |
$0.0764 / min (33.18 MP) | $0.0535 / min |
| Standalone thumbnail | $0.005 flat | $0.0035 flat |
Scale and Studio plans include lower per-job floors ($0.005 for video transcoding and $0.001 for audio and stream-copy video).
Submit a Flex Async job
Section titled “Submit a Flex Async job”Include priority: "flex", an Idempotency-Key header, and a callbackUrl (or configure a webhook endpoint in Console webhooks).
curl -X POST https://api.splixir.com/v1/jobs \ -H "Authorization: Bearer $SPLIXIR_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: render-2026-01-01-001" \ -d '{ "input": "https://cdn.example.com/input.mp4", "operations": [ { "type": "video.resize", "resolution": "1080p" }, { "type": "video.transcode", "codec": "h264", "container": "mp4" } ], "output": { "format": "mp4" }, "priority": "flex", "callbackUrl": "https://example.com/hooks/splixir" }'const response = await fetch("https://api.splixir.com/v1/jobs", { method: "POST", headers: { Authorization: `Bearer ${process.env.SPLIXIR_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": "render-2026-01-01-001", }, body: JSON.stringify({ input: "https://cdn.example.com/input.mp4", operations: [ { type: "video.resize", resolution: "1080p" }, { type: "video.transcode", codec: "h264", container: "mp4" }, ], output: { format: "mp4" }, priority: "flex", callbackUrl: "https://example.com/hooks/splixir", }),});const job = await response.json();console.log(job.id, job.state);import osimport requests
response = requests.post( "https://api.splixir.com/v1/jobs", headers={ "Authorization": f"Bearer {os.environ['SPLIXIR_API_KEY']}", "Idempotency-Key": "render-2026-01-01-001", }, json={ "input": "https://cdn.example.com/input.mp4", "operations": [ {"type": "video.resize", "resolution": "1080p"}, {"type": "video.transcode", "codec": "h264", "container": "mp4"}, ], "output": {"format": "mp4"}, "priority": "flex", "callbackUrl": "https://example.com/hooks/splixir", },)print(response.json()["id"])npx splixir video ./input.mp4 --resolution 1080p --codec h264 --flexThe API responds with HTTP 202 and state: "queued". When verification finishes, Splixir sends job.delivered, job.partial, job.failed, or job.rejected to your webhook endpoint.
For webhook signature verification, see Webhooks. For full video options, see the Video reference.