Pricing, Quotas & Error Codes
Transparent per-second usage pricing with zero monthly subscriptions, automatic volume discounts past 2,000 source minutes per UTC month, a $0 free first video up to 60 minutes, and $0 billing on failed jobs.
Exact Per-Second Billing Formula
A succeeded job bills the higher of its source duration ($0.03 or $0.02/min) or its delivered clip floor ($0.03/min standard, $0.08/min heavy sources), multiplied by 1.5x for quality high.
| Billing Component | Rate | Exact Trigger & Notes |
|---|---|---|
| Standard source rate | $0.03 / source min | First 2,000 billed source minutes in a UTC calendar month, billed per second |
| Volume source rate | $0.02 / source min | Automatically applies past 2,000 billed source minutes in a UTC calendar month |
| Volume delivered-clip floor | $0.03 / delivered clip min | Applies when total rendered clip duration at $0.03/min exceeds source-minute charge (pricing.reason: "volume_floor") |
| Heavy source floor | $0.08 / delivered clip min | Sources >1080p, >60fps, >55 Mb/s H.264, or >20 Mb/s other codecs (above_1080p, above_60fps, high_bitrate); HDR alone never triggers heavy pricing |
| High quality multiplier | 1.5x | Applied when quality: "high" is requested (pricing.quality_multiplier: 1.5) |
| Free first video | $0.00 | Account's first clips job up to 60 minutes bills $0 (pricing.basis: "free_video") |
| Failed jobs & renders | $0.00 | Failed jobs and individual clips that fail to render are never charged |
Every succeeded job response returns exact usage (source_minutes, clips, output_seconds) and pricing (basis, reason, quality_multiplier) fields so you can audit per-tenant COGS programmatically. Check interactive pricing estimates at clipsdk.com/pricing.
Worked Billing Math Examples
Compare how source-minute pricing, the $0.03 volume clip floor, the $0.08 heavy-source floor, and 1.5x high quality combine across real production workloads.
| Scenario | Source Charge | Clip Floor | Final Bill (`pricing.basis`) |
|---|---|---|---|
| 60-min 1080p podcast -> 5 clips (4m total), standard tier | 60 x $0.03 = $1.80 | 4 x $0.03 = $0.12 | $1.80 (source_minutes) |
| 60-min 1080p podcast -> 10 clips (8m total), >2,000m/mo tier | 60 x $0.02 = $1.20 | 8 x $0.03 = $0.24 | $1.20 (source_minutes) |
| 5-min 1080p video -> 10 overlapping clips (8m total) | 5 x $0.03 = $0.15 | 8 x $0.03 = $0.24 | $0.24 (clip_minutes, volume_floor) |
| 20-min 4K 30fps video -> 5 clips (4m total), heavy source | 20 x $0.03 = $0.60 | 4 x $0.08 = $0.32 | $0.60 (source_minutes) |
| 10-min 4K 60fps video -> 6 clips (5m total), heavy source | 10 x $0.03 = $0.30 | 5 x $0.08 = $0.40 | $0.40 (clip_minutes, above_1080p) |
30-min 1080p video -> 5 clips (4m total) with quality: "high" | 30 x $0.03 = $0.90 | 4 x $0.03 = $0.12 | $1.35 ($0.90 x 1.5) |
| 45-min first video on a brand-new account | $0.00 | $0.00 | $0.00 (free_video) |
Account Quotas, File Limits & Retention
ClipSDK enforces 3 concurrent running jobs, 200 jobs per UTC day, and 20 GB of direct uploads per UTC day shared across all API keys on an account.
| Resource | Limit | Notes |
|---|---|---|
| Concurrent running jobs | 3 per account | Shared across all account API keys; exceeding returns 429 RATE_LIMITED + Retry-After |
| Daily jobs | 200 per UTC day | Applies across all keys on the account |
| Daily direct uploads | 20 GB per UTC day | For POST /v1/uploads; max 5 GB (5,000,000,000 bytes) per single file |
| Source duration & clip window | Up to 48h source, first 3h clipped | Use first_seconds (60-10800) to scope and bill a shorter prefix |
| Clips per job | 1-20 (1-50 paid accounts) | Default 5; 402 PAYMENT_REQUIRED if free account requests >20 |
| Clip duration | 10-90s (10-180s paid accounts) | max_seconds must be at least min_seconds + 5 |
| Post-render clip edits | 20 / clip, 100 / UTC day (paid) | Available until 1 hour before files expire (410 CLIP_EXPIRED) |
| File retention | 7 days | Rendered MP4/JPG/SRT/VTT and uploads at /f/{key}; delete earlier via DELETE /v1/jobs/{id} |
| Failure circuit protection | 30 counted failures/hr or max($0.50, 25% of 24h spend) | INTERNAL never counts; returns 429 RATE_LIMITED with exact Retry-After seconds |
HTTP Status & Error Code Matrix
Every ClipSDK error returns { error: { code, message, request_id } } plus a matching Request-Id header, with Retry-After on 429, 409, and 503 responses.
| HTTP | Error Code(s) | Cause & Recovery |
|---|---|---|
400 | INVALID_REQUEST, INVALID_JSON | Invalid schema or malformed JSON; inspect error.issues[{ path, message }] |
401 | UNAUTHORIZED | Missing, malformed, or revoked csdk_live_... Bearer token |
402 | PAYMENT_REQUIRED | Clip count, clip duration, or /edit requires a paid account; top up at error.billing_url |
404 | NOT_FOUND | Unknown, deleted, expired, or another account's job or file |
409 | IDEMPOTENCY_CONFLICT, JOB_NOT_SUCCEEDED, JOB_NOT_FINISHED, EDIT_IN_PROGRESS, CLIP_LOCKED | Same Idempotency-Key reused with a different body, or target job/edit is still running |
410 | CLIP_EXPIRED | Job files expire within the next hour, so clips can no longer be edited |
413 | PAYLOAD_TOO_LARGE | JSON body exceeds 2 MB (256 KB on /edit) |
429 | RATE_LIMITED | Concurrency, daily job/upload/edit cap, or failure allowance reached; sleep Retry-After seconds |
500 | INTERNAL | Transient server error; safe to retry with the same Idempotency-Key |
503 | DB_UNAVAILABLE, UNAVAILABLE | Brief state outage; retry after Retry-After seconds |
Async Job Failure Codes (job.error.code)
Finished failed jobs return HTTP 200 with status failed, $0 billing, and one of 12 structured job.error.code values distinguishing source issues from retryable faults.
| `job.error.code` | Retryable? | Meaning |
|---|---|---|
INPUT_FETCH_FAILED | Check URL | Direct video URL returned non-2xx, timed out, or was unreachable |
LINK_FETCH_FAILED | Yes / Upload | Platform video link could not be fetched; retry or upload the file via /v1/uploads |
INPUT_UNSUPPORTED | No | File format or codec is unsupported (use MP4, MOV, WebM, or MKV with audio) |
INPUT_TOO_LONG / INPUT_TOO_SHORT | No | Source exceeds 48h or is shorter than requested min_seconds |
INPUT_TOO_LARGE | Adjust params | Exceeds 5 GB or heavy render envelope; message names fitting max_seconds |
INPUT_CHANGED | Re-submit | Source bytes at video_url changed after initial read |
NO_SPEECH | No | No transcribable spoken audio found in the video |
INSUFFICIENT_CREDIT | Top up | Max possible job cost exceeds account balance; message names exact estimate |
TIMEOUT | Adjust window | Processing exceeded time cap; use first_seconds or fewer clips |
JOB_EXPIRED / INTERNAL | Yes | Exceeded 12h server runtime or internal error (INTERNAL never counts against failure limits) |