API
API overview
Errors and limits

API overview

Use the API directly when your application does not use the SDK. All public endpoints are served from:

text

https://api.teenage.works

Authentication

Send a project API key as a bearer token on authenticated requests:

http

Authorization: Bearer tw_live_...

GET /health and GET /v1/voices are public. Speech, readiness, model, capability, and usage requests require authentication.

Make a speech request

curl https://api.teenage.works/v1/audio/speech \
  -H "Authorization: Bearer tw_live_..." \
  -H "Content-Type: application/json" \
  -d '{"input":"Hello from Teen V1.","language":"en","voice":"default","response_format":"mp3","stream":false}' \
  --output speech.mp3

Only input is required. The API defaults to teen-v1, Hindi, the default voice, PCM output, and streaming delivery.

Public endpoints

MethodPathAuthenticationPurpose
GET/healthNoneCheck service health
GET/readyBearerInspect runtime readiness
GET/v1/modelsBearerList available models
GET/v1/capabilitiesBearerInspect supported features and formats
POST/v1/audio/speechBearerGenerate speech
GET/v1/voicesNoneList public voices
GET/v1/account/usageBearerRead project usage and balance
WS/v1/audio/speech/stream-input/{voice_id}BearerStream text input and receive audio
Build a speech request