Quickstart
- 1
Get an API key
Email us and we'll send you a key while sign-up is being finished. Request an API key - 2
Save it as an environment variable
Keep the key out of your code and out of anything that runs in a browser.export AAYAM_API_KEY="your-key" - 3
Make your first request
This saves the line, spoken by Meera in a natural tone, tohello.wav.
curl https://api.aayam.ai/v1/audio/speech \
-H "Authorization: Bearer $AAYAM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"voice_id": "voice_platform_meera",
"tone": "natural",
"text": "Namaste! Your order is on its way."
}' -o hello.wavAuthentication
Every request needs your API key as a bearer token in the Authorization header.
Authorization: Bearer $AAYAM_API_KEYYou're responsible for keeping your key secret. Call the API from your server, never from a web page or a mobile app, where anyone could read the key.
Create speech
https://api.aayam.ai/v1/audio/speechGenerates speech from text and returns it as WAV audio in the response body.
Headers
| Header | Value |
|---|---|
| Authorization | Bearer followed by your API key |
| Content-Type | application/json |
Body
| Field | Type | Description |
|---|---|---|
| voice_id | string | The voice to speak with: a platform voice from the list below, or one of your custom voices. |
| tone | string | How the line should sound, for example natural, warm or calm. See Tones. |
| text | string | The words to speak. |
Response
The body is the audio file itself, in WAV format. Save it to disk or stream it to your player. Only generated audio counts toward your minutes.
Voices
Ten platform voices are ready on every plan. Use them while your own voice is training, then switch the voice_id to your custom voice. Nothing else in your request changes.
| Voice | voice_id | Sounds |
|---|---|---|
| Aarya | voice_platform_aarya | Warm, conversational |
| Arjun | voice_platform_arjun | Friendly, sales |
| Dev | voice_platform_dev | Deep, announcer |
| Ishita | voice_platform_ishita | Crisp, support |
| Kabir | voice_platform_kabir | Clear, confident |
| Meera | voice_platform_meera | Bright, expressive |
| Naina | voice_platform_naina | Lively, youthful |
| Rohan | voice_platform_rohan | Calm, narrator |
| Tara | voice_platform_tara | Soft, assistant |
| Vikram | voice_platform_vikram | Steady, formal |
Tones
Pass one of these as tone. A custom voice speaks in the tones you trained it on.
naturalYour everyday speaking voice.
warmFriendly and close, like a good receptionist.
calmSlow, even and reassuring.
excitedBig news, launches and offers.
seriousPolicy, payments and anything that matters.
whisperSoft and intimate, for ASMR and bedtime stories.
cheerfulBright and upbeat, for greetings and kids' content.
empatheticPatient and understanding, for support calls.
Plans and limits
Each plan sets how many requests can run at the same time and how many minutes of audio are included each month.
| Plan | Concurrent streams | Included minutes | Extra minutes |
|---|---|---|---|
| Free trial | 1 | 20 | Trial stops |
| Developer | 3 | 100 | ₹8 a minute |
| Growth | 10 | 500 | ₹6 a minute |
| Business | 25 | 2,000 | ₹4 a minute |
| Enterprise | Contracted | Committed volume | No overage |
Recording and training are never billed. Compare plans
Support
Questions about the API, a voice ID or your limits? Write to hello@aayam.ai and include the request you sent.