Your first API call takes five minutes, and one key reaches every API.

One API key gives you speech to text in 10 Indian languages, text to speech in nine, and a language model. Speech to text is ₹0.30 a minute; text to speech ₹1.80 per 1,000 characters.

Get an API key

Open the quickstart

No sign-up to look around. Your sandbox starts with ₹200 of credit.

POST /v1/audio/speech Mira TTS

curl https://sandbox.voice.miraiminds.co/v1/audio/speech \  -H "Authorization: Bearer $MIRA_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "mira-tts",    "voice": "anjali",    "response_format": "wav",    "input": "नमस्ते, मैं अंजलि बोल रही हूँ। आपका order कल शाम तक पहुँच जाएगा।"  }' \  --output speech.wav

200 OKaudio/wav, saved as speech.wav

One key, one wallet, four requests. Each is the first request on its docs page.

Your first call is three steps of real code, and it takes about five minutes.

Open the quickstart

Before you startFirst, create a key in the sandbox: Developers, then Create key. It starts with ₹200 of real calls.

Check the key
curl https://sandbox.voice.miraiminds.co/v2/wallet -H "Authorization: Bearer $MIRA_API_KEY"

200 OK

{ "balance_inr": 200, "currency": "INR", "updated_at": "2026-07-26T09:12:44Z" }
  1. Create an agent

    The prompt, the opening line, the voice and the language, saved once and used for every call.

    POST /v2/agents

    curl -X POST https://sandbox.voice.miraiminds.co/v2/agents \  -H "Authorization: Bearer $MIRA_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "name": "Order Confirmation",    "system_prompt": "You are Anjali from Kesar Kurta House. Confirm order {{order_id}} with {{customer_name}} and ask whether the delivery address is unchanged. Keep replies to one or two short sentences. When the customer is done, thank them and end the call.",    "first_message": "नमस्ते {{customer_name}}, मैं Kesar Kurta House से Anjali बोल रही हूँ।",    "voice": { "voice_id": "anjali", "language": "hi-IN" },    "language": "hi-IN",    "max_duration_secs": 300  }'

    201 Created

    {  "id": "agt_01JZQ8F3K7M2N5P9R4T6V8W0XZ",  "object": "agent",  "name": "Order Confirmation",  "voice": { "voice_id": "anjali", "language": "hi-IN" },  "language": "hi-IN",  "max_duration_secs": 300,  "created_at": "2026-07-26T09:14:02Z"}
  2. Place a call

    The variables fill the prompt’s placeholders. 202 means the call is accepted; the phone rings next.

    POST /v2/calls

    curl -X POST https://sandbox.voice.miraiminds.co/v2/calls \  -H "Authorization: Bearer $MIRA_API_KEY" \  -H "Content-Type: application/json" \  -H "Idempotency-Key: order-8842-confirm-1" \  -d '{    "agent_id": "agt_01JZQ8F3K7M2N5P9R4T6V8W0XZ",    "to": "+919876543210",    "variables": { "customer_name": "Rahul", "order_id": "8842" },    "webhook_url": "https://example.com/mirai/webhook"  }'

    202 Accepted

    { "id": "call_01JZQ9B4M8N3P6R2S5T7V9W1YA", "status": "queued" }
  3. Receive the webhook

    We POST a signed event at each step of the call. Verify the signature, then read the result: 96 seconds, billed as 10 blocks.

    POST https://example.com/mirai/webhook

    import hmac, hashlib, timefrom flask import Flask, requestapp = Flask(__name__)WHSEC = "whsec_7d4f1a09c2e58b36a1f0d7c93b2e64a8"TOLERANCE_SECS = 300def verify(raw_body: bytes, header: str, secret: str) -> bool:    parts = dict(p.split("=", 1) for p in header.split(",") if "=" in p)    t, v1 = parts.get("t"), parts.get("v1")    if not t or not v1:        return False    if abs(time.time() - int(t)) > TOLERANCE_SECS:        return False    expected = hmac.new(        secret.encode(), t.encode() + b"." + raw_body, hashlib.sha256    ).hexdigest()    return hmac.compare_digest(expected, v1)@app.post("/mirai/webhook")def hook():    if not verify(request.get_data(), request.headers.get("X-Mirai-Signature", ""), WHSEC):        return "", 401    event = request.get_json()    print(event["type"], event["data"]["call"]["status"])    return "", 200  # 2xx stops our retries

    call.completedthe event your server receives

    {  "id": "evt_01JZQ9C5N9P4R7S3T6V8W2X4YB",  "type": "call.completed",  "created_at": "2026-07-26T09:16:38Z",  "data": {    "call": {      "id": "call_01JZQ9B4M8N3P6R2S5T7V9W1YA",      "object": "call",      "agent_id": "agt_01JZQ8F3K7M2N5P9R4T6V8W0XZ",      "to": "+919876543210",      "status": "completed",      "ended_reason": "assistant-ended-call",      "started_at": "2026-07-26T09:15:02Z",      "ended_at": "2026-07-26T09:16:38Z",      "duration_secs": 96,      "cost": { "amount_inr": 8.34, "per_min_inr": 5, "billing_block_secs": 10 }    },    "wallet": { "balance_inr": 191.66 }  }}

