Remove background noise or room echo from a video, and add captions, from code or from an AI agent. Upload a file once and run as many operations on it as you like. Everything is billed against the same balance as the web app.
Sign in, then create a key on /account/api-keys. Send it as Authorization: Bearer tv_live_…. Base URL: https://tidyvid.com/api/v1.
| operation | what it does | credit-s per input second | ≈ USD / min |
|---|---|---|---|
clean_audio_noise | Remove background noise | 1.0 | $0.50 |
clean_audio_echo | Remove room echo / rebuild voice | 1.0 | $0.50 |
captions | .srt, .vtt, .ass and word timings | 0.035 | $0.018 |
captions_burn | Captions plus an MP4 with burned-in subtitles | 0.06 | $0.03 |
Each job costs at least 3 credit-seconds. Failed jobs are refunded automatically. Packs: $5 = 600 credit-seconds, $20 = 3600, $150 = 36000. The live list is at GET /operations.
KEY=tv_live_...
# 1. create a file and upload the bytes
curl -s -X POST https://tidyvid.com/api/v1/files -H "Authorization: Bearer $KEY" \
-H 'Content-Type: application/json' -d '{"file_name":"talk.mp4","content_type":"video/mp4"}'
# -> {"file_id":"file_…","upload_url":"https://…"}
curl -X PUT -H 'Content-Type: video/mp4' --upload-file talk.mp4 "$UPLOAD_URL"
curl -s -X POST https://tidyvid.com/api/v1/files/$FILE_ID/complete -H "Authorization: Bearer $KEY"
# -> {"file_id":…,"status":"ready","seconds":93.4}
# 2. start a job
curl -s -X POST https://tidyvid.com/api/v1/jobs -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
-d '{"file_id":"'$FILE_ID'","operation":"captions_burn","params":{"style":{"preset":"bold_pop"}}}'
# -> 202 {"job_id":"job_…","status":"queued","cost_seconds":6}
# 3. poll until done
curl -s https://tidyvid.com/api/v1/jobs/$JOB_ID -H "Authorization: Bearer $KEY"
# -> {"status":"succeeded","outputs":{"mp4":"https://…","srt":"https://…",…}}
Files are kept for 14 days. Output links are short-lived signed URLs, so request the job again for fresh ones. Clean-audio jobs usually take 1–3× the video length. Captions take seconds to a few minutes.
| status | meaning |
|---|---|
| 401 | missing, invalid or revoked key |
| 402 | insufficient_balance: the body includes cost_seconds, seconds_remaining and a top_up hint. POST /checkout {"pack":"10"|"60"} returns a Stripe Checkout URL that a human can open to pay. |
| 409 / 410 | the file is not uploaded yet, or it has expired |
| 413 / 415 | the file is too large, or it is not audio/video |
Other endpoints: GET /balance and GET /files/:id.
Remote MCP server (streamable HTTP): https://tidyvid.com/mcp. Send your API key as a Bearer token. Tools: upload_file, clean_audio, add_captions, get_job, get_balance.
claude mcp add --transport http tidyvid https://tidyvid.com/mcp --header "Authorization: Bearer $KEY" # or local stdio: npx -y tidyvid-mcp # with env TIDYVID_API_KEY