# API Reference
Source: https://docs.mserve.ai/docs/api-reference
Summary: Every route, with request and response schemas.

Every route accepts the OpenAI or ElevenLabs request shape shown on its page. Try a request from the page with your key.

- GET `/openai/v1/models` — List models (Models)
- GET `/openai/v1/models/{model_id}` — Retrieve model (Models)
- POST `/openai/v1/chat/completions` — Create chat completion (Real-time)
- POST `/openai/v1/completions` — Create completion (Real-time)
- POST `/openai/v1/responses` — Create response (Real-time)
- POST `/openai/v1/embeddings` — Create embeddings (Real-time)
- POST `/openai/v1/audio/speech` — Create speech (Voice)
- POST `/openai/v1/audio/transcriptions` — Create transcription (Voice)
- POST `/openai/v1/audio/translations` — Create translation (Voice)
- POST `/openai/v1/realtime/client_secrets` — Create realtime client secret (Real-time)
- POST `/openai/v1/realtime/sessions` — Create realtime session (Real-time)
- POST `/openai/v1/files` — Upload file (Batch)
- GET `/openai/v1/files` — List files (Batch)
- GET `/openai/v1/files/{file_id}` — Retrieve file (Batch)
- DELETE `/openai/v1/files/{file_id}` — Delete file (Batch)
- GET `/openai/v1/files/{file_id}/content` — File content (Batch)
- POST `/openai/v1/batches` — Create batch (Batch)
- GET `/openai/v1/batches` — List batches (Batch)
- GET `/openai/v1/batches/{batch_id}` — Retrieve batch (Batch)
- POST `/openai/v1/batches/{batch_id}/cancel` — Cancel batch (Batch)
- POST `/elevenlabs/v1/text-to-speech/{voice_id}` — Text to speech (Voice)
- POST `/elevenlabs/v1/text-to-speech/{voice_id}/stream` — Text to speech, streamed (Voice)
- POST `/elevenlabs/v1/text-to-speech/{voice_id}/with-timestamps` — Text to speech with timestamps (Voice)
- POST `/elevenlabs/v1/text-to-speech/{voice_id}/stream/with-timestamps` — Text to speech, streamed with timestamps (Voice)
- GET `/elevenlabs/v1/voices` — List voices (Voice)
- GET `/elevenlabs/v1/voices/settings/default` — Default voice settings (Voice)
- GET `/elevenlabs/v1/voices/{voice_id}` — Retrieve voice (Voice)
- DELETE `/elevenlabs/v1/voices/{voice_id}` — Delete voice (Voice)
- GET `/elevenlabs/v1/voices/{voice_id}/settings` — Voice settings (Voice)
- GET `/elevenlabs/v1/models` — List models (ElevenLabs shape) (Voice)
- GET `/elevenlabs/v1/user` — User (Voice)
- GET `/elevenlabs/v1/user/subscription` — User subscription (Voice)
- POST `/elevenlabs/v1/speech-to-text` — Speech to text (Voice)
- GET `/elevenlabs/v1/history` — List history (Voice)
- GET `/elevenlabs/v1/history/{item_id}` — Retrieve history item (Voice)
- DELETE `/elevenlabs/v1/history/{item_id}` — Delete history item (Voice)
- GET `/elevenlabs/v1/history/{item_id}/audio` — History item audio (Voice)
- POST `/elevenlabs/v1/speech-to-speech/{voice_id}` — Speech to speech (Voice)
- POST `/elevenlabs/v1/speech-to-speech/{voice_id}/stream` — Speech to speech, streamed (Voice)
- POST `/elevenlabs/v1/voices/add` — Add voice (clone) (Voice)
- POST `/elevenlabs/v1/voices/{voice_id}/edit` — Edit voice (Voice)
- POST `/elevenlabs/v1/voices/{voice_id}/settings/edit` — Edit voice settings (Voice)
- GET `/elevenlabs/v1/voices/{voice_id}/samples/{sample_id}/audio` — Sample audio (Voice)
- DELETE `/elevenlabs/v1/voices/{voice_id}/samples/{sample_id}` — Delete sample (Voice)
- GET `/mserve/v1/key` — Key view (Billing)
- POST `/mserve/v1/billing/checkout` — Create top-up checkout (Billing)
- POST `/mserve/v1/billing/card` — Save card on file (Billing)
- GET `/status` — Status (Platform)
- GET `/health` — Health check (Platform)
