Skip to main content
These examples use ?wait=N, which holds the request open until the job finishes — one or two requests per job instead of one every few seconds. If your service can receive HTTP callbacks, prefer webhooks and skip waiting altogether. See Getting your results.

Check whether footage is usable

Answers in the same request. Call it before anything expensive — a reject here saves the whole run.
GET /api/v1/samples lists two videos that are broken on purpose, and checking or fixing those costs no credits. Point the examples on this page at one of them to watch the whole flow work before spending anything.

Fix it, and check the fix took

Returns a job, because a transcode takes tens of seconds and an unverified answer is not worth having early.
Send an Idempotency-Key. Retries are the normal case on a network call that takes a minute, and without one a retry charges and transcodes a second time. With one, it returns the original job and does not even re-read the video.

Classify a single video

Batch classification

Webhook listener

Transcribe and translate a video

Check credit balance

Error handling