API v1
API reference

Just Captions API

Transcribe audio, correct and translate captions, pick emojis, and plan short clips from timed transcripts.

Base URLhttps://api.justcaptions.com/v1
POST/v1/transcribe · audio.m4a
00:00.00 →Hey everyone,
00:01.20 →welcome to Just Captions.
00:02.90 →Let's add captions.

Free every month: 30 audio minutes + 50,000 characters. No card.
Getting started

Quickstart

  1. 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 →
  1. Extract the audio. The API takes audio, not video. A mono 48 kbps m4a keeps uploads small.
  2. Send it. Ask for format=srt and save the response as a caption file.
  3. Burn it in with ffmpeg, or let the local Just Captions MCP render styled captions for you.
Terminal
# 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.

Keep keys on the server. Never put one in browser or app code, or in a public repo.
Header
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.

EndpointPriceFree monthly
/transcribe$0.01 per audio minute, billed per second30 minutes
/correct /translate /emoji$0.01 per 1,000 caption characters sent50,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 see 429 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

EndpointLimit per request
/transcribe12 MB of audio, about 30 minutes at 48 kbps mono
/correct /translate400 captions and 80,000 characters
/emoji1,000 captions
Email sign-in5 code requests per email per hour
GET /v1/pricing
curl https://api.justcaptions.com/v1/pricing
200 OK
{
  "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.

StatusCodeMeaning
400invalid_requestA field is missing or malformed
401invalid_api_keyMissing, unknown or revoked key
402insufficient_creditsNot enough available credits or monthly spend cap for this request. Top up from $5, increase the cap, or send a smaller request.
402payment_requiredLast payment failed and the free allowance is used. Update your card in the billing portal.
413audio_too_large
request_too_large
Over the size limit
422empty_transcriptNo speech found in the audio
429quota_exceededFree allowance used up for the month
429free_tier_busyShared free capacity is full for today. Retry later or add credits.
429spend_cap_reachedYour monthly spend cap is reached
429rate_limitedToo many requests or sign-ups in a short time
503billing_unavailableBilling is temporarily unavailable. The free plan still works.
5xxprovider_unavailable
server_error
Temporary. Retry with backoff.
429 Too Many Requests
{
  "error": "Free allowance used up for this month.",
  "code": "quota_exceeded"
}
Captions

Transcribe

POST/v1/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

filefileRequired

m4a, mp3, wav, webm or ogg. Up to 12 MB.

languagestringOptional

BCP-47 hint such as en, zh or es. Detected automatically when absent.

glossarystringOptional

Comma-separated names and terms to spell correctly.

formatenumOptional

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.

POST /v1/transcribe
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"
200 OK
{
  "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

POST/v1/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

captionsstring[]Required

Caption lines in order. Up to 400 lines and 80,000 characters.

glossarystring[]Optional

Names and terms to spell exactly as given.

languagestringOptional

Language of the captions, such as en.

POST /v1/correct
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"
  }'
200 OK
{
  "captions": ["Hey everyone,", "welcome to Just Captions."],
  "usage": { "text_chars": 37 }
}

Translate

POST/v1/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

captionsstring[]Required

Caption lines in order. Up to 400 lines and 80,000 characters.

target_languagestringRequired

Language to translate into, such as es, ja or fr.

glossarystring[]Optional

Names and terms to keep untranslated.

POST /v1/translate
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"
  }'
200 OK
{
  "captions": ["Hola a todos,", "bienvenidos a Just Captions."],
  "target_language": "es",
  "usage": { "text_chars": 38 }
}

Emoji

POST/v1/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

captionsstring[]Required

Caption lines in order. Up to 1,000 lines.

languagestringOptional

Language of the captions, such as en.

POST /v1/emoji
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"
  }'
200 OK
{
  "emojis": ["💰", "🙏"],
  "usage": { "text_chars": 34 }
}
Endpoints

Auto Edit

POST/v1/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.

Send your transcript
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
timed-transcript.json structure
{
  "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.

Account

Usage

GET/v1/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.

GET /v1/usage
curl https://api.justcaptions.com/v1/usage \
  -H "Authorization: Bearer $JUSTCAPTIONS_API_KEY"
200 OK
{
  "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.

Set your agent environment
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

GET/v1/pricingNo auth

The current prices and free allowance as JSON. The response is shown under Pricing & limits.

GET /v1/pricing
curl https://api.justcaptions.com/v1/pricing

Health

GET/v1/healthNo auth

Returns {"ok": true} when the API is up.

GET /v1/health
curl https://api.justcaptions.com/v1/health
200 OK
{ "ok": true }
Guides

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.

captions.py
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 in Retry-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.
Terminal
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.