API reference
Every endpoint, parameter and response of the LeapFun text to speech API, rendered from the live OpenAPI document at https://api.leapfun.ai/v1/openapi.json. Requests use Authorization: Bearer lf_sk_... with a key from Settings → Developer API in the app.
Endpoints at a glance
POST /v1/tts— generate speech fromtextwithengine,voiceand an optional director'snote; returns MP3 bytes withX-Job-Id,X-Credits-Used,X-EngineandX-RateLimit-*headers.POST /v1/audio/speech— the OpenAI-compatible route:model,voice,input, optionalinstructions.GET /v1/voices— the voice catalog, your cloned and designed voices included.GET /v1/engines— the four engines and their billing.GET /v1/usage— credit balance and this period's spend.
Errors are JSON: {"error": {"type", "code", "message", "param", "request_id"}}. 402 insufficient_credits, 403 plan_required, 413 text_too_long, 429 rate_limited with Retry-After.