Just Captions API
Transcribe audio, correct and translate captions, pick emojis, and plan short clips from timed transcripts.
Quickstart
- Create a key. Sign in with a one-time email code, then create a dedicated key in your account. No card required.
Your account keeps your keys, usage and billing together. Key secrets are shown only once.
Sign in & create a free key →- Extract the audio. The API takes audio, not video. A mono 48 kbps m4a keeps uploads small.
- Send it. Ask for
format=srtand save the response as a caption file. - Burn it in with ffmpeg, or let the local Just Captions MCP render styled captions for you.
# 2. Pull mono audio out of the video ffmpeg -i input.mp4 -vn -ac 1 -ar 16000 -c:a aac -b:a 48k audio.m4a # 3. Get timed captions back as SRT curl https://api.justcaptions.com/v1/transcribe \ -H "Authorization: Bearer $JUSTCAPTIONS_API_KEY" \ -F file=@audio.m4a \ -F language=en \ -F format=srt \ -o captions.srt # 4. Burn them in locally ffmpeg -i input.mp4 -vf subtitles=captions.srt -c:a copy output.mp4
Authentication
Send your key as a bearer token on every request. Public health, pricing, styles and OpenAPI routes do not require a key. Create keys and manage billing through your verified account.
Keys start with jc_live_ followed by 32 characters. A key is shown once, when you create it. Lost or leaked one? Create a replacement and revoke the old key from the account page.
Authorization: Bearer jc_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Pricing & limits
Every key gets a free allowance each calendar month (UTC). Top up from $5 to keep going past it. Successful billable calls deduct prepaid credits, with no automatic recharge.
| Endpoint | Price | Free monthly |
|---|---|---|
/transcribe | $0.01 per audio minute, billed per second | 30 minutes |
/correct /translate /emoji | $0.01 per 1,000 caption characters sent | 50,000 characters |
Plans
- Free, no card. Requests stop at the allowance with
429 quota_exceeded. Free keys also share a daily capacity pool, so at busy times you may see429 free_tier_busy. - Prepaid credits. Buy $5, $10 or $20 through Stripe on your account page. The minimum recharge is $5. There is no subscription or automatic recharge. Requests beyond your available credits stop with
402 insufficient_credits. - $100 monthly spend cap by default, so a runaway loop can't surprise you (
429 spend_cap_reached). - Failed requests are not billed. Characters are counted on the captions you send, not on the reply.
Request limits
| Endpoint | Limit per request |
|---|---|
/transcribe | 12 MB of audio, about 30 minutes at 48 kbps mono |
/correct /translate | 400 captions and 80,000 characters |
/emoji | 1,000 captions |
| Email sign-in | 5 code requests per email per hour |
curl https://api.justcaptions.com/v1/pricing
{
"currency": "usd",
"transcribe_cents_per_audio_minute": 1,
"text_cents_per_1000_chars": 1,
"free_audio_seconds_per_month": 1800,
"free_text_chars_per_month": 50000,
"default_spend_cap_cents": 10000
}
Errors
Errors use standard HTTP status codes and a JSON body with a readable message and a stable code you can branch on.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | A field is missing or malformed |
| 401 | invalid_api_key | Missing, unknown or revoked key |
| 402 | insufficient_credits | Not enough available credits or monthly spend cap for this request. Top up from $5, increase the cap, or send a smaller request. |
| 402 | payment_required | Last payment failed and the free allowance is used. Update your card in the billing portal. |
| 413 | audio_too_largerequest_too_large | Over the size limit |
| 422 | empty_transcript | No speech found in the audio |
| 429 | quota_exceeded | Free allowance used up for the month |
| 429 | free_tier_busy | Shared free capacity is full for today. Retry later or add credits. |
| 429 | spend_cap_reached | Your monthly spend cap is reached |
| 429 | rate_limited | Too many requests or sign-ups in a short time |
| 503 | billing_unavailable | Billing is temporarily unavailable. The free plan still works. |
| 5xx | provider_unavailableserver_error | Temporary. Retry with backoff. |
{
"error": "Free allowance used up for this month.",
"code": "quota_exceeded"
}
Transcribe
Speech to timed captions. Send audio, not video: extract it first (see Quickstart). All times in the response are in seconds.
Body · multipart/form-data
m4a, mp3, wav, webm or ogg. Up to 12 MB.
BCP-47 hint such as en, zh or es. Detected automatically when absent.
Comma-separated names and terms to spell correctly.
json (default), srt or vtt. SRT and VTT return the caption file itself as text/plain or text/vtt.
You can also send application/json with audio_base64 and mime_type in place of file, and glossary as an array.
curl https://api.justcaptions.com/v1/transcribe \ -H "Authorization: Bearer $JUSTCAPTIONS_API_KEY" \ -F file=@audio.m4a \ -F language=en \ -F "glossary=Just Captions, Kila Labs"
import os, requests
with open("audio.m4a", "rb") as audio:
r = requests.post(
"https://api.justcaptions.com/v1/transcribe",
headers={"Authorization": f"Bearer {os.environ['JUSTCAPTIONS_API_KEY']}"},
files={"file": audio},
data={"language": "en", "glossary": "Just Captions, Kila Labs"},
)
r.raise_for_status()
captions = r.json()
import { readFile } from "node:fs/promises";
const form = new FormData();
form.append("file", new Blob([await readFile("audio.m4a")]), "audio.m4a");
form.append("language", "en");
form.append("glossary", "Just Captions, Kila Labs");
const res = await fetch("https://api.justcaptions.com/v1/transcribe", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.JUSTCAPTIONS_API_KEY}` },
body: form,
});
const captions = await res.json();
{
"language": "en",
"duration": 31.4,
"text": "Hey everyone, welcome to Just Captions…",
"segments": [
{ "start": 0.0, "end": 2.4, "text": "Hey everyone," }
],
"words": [
{ "word": "Hey", "start": 0.0, "end": 0.32 }
],
"usage": { "audio_seconds": 31.4 }
}
Correct
Fixes recognition mistakes, punctuation and the spelling of glossary terms. Line count and order are preserved and timing is never touched: send the text of your caption lines, then put the corrected text back on your own timings.
Body · application/json
Caption lines in order. Up to 400 lines and 80,000 characters.
Names and terms to spell exactly as given.
Language of the captions, such as en.
curl https://api.justcaptions.com/v1/correct \
-H "Authorization: Bearer $JUSTCAPTIONS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"captions": ["hey every one", "welcome to just captions"],
"glossary": ["Just Captions"],
"language": "en"
}'
import os, requests
r = requests.post(
"https://api.justcaptions.com/v1/correct",
headers={"Authorization": f"Bearer {os.environ['JUSTCAPTIONS_API_KEY']}"},
json={
"captions": ["hey every one", "welcome to just captions"],
"glossary": ["Just Captions"],
"language": "en",
},
)
r.raise_for_status()
fixed = r.json()["captions"]
const res = await fetch("https://api.justcaptions.com/v1/correct", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.JUSTCAPTIONS_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
captions: ["hey every one", "welcome to just captions"],
glossary: ["Just Captions"],
language: "en",
}),
});
const { captions } = await res.json();
{
"captions": ["Hey everyone,", "welcome to Just Captions."],
"usage": { "text_chars": 37 }
}
Translate
Translates caption lines into another language, one line out for each line in, using the whole request as context. Timing stays yours.
Body · application/json
Caption lines in order. Up to 400 lines and 80,000 characters.
Language to translate into, such as es, ja or fr.
Names and terms to keep untranslated.
curl https://api.justcaptions.com/v1/translate \
-H "Authorization: Bearer $JUSTCAPTIONS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"captions": ["Hey everyone,", "welcome to Just Captions."],
"target_language": "es"
}'
import os, requests
r = requests.post(
"https://api.justcaptions.com/v1/translate",
headers={"Authorization": f"Bearer {os.environ['JUSTCAPTIONS_API_KEY']}"},
json={
"captions": ["Hey everyone,", "welcome to Just Captions."],
"target_language": "es",
},
)
r.raise_for_status()
spanish = r.json()["captions"]
const res = await fetch("https://api.justcaptions.com/v1/translate", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.JUSTCAPTIONS_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
captions: ["Hey everyone,", "welcome to Just Captions."],
target_language: "es",
}),
});
const { captions } = await res.json();
{
"captions": ["Hola a todos,", "bienvenidos a Just Captions."],
"target_language": "es",
"usage": { "text_chars": 38 }
}
Emoji
Picks one emoji per caption line, the same picks the app's Emoji caption style uses. An entry is null when no emoji fits well.
Body · application/json
Caption lines in order. Up to 1,000 lines.
Language of the captions, such as en.
curl https://api.justcaptions.com/v1/emoji \
-H "Authorization: Bearer $JUSTCAPTIONS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"captions": ["make money fast", "thanks for watching"],
"language": "en"
}'
import os, requests
r = requests.post(
"https://api.justcaptions.com/v1/emoji",
headers={"Authorization": f"Bearer {os.environ['JUSTCAPTIONS_API_KEY']}"},
json={"captions": ["make money fast", "thanks for watching"], "language": "en"},
)
r.raise_for_status()
emojis = r.json()["emojis"]
const res = await fetch("https://api.justcaptions.com/v1/emoji", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.JUSTCAPTIONS_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
captions: ["make money fast", "thanks for watching"],
language: "en",
}),
});
const { emojis } = await res.json();
{
"emojis": ["💰", "🙏"],
"usage": { "text_chars": 34 }
}
Auto Edit
Send a timed transcript and source duration in seconds. The response lists suggested clips with segments on the original timeline. Use those ranges to cut your local video. The request sends transcript text and timestamps, and usage counts toward your text allowance.
Use an account key or a key with the auto-edit permission. In the account console, choose Create API key and select Auto Edit. A scoped key without that permission returns 403 scope_denied.
Send an Idempotency-Key to retry safely within 24 hours.
Optional sentence_ranges must be sorted, nonoverlapping spans within both the video and the supplied transcript. Invalid spans return 400 invalid_request.
Send options as a JSON object to customize Auto Edit. Omit it or send null to use defaults. Arrays, strings, numbers and booleans return 400 invalid_request.
Omit clip_policy.independent_shorts or set it to true to plan independent shorts. Set it to false to allow recap and highlight clips. Use a JSON boolean. Strings such as "false", numbers, arrays, objects and null return 400 invalid_request.
The normalized planner input has a limit of 256,000 UTF-8 bytes, including transcript text, timestamps, sentence ranges and options. Larger inputs return 413 request_too_large.
These validation errors occur before the API checks or reserves text allowance. After correcting the request, retry with the same Idempotency-Key.
When planning independent shorts, the API may return fewer clips if the transcript has too few distinct, usable moments. See the request schema for field limits.
curl https://api.justcaptions.com/v1/auto-edit \ -H "Authorization: Bearer $JUSTCAPTIONS_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $REQUEST_ID" \ --data-binary @timed-transcript.json
{
"duration_seconds": 120,
"mode": "talking_head",
"transcript": [
{"start": 0.2, "end": 1.1, "text": "Start with clean audio."}
],
"clip_policy": {"min_clip_count": 1, "max_clip_count": 3}
}
Replace the sample line with your full timed transcript. Set REQUEST_ID to a unique identifier for the request.
Usage
This month's account usage, shared by all keys. New accounts use free or prepaid. credit_balance_cents, credit_available_cents and credits_used_this_month_cents report the wallet; fractional cents are preserved. estimated_charge_cents applies only to older subscription accounts.
curl https://api.justcaptions.com/v1/usage \ -H "Authorization: Bearer $JUSTCAPTIONS_API_KEY"
{
"month": "2026-10",
"plan": "free",
"email": "you@example.com",
"audio_seconds": 812.4,
"text_chars": 12890,
"free_audio_seconds": 1800,
"free_text_chars": 50000,
"estimated_charge_cents": 0,
"spend_cap_cents": 10000,
"billing_available": true
}
Create a key
Open your account, verify your email and create a named API key. Choose its permissions and expiration. All keys share your account's free allowance and monthly spending limit.
Legacy POST /v1/signup is disabled and returns 403 email_verification_required. Existing keys continue to work. Link your original key after signing in to preserve its usage and billing.
export JUSTCAPTIONS_API_KEY="jc_live_…"
Replace a key
Create a new dedicated key in your account, update your agent, then revoke the old key. Secrets are shown once.
These actions require your verified website login. Dedicated agent keys cannot manage account access or billing.
Open account →Add prepaid credits
Open Usage & billing in your account, choose $5, $10 or $20, then select Add credits. Stripe handles a one-time payment and provides an invoice. Credits are added only after Stripe confirms payment. The server enforces a $5 minimum recharge. No subscription or automatic recharge is enabled.
Your free allowance resets on the first of each month at 00:00 UTC. Only successful usage beyond that allowance deducts credits; earlier free usage is never charged retroactively. Credit balances carry over without a scheduled expiry.
These actions require your verified website login. Dedicated agent keys cannot manage account access or billing.
Open account →Manage billing & invoices
Open Usage & billing in your account for your balance, credit activity, invoices and PDF downloads. Every paid recharge creates a Stripe invoice. For refund questions, contact support. Older subscription accounts keep their Stripe portal for payment updates and period-end cancellation.
These actions require your verified website login. Dedicated agent keys cannot manage account access or billing.
Open account →Pricing
The current prices and free allowance as JSON. The response is shown under Pricing & limits.
curl https://api.justcaptions.com/v1/pricing
Health
Returns {"ok": true} when the API is up.
curl https://api.justcaptions.com/v1/health
{ "ok": true }
Transcribe and translate
Transcribe a clip, translate it to Spanish, and write both SRT files. The translated lines reuse the original timings, so the two files stay in sync.
Only needs requests.
import os, requests
API = "https://api.justcaptions.com/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['JUSTCAPTIONS_API_KEY']}"}
def srt_time(t):
ms = round(t * 1000)
h, ms = divmod(ms, 3_600_000)
m, ms = divmod(ms, 60_000)
s, ms = divmod(ms, 1000)
return f"{h:02}:{m:02}:{s:02},{ms:03}"
def write_srt(path, segments, texts):
with open(path, "w", encoding="utf-8") as f:
for i, (seg, text) in enumerate(zip(segments, texts), 1):
f.write(f"{i}\n{srt_time(seg['start'])} --> {srt_time(seg['end'])}\n{text}\n\n")
with open("audio.m4a", "rb") as audio:
r = requests.post(f"{API}/transcribe", headers=HEADERS,
files={"file": audio}, data={"language": "en"})
r.raise_for_status()
segments = r.json()["segments"]
write_srt("captions.en.srt", segments, [s["text"] for s in segments])
r = requests.post(f"{API}/translate", headers=HEADERS, json={
"captions": [s["text"] for s in segments],
"target_language": "es",
})
r.raise_for_status()
write_srt("captions.es.srt", segments, r.json()["captions"])
MCP and machine-readable docs
Connect Codex or Claude Code with a copy-ready setup and caption task. The local MCP adds file access, 16 portable caption presets, style previews, progress and MP4 rendering. The remote MCP at https://api.justcaptions.com/mcp handles audio and caption text, with the same API key and billing as this API.
OpenAPI JSON · Style catalog · Agent documentation · Open-source MCP & renderer
GET /v1/styles
No key needed. Returns versioned presets, aliases, accepted local-rendering overrides and conservative platform safe areas. Style changes are applied by the local MCP or CLI.
Python standard-library clients
If urllib.request receives a Cloudflare 403 / error 1010, identify your client with User-Agent: JustCaptionsPython/1.0. Include this header alongside your bearer key. The default urllib user-agent can be rejected before the request reaches our API. The Python examples use requests, which works with its standard headers.
Retrying paid requests
For Auto Edit, transcribe, correct, translate and emoji requests, send a unique Idempotency-Key of 1–100 letters (A–Z or a–z), digits, underscores or hyphens. An empty or whitespace-only header returns 400 invalid_request before usage is reserved. Omit the header to call the API without replay protection. Use request_id for retries through the remote MCP.
- With the same input and key, a completed HTTP response replays within 24 hours and sets
Idempotency-Replayed: true. The replay adds no usage. - For
409 request_in_progress, wait the number of seconds inRetry-After, then retry with the same input and key. - For
409 idempotency_conflict, send a new key if you intend to submit changed input.
Cross-origin browser clients can read Idempotency-Replayed and Retry-After when present.
The replay store keeps request hashes and completed caption replies for a 24-hour replay window, then removes them on a subsequent request or daily cleanup (within 48 hours). It does not retain audio.
Burn captions into video
The API returns caption data. Render the video on your computer using either option:
- ffmpeg burns any SRT in with a plain style.
- The Just Captions Claude skill is open source, runs locally and renders the app's caption styles, such as the yellow box. It can use this API for recognition, translation and emoji.
ffmpeg -i input.mp4 -vf subtitles=captions.srt -c:a copy output.mp4
Data & privacy
Audio is processed for the request and is not retained by our API. Logs record metadata such as duration and status. If you send an idempotency key, completed caption replies are temporarily cached for safe retries as described above. For your account we keep your email, a hash of your key and usage counts. Stripe handles card details.
Recognition and AI text tasks run on third-party AI providers, the same ones the app lists in its privacy policy. Only send content you're allowed to process.
Read the account and API privacy policy for details on data retention, billing and account deletion.