One key reaches the whole platform, from one sentence to a whole campaign.

Open the API reference

One key

Authorization: Bearersk_live_…

One prepaid wallet, in rupees

Sandbox
sandbox.voice.miraiminds.co
Production
prod.voice.miraiminds.co

Speech and the modelOpenAI-compatible

The agent platform188 operations in the reference

Back to your serverX-Mirai-Signature

call.startedcall.completedcall.processedcall.failedcampaign.completed Every event

Counts are the operations in the published API reference on 30 Nov 2026 (188 in all, in 21 groups). The routes are the same on both base URLs; a sandbox key works only on the sandbox.

A reply starts in about 850 ms end to end, and each stage is timed in production.

See the models

What happens in 850 ms

One reply on a live call, from the caller’s last word to the first sound of the answer.

Medians on 47,632 production calls to 26 Nov 2026; 95 in 100 replies start within 1.94 s. Each stage is timed on its own and they overlap, so the bars sit in order, not to the millisecond; the hatched span is what is left of the 834 ms. Measured on our side of the call.

Each API is priced on its own, by the minute, character and token.

See full pricing

On our own GPUs in India

Mira STTIN, on our own GPUs in India

Speech to text

STT quickstart

POST/v1/audio/transcriptions

One clip, up to 120 seconds

₹0.30a minute of audio

WSS/v1/audio/transcriptions/stream

Live audio, text while they speak

₹0.30a minute of audio

POST/v2/transcriptions

Recordings up to 2 hours, speakers labelled

₹15an hour of audio

Mira TTS

Text to speech

TTS quickstart

POST/v1/audio/speech

One request, up to 2,000 characters

₹1.80per 1,000 characters

WSS/v1/audio/speech/stream

Live voice, a whole call on one socket

₹0.90a minute connected

Mira LLMGemma 4 26BIN, on our own GPUs in India

Language model

LLM reference

POST/v2/chat/completions

Input

₹15per 10,00,000 tokens

Cached input: a prompt that repeats a recent one

₹9.30per 10,00,000 tokens

Output

₹55per 10,00,000 tokens

Unused credit never expires. One key and one prepaid wallet for all of them, the wallet your calls draw on. On the text-to-speech socket you pay for the time it is open, and the speech it carries is not charged again. All prices exclude GST.

Questions developers ask before they build.

Have a question we did not answer?

Book a 15-minute call with Sneh, the founder.

Book a 15-minute call

Which languages do the APIs support?

Mira STT hears 10 Indian languages: Hindi, English, Gujarati, Marathi, Punjabi, Bengali, Tamil, Telugu, Kannada and Malayalam. Mira TTS speaks nine of them, all but Punjabi, and code-switches between Devanagari Hindi and Roman English in one sentence.

How is text to speech billed?

₹1.80 per 1,000 characters over HTTP, or ₹0.90 a minute the WebSocket is open, from a prepaid wallet. Pay as you go has 5 concurrent requests; Business has 25, with a ₹50,000 monthly commitment. All prices exclude GST.

Do I need to talk to sales?

No. Open the sandbox, add an email when you create a key, and start with ₹200 of credit. Talk to us when you need a dedicated endpoint or an SLA.

Does it work with the OpenAI SDK?

Yes. Mira TTS speaks OpenAI’s POST /v1/audio/speech protocol, Mira STT its POST /v1/audio/transcriptions and the language model its chat completions, so the OpenAI SDKs work with a new base URL and model name. The same key works for the rest of the v2 API.

How do I know a call has finished?

We POST a signed JSON event to your webhook URL at each step of a call. Exactly one final event arrives for every call: call.completed, call.voicemail, call.failed or call.aborted. It carries the call, what it cost and your wallet balance. Verify the X-Mirai-Signature header before you trust the body.

Is there a sandbox, and when do I move to production?

The sandbox at sandbox.voice.miraiminds.co places real calls at ₹5 a minute from ₹200 of starter credit. When your company goes live in the console you switch the base URL to prod.voice.miraiminds.co and use a production key; the routes are the same.

Get an API key with ₹200 of credit.

One key for speech, transcription and agents. ₹200 of credit to try them.

Talk with agent

Just your mic. No phone number.

  1. AI agents: Pay as you go is ₹5 a minute, with our phone line and call insights included. At volume, the ₹1,50,000 a month plan is ₹1 a minute, and ₹1.50 with our phone line (₹0.30) and call insights (₹0.20). Prices exclude GST.

Book a 15-minute call

With Sneh Mehta, founder · Google Meet

Loading the calendar…

Calendar by Cal.com New tab