This guide walks you through making your first CAMB.AI API call to generate speech from text.Documentation Index
Fetch the complete documentation index at: https://docs.camb.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A CAMB.AI account (sign up at studio.camb.ai)
- Your API key (see Authentication)
Option 1: Using the SDK (Recommended)
Option 2: Using cURL
Option 3: Using the API Directly
Understanding the Response
The API returns raw audio data by default. Key parameters:| Parameter | Description |
|---|---|
text | The text to convert to speech |
voice_id | ID of the voice to use (147320 is a default English voice) |
language | Language code (e.g., en-us, es-es, fr-fr) |
speech_model | Model variant: mars-8.1-flash-beta, mars-8.1-pro-beta, mars-flash, mars-pro, or mars-instruct |
Output Formats
Specify the output format inoutput_configuration:
Explore Voices
List available voices to find the right one for your use case:Next Steps
How Tasks & Runs Work
Understand the async task pattern
SDK Guide
Deep dive into SDK features
MARS 8 Models
Compare TTS model variants
API Reference
Explore all endpoints