# Sunbird AI API - [Introduction](https://docs.sunbird.ai/introduction.md): Welcome to the Sunbird AI Developer Documentation - [Quickstart](https://docs.sunbird.ai/quickstart.md): Get started with the Sunbird AI API in minutes - [Authentication](https://docs.sunbird.ai/authentication.md): How to authenticate your requests to the Sunbird AI API - [Supported Languages](https://docs.sunbird.ai/languages.md): Detailed list of languages supported by Sunbird AI, including translation, STT, TTS, and notes. - [Speech to Text](https://docs.sunbird.ai/guides/speech-to-text.md): Convert audio to text across 51 African languages - [Text to Speech](https://docs.sunbird.ai/guides/text-to-speech.md): Convert text into natural-sounding speech in 19 African languages - [Language Detection](https://docs.sunbird.ai/guides/language-detection.md): Identify languages from text or audio - [Summarization](https://docs.sunbird.ai/guides/summarization.md): Summarize text with the Sunflower model - [Sunflower Chat](https://docs.sunbird.ai/guides/sunflower-chat.md): Build conversational AI with the Sunflower model - [MCP Server](https://docs.sunbird.ai/guides/mcp-server.md): Use the Sunbird AI API as tools from Claude Code, Cursor, and other AI agents - [Error Handling](https://docs.sunbird.ai/guides/error-handling.md): Best practices for handling API errors - [Rate Limits](https://docs.sunbird.ai/guides/rate-limits.md): Understanding API rate limits and quotas - [FAQ](https://docs.sunbird.ai/support/faq.md): Frequently Asked Questions - [Contact Support](https://docs.sunbird.ai/support/contact.md): Get in touch with the Sunbird AI team - [Overview](https://docs.sunbird.ai/sunflower/overview.md) - [Getting Started](https://docs.sunbird.ai/sunflower/sunflower.md) - [Inference](https://docs.sunbird.ai/sunflower/inference.md) - [Quantization](https://docs.sunbird.ai/sunflower/quantization.md) - [LLM Compression](https://docs.sunbird.ai/sunflower/llm_compression.md) - [API Reference](https://docs.sunbird.ai/api-reference/introduction.md): comprehensive reference for the Sunbird AI API endpoints. - [Register](https://docs.sunbird.ai/api-reference/authentication/register.md) - [Verify Email](https://docs.sunbird.ai/api-reference/authentication/verify-email.md): Landing endpoint for the emailed verification link. Opening the link marks the account as verified and **always redirects** to the web app — it never reveals whether an account exists. - [Resend Verification](https://docs.sunbird.ai/api-reference/authentication/resend-verification.md) - [Login](https://docs.sunbird.ai/api-reference/authentication/login.md) - [Refresh Token](https://docs.sunbird.ai/api-reference/authentication/refresh-token.md): Rotate the caller's API key. - [Get Profile](https://docs.sunbird.ai/api-reference/authentication/get-profile.md) - [Update Profile](https://docs.sunbird.ai/api-reference/authentication/update-profile.md) - [Profile Status](https://docs.sunbird.ai/api-reference/authentication/profile-status.md) - [Forgot Password](https://docs.sunbird.ai/api-reference/authentication/forgot-password.md) - [Reset Password](https://docs.sunbird.ai/api-reference/authentication/reset-password.md) - [Change Password](https://docs.sunbird.ai/api-reference/authentication/change-password.md) - [Speech to Text](https://docs.sunbird.ai/api-reference/speech/speech-to-text.md): Unified Speech-to-Text endpoint, powered by Sunbird's faster-whisper ASR model covering 51 African languages. Accepts an uploaded audio file and a required language code; set timestamps=true to also receive per-segment timings. Replaces /stt, /stt_from_gcs, /org/stt, and /modal/stt. - [Text to Speech](https://docs.sunbird.ai/api-reference/speech/text-to-speech.md): Unified Text-to-Speech endpoint, served by the RunPod Orpheus-3B deployment. response_mode='url' (default) returns a signed GCS audio URL; 'stream' returns raw audio bytes with no storage; 'both' returns raw audio bytes with the signed URL in the X-Audio-Url header. Replaces /tasks/modal/tts, /tasks… - [Batch Text to Speech](https://docs.sunbird.ai/api-reference/speech/batch-speech.md): Unified batch Text-to-Speech endpoint. Synthesizes 1-128 items in a single sunbird-orpheus-tts pass and uploads each result to GCS. Per-item failures are reported with status='error'; the request returns 200 if at least one item succeeds, 502 if every item fails. Replaces /tasks/modal/orpheus/tts/ba… - [List Voices](https://docs.sunbird.ai/api-reference/speech/list-voices.md): List available Orpheus-3B speakers. Returns the catalog grouped by language (OrpheusSpeakersResponse); add 'language' to get one language's voices (OrpheusLanguageSpeakersResponse). Replaces /tasks/modal/orpheus/speakers, /tasks/modal/orpheus/speakers/{language}, and /tasks/modal/tts/speakers. - [Refresh Audio URL](https://docs.sunbird.ai/api-reference/speech/refresh-audio-url.md): Generate a fresh signed URL for an existing audio object in GCS (e.g. a previously synthesized speech file whose signed URL has expired). Replaces /tasks/modal/tts/refresh-url. - [Translate](https://docs.sunbird.ai/api-reference/translation/translate.md): Translate text between supported languages using the sunflower-9b model. - [Language ID](https://docs.sunbird.ai/api-reference/language/language-id.md): Identify the language of a piece of text. - [Audio Language Detection](https://docs.sunbird.ai/api-reference/language/audio-language.md): Detect the language spoken in an audio file. - [Chat Completions](https://docs.sunbird.ai/api-reference/ai/chat-completions.md): OpenAI-compatible chat completion powered by Sunbird's Sunflower model. - [Generate Upload URL](https://docs.sunbird.ai/api-reference/uploads/generate-upload-url.md): Generate a signed URL for direct upload to Google Cloud Storage. - [WhatsApp Webhook](https://docs.sunbird.ai/api-reference/webhooks/whatsapp-webhook.md): Handle incoming WhatsApp Business API webhooks. - [Changelog](https://docs.sunbird.ai/resources/changelog.md): API changes, new endpoints, and deprecations - [Deprecations](https://docs.sunbird.ai/resources/deprecations.md): Deprecated and removed endpoints, and what to use instead - [API Tutorial](https://docs.sunbird.ai/resources/tutorial.md): Complete walkthrough of every Sunbird AI endpoint with runnable Python examples - [Legacy API (Deprecated)](https://docs.sunbird.ai/api-reference/legacy/introduction.md): Reference for deprecated Sunbird AI endpoints - [Speech to Text](https://docs.sunbird.ai/api-reference/legacy/speech/stt.md): Upload an audio file and get the transcription text. - [Transcribe Audio (Modal Whisper)](https://docs.sunbird.ai/api-reference/legacy/speech/modal-stt.md): Upload an audio file and get transcription using the Modal-hosted Whisper model. Optionally specify a language to improve accuracy. - [Speech to Text from GCS](https://docs.sunbird.ai/api-reference/legacy/speech/stt-from-gcs.md): Transcribe audio from a Google Cloud Storage blob. - [Speech to Text (Org)](https://docs.sunbird.ai/api-reference/legacy/speech/org-stt.md): Upload an audio file for organization transcription. - [Text to Speech](https://docs.sunbird.ai/api-reference/legacy/tts/tts.md): **DEPRECATED**: This endpoint is maintained for backward compatibility only. - [Generate TTS Audio (Modal)](https://docs.sunbird.ai/api-reference/legacy/tts/modal-tts.md): Convert text to speech and return a signed URL to the audio file. - [Stream TTS Audio](https://docs.sunbird.ai/api-reference/legacy/tts/modal-tts-stream.md): Stream audio chunks as they are generated. DEPRECATED: use POST /tasks/audio/speech with response_mode='stream'. - [Stream TTS Audio with Final URL](https://docs.sunbird.ai/api-reference/legacy/tts/modal-tts-stream-url.md): Stream audio chunks and return a signed URL at completion. DEPRECATED: use POST /tasks/audio/speech with response_mode='both'. - [Refresh Signed URL](https://docs.sunbird.ai/api-reference/legacy/tts/modal-tts-refresh-url.md): Generate a new signed URL for an existing audio file. DEPRECATED: use GET /tasks/audio/speech/url. - [List Available Speakers](https://docs.sunbird.ai/api-reference/legacy/tts/modal-tts-speakers.md): Get all available speaker voices for TTS generation. - [List Orpheus Speakers](https://docs.sunbird.ai/api-reference/legacy/tts/orpheus-speakers.md): Returns the full Orpheus speaker catalog. `total` and `languages` are derived convenience fields. Auth required. - [List Orpheus Speakers for a Language](https://docs.sunbird.ai/api-reference/legacy/tts/orpheus-speakers-language.md): Convenience endpoint for two-step pickers (language then speaker). Returns 400 invalid_request if the language code is not in the catalog. - [Synthesize Speech (Orpheus-3B)](https://docs.sunbird.ai/api-reference/legacy/tts/orpheus-tts.md): Calls the Orpheus-3B Modal vLLM inference app, uploads the generated WAV to Google Cloud Storage, and returns a v4 presigned download URL valid for the configured expiry window (default 30 minutes), together with metadata and stage-by-stage latency timings. - [Batch Synthesize Speech (Orpheus-3B)](https://docs.sunbird.ai/api-reference/legacy/tts/orpheus-tts-batch.md): Calls Modal's batched inference endpoint (a single vLLM continuous-batched pass) and uploads each generated WAV to GCS in parallel. Per-item failures are reported in the response with `status: "error"`; the request as a whole returns 200 if at least one item succeeds, 502 if every item failed. DEPRE… - [Text to Speech (RunPod)](https://docs.sunbird.ai/api-reference/legacy/tts/runpod-tts.md): RunPod Text-to-Speech endpoint. Converts input text to speech audio using a specified speaker voice. - [Sunflower Inference](https://docs.sunbird.ai/api-reference/legacy/ai/sunflower-inference.md): Professional Sunflower inference endpoint for multilingual chat completions. - [Sunflower Simple Inference](https://docs.sunbird.ai/api-reference/legacy/ai/sunflower-simple.md): Simple Sunflower inference endpoint for single instruction/response. - [Summarise](https://docs.sunbird.ai/api-reference/legacy/ai/summarise.md): This endpoint does anonymised summarisation of a given text. The text languages supported for now are English (eng) and Luganda (lug). ## OpenAPI Specs - [openapi-legacy](/api-reference/openapi-legacy.json) - [openapi](/api-reference/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.