# Card Doctor > Card Doctor finds flash cards that waste reviews and, with a paid plan, repairs them and makes audio recordings. Checking is free and needs no key. It is an Anki add-on with a hosted service. Card text is never logged. Text sent for checking or a rewrite is not stored. Text sent for a recording is held by our voice service until the recording is made, and the recording is deleted within 7 days (usually a day). The rewrite is made by an AI model running on Cloudflare Workers AI. Made by Vibe Frontier, LLC. ## API - [OpenAPI description](https://carddoctor.vibefrontier.com/openapi.json) - MCP server (Streamable HTTP, stateless): https://carddoctor.vibefrontier.com/mcp. Tools: check_cards, fix_card, make_audio, get_audio, detect_diagram_labels, start_checkout, claim_key, account. - MCP tool detect_diagram_labels {"png_base64", "user_agreed": true}: same as POST /occlusion for a PNG of at most 1 MiB. Ask the person first and tell them the picture goes to the Card Doctor service for detection and is not kept; it is refused unless user_agreed is true. - Server card: https://carddoctor.vibefrontier.com/.well-known/mcp.json ## Endpoints (base https://carddoctor.vibefrontier.com/api/v1) - POST /check: {"cards": [{"id": "a", "card": {"question": "...", "answer": "..."}}], "options": {}} returns findings per card, including duplicates across the list. 1 to 200 cards, 256 KB, 120 requests per hour per address. Free, no key. - POST /fix: {"card": {...}} returns one to four rewritten cards that pass the same checks, in the card's own language. {"cards": []} with a "note" means there was nothing to fix, or the card cannot be repaired from its own text (the note says what to add); neither is counted. Needs a key or a trial install id. - POST /audio: {"text": "...", "language": "en"} (300 UTF-16 code units at most, as JavaScript's string length counts them) makes an MP3 recording. The answer is 200 audio/mpeg when it is ready, else 202 {"job": "<32 hex>", "retry_after": 5} (also a Retry-After header): recordings are made by our own voice service and can wait minutes or hours. GET /audio/ then returns the MP3, or the same 202 until it is ready (404 for any other caller's or an expired job, 502 audio_failed if it failed). Asking again for the same text and language reuses the job. One use is counted when the audio is first delivered. At most 20 jobs wait per caller (429 too_many_pending). Languages come from the voice list (en, en-GB, es by default): 400 unsupported_language otherwise, listing them. Needs a key or a trial install id. - POST /occlusion: body is a PNG (Content-Type: image/png, Content-Length required, at most 4 MiB) and the answer is label boxes {"width", "height", "boxes": [{"x", "y", "width", "height"}]} plus usage. For the Occlusion AI add-on; counts one use per successful call. Needs a key or a trial install id. - GET /account, POST /portal, POST /key/rotate: key required (the account view also accepts a trial install id). - POST /checkout, POST /claim: start a purchase and collect the key once. POST /checkout takes "product": "card-doctor-pro" (default, $4.00 a month) or "chatdeck-pro" (one-time $5.00 for the ChatDeck extension; with a key in Authorization it is added to that account). GET /account shows "entitlements": {"chatdeck": true|false}. Card: {"kind": "basic" | "cloze", "question", "answer", "cloze", "cloze_number", "question_media", "answer_media", "media_key"}. Unknown fields are rejected. Errors are {"error": "", "message": ""}. ## Access - Key: "Authorization: Bearer cd_...". The subscription must be active. - Trial: header "X-Card-Doctor-Install: " without a key: 20 uses in total across /fix and /audio per install, 40 per day per network address. 402 trial_used when used up. - Pro: $4.00 per month; fair use 1,000 fixes and 2,000 audio clips per calendar month (429 fair_use beyond). - A use is counted only when a clean result is returned. 503 busy and 502 no_clean_fix count nothing. Daily budgets protect the service: 429 too_many, 503 capacity. ## Privacy Card text is never logged. Text sent for checking or a rewrite is not stored. Text sent for a recording is held by our voice service until the recording is made, and the recording is deleted within 7 days (usually a day). The rewrite is made by an AI model running on Cloudflare Workers AI. ## Paying (agents) Call start_checkout (or POST /checkout with {"claim": ""}). Give the returned URL to the person; they open it and pay on Stripe. You never see or enter payment details and must never ask for them. Then call claim_key (or POST /claim {"secret": "..."}) with the secret: it answers 404 pending until paid, then returns the key exactly once (410 claimed afterwards, 410 expired after 24 hours).