Developer Reference · v1 Production APIs

Four Specialized APIs, Built for Real-Time Learning.

Standard REST, Server-Sent Events (SSE), and low-latency WebSockets. Regional endpoints in Tokyo (asia-northeast1) and London (europe-west2) with Bearer token authentication.

1. Language Idiomatization 2. Roleplay Tutor 3. Pronunciation & Accent 4. Kids Vision Movement
API 01 · POST /v1/idiomatize

Language Idiomatization API

Traditional grammar checkers only fix missing articles or verb tense—leaving sentences like “everyone look at me with big eyes” sounding painfully translated. Our 1.2B GKD+DPO+WARP model rewrites learner speech into authentic native idioms while respecting register and preserving already-natural English.

Learner Utterance Idiomatized Output is_natural
"everyone look at me with big eyes" "Everyone stared at me wide-eyed." false
"I have a high tension today!" "I'm really pumped up today!" false
"Could you make that an oat latte, please?" "Could you make that an oat latte, please?" true
$0.08 / 1K calls
curl -X POST https://api.british-pronounce.com/v1/idiomatize \ -H "Authorization: Bearer $BP_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "I want to challenge a new job in London.", "dialect": "en-GB", "register": "professional", "preserve_natural": true }'
JSON Response (112 ms)
{ "rewrite": "I'd like to take on a new role in London.", "is_natural": false, "notes": "Replaced L1 calque 'challenge a job' with 'take on a new role'." }
API 02 · POST /v1/tutor/chat

Stateless Roleplay Tutor & Exchange API

Engineered specifically for small-context stability. Instead of re-sending 30 turns of chat history on every message, your app passes only three compact slots—situation, user_profile, and last_prompt—plus the learner’s latest utterance. In one SSE stream, the model emits an instant idiomatic Rewrite and an engaging in-character Reply ending with a follow-up question.

  • Scenario presets or custom prompts: Job Interview, Coffee Barista, Family Dinner, Doctor Visit, Hotel Check-in
  • Constant O(1) cost and latency even in 60-minute speaking marathons
  • Pairs seamlessly with streaming TTS so audio starts on the first clause of Reply
$0.22 / 1K turns
const res = await fetch("https://api.british-pronounce.com/v1/tutor/chat", { method: "POST", headers: { "Authorization": `Bearer ${BP_API_KEY}`, "Content-Type": "application/json" }, body: JSON.stringify({ situation: "Tech startup job interview in London — hiring manager", user_profile: "Name: Yumi, Age: 29, Backend Engineer, CEFR B1", last_prompt: "Tell me about a tough technical problem you solved recently.", prompt: "last month our server go down and i fix database index fast", temperature: 0.1 }) }); // Streamed SSE events: // data: {"token": "Rewrite: Last month our server went down, and I quickly fixed the database index.\n"} // data: {"token": "Reply: That sounds like a high-pressure situation, Yumi! How did you prevent it from happening again?"} // data: {"parsed": {"rewrite": "...", "reply": "...", "is_natural": false}} // data: [DONE]
API 03 · POST /v1/pronunciation/evaluate

Phoneme Pronunciation & Accent Improvement API

Battle-tested in live speaking tutors: submit learner audio (WAV/PCM/WebM) and target_text to get forced acoustic-phonetic alignment across British RP (en-gb), American (en-us), French, Spanish, German, and Italian. Tune strictness from Level 1 (encouraging for kids) to Level 5 (RP accent coaching) using top_k and blank_tolerance_ratio.

Interactive Strictness Explorer Level 3 — Standard IELTS / EIKEN
top_k=4 · blank_tolerance_ratio=0.50 · espeak_voice="en-gb"

Slide between Level 1 and Level 5 to see how the same Japanese learner utterance (“I really thought it was British”) is graded for kids vs. native British RP accent mastery.

Multipart Form Upload & IPA Alignment JSON $0.45 / 1K evals
JavaScript Browser / Backend Example
const fd = new FormData(); fd.append("audio", wavBlob, "audio.wav"); fd.append("target_text", "I really thought it was British"); fd.append("espeak_voice", "en-gb"); // en-gb | en-us | fr | es | de | it fd.append("top_k", "4"); // Strictness tuning fd.append("blank_tolerance_ratio", "0.50"); // Acoustic tolerance const res = await fetch( "https://api.british-pronounce.com/v1/pronunciation/evaluate", { method: "POST", headers: { "Authorization": `Bearer ${BP_API_KEY}` }, body: fd } ); const { pronunciation_analysis } = await res.json();
Response Excerpt (210 ms)
{ "pronunciation_analysis": { "overall_score": 84, "accent_closeness_rp": 0.79, "word_boundaries": [ { "word": "thought", "phonemes": "θɔːt", "score": 67 } ], "alignment": [ { "target": "θ", "predicted": "s", "operation": "SUBSTITUTION" }, { "target": "ɔː", "predicted": "ɔː", "operation": "EXACT" }, { "target": "t", "predicted": "t", "operation": "EXACT" } ] } }
API 04 · WSS /v1/kids-vision/session

Kids Vision Movement & TPR Learning API

Young children (ages 4–11) lose focus staring at static flashcards. Our lightweight vision-pose engine powers Total Physical Response (TPR) movement games: the AI tutor asks kids to raise both hands, spin around, jump, touch their nose, or dance—watches live via camera or on-device keypoints, verifies completion in 42ms, and responds with cheerful, age-appropriate English coaching.

40+ Kid Action Primitives

Raise left/right/both hands, 360° turn, jump, squat, clap, wave, freeze-dance, touch head/shoulders/knees, star pose.

Zero-Video Privacy Architecture

Built for COPPA, GDPR-K, and Japan APPI. Supports ephemeral RAM-only frame inference OR sending anonymized 17-point skeleton coordinates from the client.

WebSocket TPR Session · 42ms / frame $0.004 / active min
Client -> Server (Session Start)
{ "type": "session.start", "child_age": 6, "input_mode": "keypoints_only", // or "ephemeral_jpeg_5fps" "lesson_routine": [ "raise_both_hands", "turn_around_360", "happy_dance_5s" ] }
Server -> Client (Real-Time Guidance Event)
{ "type": "action.verified", "action": "raise_both_hands", "confidence": 0.97, "next_action": "turn_around_360", "coach_text": "Hands up high—brilliant! Now can you turn around in a big circle?", "coach_hint_ja": "りょうてが じょうずに あがったね!つぎは くるっと まわってみよう!" }

Building a language or kids learning app?

Eligible companies with an existing live website can apply for up to $25,000 in free API credits.

See Pricing Apply for $25K Partner Program