Orange Voice

Documentation

Everything Orange Voice does, as an API: for your own code, for SDKs written for OpenAI, and for AI agents.

Sign in

Overview

Orange Voice is speech for every Indian language and Indian English: text to speech, live streaming speech, speech to text, voice cloning, voice design, a voice changer, dubbing of audio and video, and long-form stories with many voices. Everything in the studio on this site is also an API, and AI agents can use it directly.

API addresshttps://orange-api.imutechz.in
AuthenticationAuthorization: Bearer ov_pat_... (a personal access token)
FormatJSON in and out, multipart/form-data for files; audio links in answers are short-lived
Machine-readableOpenAPI 3.1 · llms.txt · MCP manifest
Supportsupport@imutechz.in

Quick start

  • Sign in or create an account. Every signed-in account gets a free allowance each month: 2,000 characters of speech and 60 seconds of audio for speech to text and the voice changer.
  • Open Personal access tokens and create a token. Pick its scopes and when it expires. Copy it: it is shown once.
  • Keep it in an environment variable, for example ORANGE_TOKEN, on your server. Never put it in a web page or an app.
  • Make your first request:
curl -X POST "https://orange-api.imutechz.in/v1/tts" \
  -H "Authorization: Bearer $ORANGE_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: audio/mpeg" \
  -d '{"text": "Namaskar! Aaj ka mausam bahut achha hai.", "voice_id": "orange", "lang": "hinglish"}' \
  --output hello.mp3

The answer has a short-lived audioUrl, the characters counted and your usage. Send Accept: audio/mpeg (as in the cURL example) to get the audio bytes directly.

Authentication and tokens

Every request sends a personal access token in the Authorization header:

HTTP
Authorization: Bearer ov_pat_3f9a1c2b7d4e_kQ...

A token looks like ov_pat_<id>_<secret>. The part ov_pat_<id> is its prefix, shown in your token list so you can tell tokens apart; only a fingerprint of the full token is stored, so a lost token cannot be shown again: create a new one.

Scopes

A token may only do what its scopes allow. Anything else is refused with 403 INSUFFICIENT_SCOPE before any work is done or counted.

ScopeAllows
speechText to speech: POST /v1/tts, the WebSocket stream, POST /v1/audio/speech
transcribeSpeech to text: POST /v1/stt, POST /v1/audio/transcriptions
voices:readList languages and voices, voice details, previews, the clone prompt
voices:writeClone, design, rename, save and delete voices (also allows everything voices:read does)
convertVoice changer: POST /v1/convert
dubDubbing: POST /v1/dub
storiesStories: create, read, edit, delete and render
account:readUsage, history, jobs and plan status

GET /v1/jobs/{id} works with any of dub, stories, voices:write or account:read, so a token that starts a job can also follow it. Keys made before scopes existed keep every scope.

Expiry

Choose 7, 30, 90 or 365 days, or never. An expired token is refused with 401 INVALID_API_KEY and a message that says when it expired.

Rotating a token

  • Create a new token with the same scopes.
  • Deploy it to your server or agent.
  • Check its Last used time on the tokens page.
  • Revoke the old token. Anything still using it stops at once.

Limits on tokens

  • Up to 10 active tokens per account.
  • Tokens cannot create or revoke tokens and cannot download the app; those need you signed in on this site.
  • Too many wrong tokens from one address in a minute are answered with 429 RATE_LIMITED for a minute.

Managing tokens

POST/v1/tokens

The tokens page uses these calls with your signed-in session (a token cannot call them).

FieldTypeAbout
namestringUp to 60 characters
scopesarrayAny of the scopes above; default all
expires_in_daysinteger or null7, 30, 90, 365, or null for never
Answer of POST /v1/tokens (201)
{
  "id": "3f9a1c2b7d4e",
  "name": "My server",
  "prefix": "ov_pat_3f9a1c2b7d4e",
  "key": "ov_pat_3f9a1c2b7d4e_kQ...",
  "scopes": [
    "speech",
    "voices:read"
  ],
  "expiresAt": "2027-02-13T09:30:00+00:00",
  "createdAt": "2026-11-15T09:30:00+00:00"
}

GET /v1/tokens lists { id, name, prefix, scopes, createdAt, lastUsedAt, expiresAt, expired, revokedAt } and DELETE /v1/tokens/{id} revokes one.

Text to speech

POST/v1/tts scope: speech

Turns text into speech. Counts characters (letters, digits, spaces and punctuation; tags are not counted).

FieldTypeAbout
textstringUp to 1,000 characters per request. Expression tags are free and not counted
voice_idstringFrom GET /v1/voices. Default orange
langstringLanguage code (see Languages). Default the voice's own language
speednumber0.5 to 2.0, default 1
pitchnumberSemitones, -12 to 12, default 0
formatstringmp3 (default), wav or opus
tagsarrayOptional styles for the whole text, for example ["calm"] (up to 20)
Answer (JSON)
{
  "audioUrl": "https://orange-api.imutechz.in/v1/files/users/.../outputs/1a2b.mp3?e=...",
  "format": "mp3",
  "durationMs": 2840,
  "characters": 41,
  "usage": {
    "used": 1241,
    "limit": 40000,
    "left": 38759,
    "periodEnd": "2026-12-14T00:00:00+00:00",
    "renews": true
  },
  "requestId": "9f2c...",
  "historyId": "h_...",
  "spokenText": "Namaskar! ...",
  "lang": "hinglish",
  "voiceId": "orange"
}

With Accept: audio/mpeg (or audio/wav, audio/ogg) the answer is the audio itself, with headers X-Request-Id, X-Characters, X-Audio-Seconds, X-Usage-Used, X-Usage-Limit and X-Usage-Left.

Streaming (WebSocket)

WS/v1/tts/stream scope: speech

For live use: audio leaves sentence by sentence while the rest is still being made.

  • Connect to wss://orange-api.imutechz.in/v1/tts/stream. Send your token as a token field in your first message (tokens in the URL are not accepted, because addresses end up in logs).
  • Send a JSON message with the fields of POST /v1/tts (text, voice_id, lang, speed, pitch) and format: mp3 or pcm (16-bit, 24,000 Hz, mono). A first message with only a token is answered {"type": "ready"}.
  • Audio arrives as binary messages, then one text message {"type": "done", "characters", "durationMs", "usage", "requestId", "format", "sampleRate"}.
  • Send more text messages on the same connection; each is counted on its own.
  • Errors arrive as {"type": "error", "error": {"code", "message"}}; the connection stays open unless the token is refused (close code 4401).
  • Send {"type": "close"} to finish.
const ws = new WebSocket("wss://orange-api.imutechz.in/v1/tts/stream");
ws.binaryType = "arraybuffer";
const chunks = [];
ws.onopen = () => ws.send(JSON.stringify({ token: ORANGE_TOKEN, text: "Hello! [pause] This arrives sentence by sentence.", voice_id: "orange", format: "mp3" }));
ws.onmessage = (e) => {
  if (typeof e.data !== "string") { chunks.push(e.data); return; }      // audio
  const msg = JSON.parse(e.data);
  if (msg.type === "done") { console.log("counted", msg.characters); ws.send(JSON.stringify({ type: "close" })); }
  if (msg.type === "error") console.error(msg.error.code, msg.error.message);
};

Expression tags

Put tags in the text in square brackets, [happy], or angle brackets, <laugh>. Spaces are fine: [long pause]. Tags are never counted as characters.

KindTagsWhat happens
Feelings and deliveryneutral, happy, sad, angry, excited, calm, tender, serious, surprised, scared, sarcastic, proud, nervous, affectionate, teasing, scolding, pleading, shy, devotional, storyteller, newsreader, filmy, sing-song, auntie, tapori, whisper, shout, soft, fast, slow, emphasis, smileChanges speed, pitch, loudness and intensity for the words after it, until the next feeling tag. </whisper> goes back to how the text started.
Pausespause (0.4 s), short pause (0.2 s), long pause (1 s), breath (0.25 s)Silence at that point
Soundslaugh, chuckle, giggle, sigh, gasp, cry, sniff, cough, clears throat, yawn, hmm, tskA short breath of silence where the sound goes
Anything elseRemoved: not spoken and not counted

Pauses are capped. All the silence in one request may total at most 1 second plus 1 second for every 15 spoken characters. Longer pauses are shortened in proportion, so tags can never turn a short text into minutes of audio.

Example
[storyteller] Ek din, Kolkata mein, baarish ho rahi thi. [long pause] [whisper] Phir kisi ne darwaza khatkhataya. <gasp> [excited] Arre, tum!

Languages

GET/v1/languages scope: voices:read

The 22 scheduled languages of India, Indian English, and the Roman-letter mixes people type every day. en and english also mean en-IN; speech to text and dubbing also take auto.

CodeLanguageScript
en-INEnglish (India)Latin
hiHindiDevanagari
bnBengaliBengali
mrMarathiDevanagari
hinglishHinglish: Hindi in Roman lettersLatin
banglishBanglish: Bengali in Roman lettersLatin
teTeluguTelugu
taTamilTamil
guGujaratiGujarati
knKannadaKannada
mlMalayalamMalayalam
orOdiaOdia
paPunjabiGurmukhi
asAssameseBengali
urUrduPerso-Arabic
maiMaithiliDevanagari
kokKonkaniDevanagari
neNepaliDevanagari
sdSindhiPerso-Arabic
doiDogriDevanagari
ksKashmiriPerso-Arabic
mniManipuri (Meitei)Meitei Mayek
brxBodoDevanagari
satSantaliOl Chiki
saSanskritDevanagari

Write text in the language's own script, or in Roman letters for hinglish and banglish (typed Hindi or Bengali is converted before it is spoken). Which features work for each language right now is in GET /v1/languages:

Answer
{
  "languages": [
    {
      "code": "bn",
      "name": "Bengali",
      "script": "Bengali",
      "wave": 1,
      "features": {
        "tts": true,
        "clone": true,
        "stt": true,
        "translate": true
      },
      "voices": 4
    }
  ]
}

Voices

GET/v1/voices scope: voices:read

The Orange voice, the voice library (speakers from many regions) and your own cloned and designed voices.

FieldTypeAbout
langqueryLanguage code
genderqueryfemale or male
agequeryyoung, adult or senior
stylequeryFor example narration, conversational
regionqueryFor example Kolkata, Lucknow
qqueryWords to search for
minequery1 = only your voices
savedquery1 = only voices you saved
kindqueryorange, library, clone or designed
Voice object
{
  "id": "orange",
  "name": "Orange",
  "kind": "orange",
  "lang": "en-IN",
  "languages": [
    "en-IN",
    "hi",
    "bn",
    "hinglish",
    "banglish"
  ],
  "gender": "female",
  "age": "adult",
  "region": "Kolkata",
  "style": [
    "conversational"
  ],
  "description": "...",
  "previewUrl": "https://...",
  "mine": false,
  "saved": false,
  "visibility": "public",
  "featured": true,
  "createdAt": "..."
}
CallDoes
GET /v1/voices/{id}One voice
GET /v1/voices/{id}/previewIts preview (audio/mpeg; library voices need no token)
POST /v1/voices/{id}/saveSave a library voice to My voices; DELETE the same path removes it
PATCH /v1/voices/{id}Your voice: { name?, description? }
DELETE /v1/voices/{id}Delete your voice

Cloning a voice

POST/v1/voices/clone scope: voices:write

Makes a voice from a short recording of one person. Needs a paid plan; the listening is counted as seconds of audio.

FieldTypeAbout
audiofile6 to 60 seconds of one speaker, clear, no music (the first 15 seconds are used)
consentstringtrue: the consent checkbox, "I confirm this is my own voice, or I have the speaker's permission, and I agree to the terms." Required.
namestring1 to 60 characters
langstringLanguage of the sample, default en-IN
transcriptstringOptional: what the sample says
genderstringOptional: female or male
descriptionstringOptional

Consent rules

  • Clone only your own voice, or a voice whose speaker has given you permission.
  • Send consent=true: it stands for the checkbox above, and the time, your account and the wording version are kept with the voice. No consent recording is needed or kept.
  • GET /v1/voices/clone/prompt?lang=bn gives a passage to read (a different one each call; English, Hindi, Bengali and Marathi, the last three in English letters) and the checkbox text.
  • Cloned voices are always private to your account. Only a trimmed clip of the sample (at most 15 seconds) is kept, and it is deleted with the voice.
  • Each plan keeps a set number of cloned voices: Zest 1, Tangerine 3, Blood Orange 10. At the limit the clone is refused with 403 CLONE_LIMIT and nothing is counted.
  • Read the acceptable use policy.
cURL
curl -X POST "https://orange-api.imutechz.in/v1/voices/clone" \
  -H "Authorization: Bearer $ORANGE_TOKEN" \
  -F audio=@sample.wav -F consent=true \
  -F name="Riya" -F lang=bn

Answer: 201 with the new Voice object.

Designing a voice

POST/v1/voices/design scope: voices:write

Describe a voice in words and get three candidates to choose from. Needs a paid plan.

FieldTypeAbout
descriptionstring3 to 500 characters: who is speaking, age, region, mood, pace
langstringLanguage the voice speaks
genderstringOptional: female or male
textstringOptional: the line the previews say

Answer: 202 { designId, jobId, job, choices }. When the job is done, result.candidates has each candidate's previewUrl. Keep one with POST /v1/voices/design/{cid}/keep and { name }.

Speech to text

POST/v1/stt scope: transcribe

Multipart form. Any audio or video file up to 60 minutes. Counts seconds of audio.

FieldTypeAbout
audiofileAudio or video
langstringLanguage code, or auto (default)
diarizebooleanTell speakers apart (default false)
timestampsbooleanSegment times (default true)
formatstringjson (default), txt, srt or vtt
Python
import os, requests

r = requests.post(
    "https://orange-api.imutechz.in/v1/stt",
    headers={"Authorization": "Bearer " + os.environ["ORANGE_TOKEN"]},
    files={"audio": open("meeting.mp3", "rb")},
    data={"lang": "auto", "diarize": "true"},
)
r.raise_for_status()
for s in r.json()["segments"]:
    print(f"[{s['start']:.1f}-{s['end']:.1f}] {s['speaker']}: {s['text']}")
Answer (format json)
{
  "text": "...",
  "lang": "hi",
  "duration": 62.4,
  "segments": [
    {
      "start": 0.0,
      "end": 3.2,
      "text": "...",
      "speaker": "S1"
    }
  ],
  "speakers": 2,
  "exports": {
    "txt": "...",
    "srt": "...",
    "vtt": "..."
  },
  "usage": {
    "used": 120,
    "limit": 10800
  },
  "requestId": "..."
}

Transcription formats

formatYou get
jsonThe object above, with all three exports inside
txtPlain text
srtSubRip subtitles (00:00:01,000 --> 00:00:03,200)
vttWebVTT subtitles (text/vtt)

The OpenAI-compatible route adds text and verbose_json; see Using Orange with AI agents.

Voice changer

POST/v1/convert scope: convert

Multipart form. The same words, timing and feeling in another voice. Up to 120 seconds; counts seconds of audio.

FieldTypeAbout
audiofileSpeech to change
voice_idstringTarget voice
langstringOptional, auto by default

Answer: { audioUrl, format: "mp3", durationMs, text, lang, usage, requestId, historyId }.

Dubbing

POST/v1/dub scope: dub

Multipart form. Transcribes, translates and re-voices audio or video into another language, up to 10 minutes. Needs a paid plan; counts seconds of audio. Starts a job.

FieldTypeAbout
mediafileAudio or video (video comes back as video with the new audio)
target_langstringLanguage to dub into
source_langstringOptional, auto by default
voice_idstringOptional: a voice for the dub. Left out, the speaker's own voice is kept

Answer: 202 { job, jobId, usage }. The finished job's result is { url, kind: "audio" | "video", transcript, translation, lang, durationMs }.

Stories

POST/v1/stories scope: stories

Long-form projects: chapters of lines, each line with a speaker, a voice and a feeling. Saving is free; rendering counts the characters of what is rendered and needs a paid plan.

Story (POST /v1/stories, PUT /v1/stories/{id})
{
  "title": "Baarish",
  "lang": "hinglish",
  "speakers": [
    {
      "name": "Narrator",
      "voice_id": "orange"
    },
    {
      "name": "Riya",
      "voice_id": "hi_delhi_1"
    }
  ],
  "chapters": [
    {
      "title": "One",
      "lines": [
        {
          "speaker": "Narrator",
          "text": "Ek din, baarish ho rahi thi.",
          "emotion": "storyteller",
          "pause": 0.5
        },
        {
          "speaker": "Riya",
          "voice_id": "hi_delhi_1",
          "text": "Arre, chhata kahan hai?",
          "emotion": "surprised"
        }
      ]
    }
  ]
}
RuleLimit
ChaptersUp to 200
LinesUp to 2,000 in a story; up to 5,000 characters each
CharactersUp to 100,000 in a story
pauseSilence after a line, 0 to 2 seconds (default 0.35)
SilenceAll pauses together may not exceed 1 second plus 1 second per 15 characters
CallDoes
GET /v1/stories{ stories: [Story] }
GET /v1/stories/{id}One story with { id, characters, lastJobId, createdAt, updatedAt }
PUT /v1/stories/{id}Save changes
DELETE /v1/stories/{id}Delete
POST /v1/stories/{id}/render{ format?: mp3 | wav, chapter?: index } -> 202 { job }

A render reads the story as it was when you started it; edits made afterwards go into the next render. The finished job's result is { url, durationMs, characters, chapters: [{ title, startMs }] }.

Jobs

GET/v1/jobs/{id} scope: dub, stories, voices:write or account:read

Dubbing, story renders and voice design run as jobs. Poll every 2 seconds until the status is done or failed.

statusMeaning
queuedWaiting for a free worker
runningWorking; progress goes from 0 to 1
doneFinished; result holds the links
failedStopped; error says why. What it counted is given back
Job
{
  "id": "j_...",
  "kind": "dub",
  "status": "running",
  "progress": 0.42,
  "message": "Translating",
  "result": null,
  "error": null,
  "createdAt": "...",
  "updatedAt": "..."
}

Result links are fresh each time you read the job. GET /v1/jobs lists your latest 50 jobs.

History and usage

GET/v1/usage scope: account:read

CallAnswer
GET /v1/history?kind=&limit={ items: [{ id, kind: tts | stt | convert | dub | story, title, lang, voiceId, characters, seconds, audioUrl, createdAt }] }
DELETE /v1/history/{id}{ ok: true } (the audio file is deleted too)
GET /v1/usage{ periodStart, periodEnd, products: [{ product, unit, used, limit, left }], recent: [{ day, characters, seconds }] }
GET /v1/subscription{ active, status, free, plan, currentPeriodStart, currentPeriodEnd, renews, usage }

Errors

Every error has an HTTP status and the same body:

Error
{
  "error": {
    "code": "MONTHLY_LIMIT_REACHED",
    "message": "This request needs 1,200 characters but only 800 of this month's 2,00,000 are left. Your limit resets on 14 Dec 2026 (UTC). Nothing was counted.",
    "details": {
      "requested": 1200,
      "used": 39200,
      "limit": 40000,
      "left": 800,
      "resetsAt": "2026-12-14T00:00:00+00:00",
      "unit": "characters"
    }
  }
}
CodeStatusMeansWhat to do
VALIDATION400A field is missing or wrong. The message names the field.Fix the request.
INVALID_API_KEY401No token, a wrong, revoked or expired token, or an ended session.Check the header; create a new token if it expired.
SUBSCRIPTION_REQUIRED402The free allowance does not cover this (cloning, design, dubbing, stories) or is used up.Pick a plan on the pricing page.
SUBSCRIPTION_INACTIVE402The paid plan ended.Pay for another period on the dashboard.
INSUFFICIENT_SCOPE403The token lacks the scope. details.required lists what would work.Create a token with that scope.
NOT_FOUND404No such item, or it is not yours, or a link has ended.Check the id; ask for a fresh link.
DUPLICATE_REQUEST409This Idempotency-Key was used before.Use a new key for a new request.
LANGUAGE_NOT_VOICED422This voice cannot speak that language.Pick a voice made for it (GET /v1/voices?lang=...).
MONTHLY_LIMIT_REACHED429This request would go past this month's limit. details: requested, used, limit, left, resetsAt, unit.Wait for resetsAt, or send less.
RATE_LIMITED429Too many requests a minute, or the service is busy.Wait for the Retry-After seconds, then retry.
INTERNAL500It failed on our side. Nothing was counted.Retry with a new Idempotency-Key; write to support if it keeps happening.
SERVICE_NOT_LIVE503The service is briefly unavailable. Nothing was counted.Retry in a minute; see the status page.

A request that fails is never counted. Messages are written for people: you can show them to your users as they are.

Idempotency

Send an Idempotency-Key header (up to 64 letters, digits and _ . : -) on any request that does paid work: speech, speech to text, voice changer, cloning, design, dubbing and story renders.

  • Keys are single use. A second request with a key you already used is refused with 409 DUPLICATE_REQUEST: it is not done again and not counted again.
  • So a retry after a network failure is safe: either the first request went through (and the retry is refused), or it did not (and the retry is done once).
  • If the first request failed on our side, the retry with the same key says so; send it again with a new key.
  • Keys are tied to your account, so they can never clash with anyone else's.
HTTP
Idempotency-Key: order-1182-greeting

Rate limits and plan limits

Plans

Free (signed in)Zest, Rs 29 once, 7 daysTangerine, Rs 199 a monthBlood Orange, Rs 599 a month
Speech (text to speech, stories)2,000 characters a month15,000 characters2,00,000 characters a month10,00,000 characters a month
Audio (speech to text, voice changer, dubbing, cloning)60 seconds a month30 minutes5 hours a month20 hours a month
Cloned voicesNone1310
Voice design, dubbing, storiesNot includedIncludedIncludedIncluded
The Orange appNot includedIncludedIncludedIncluded
Requests per minuteStandardStandardStandard3 times the standard
Queue (dubbing, stories, design)NormalNormalNormalFirst
Commercial use of the audioNoNoYesYes

Zest is once per account and does not renew. Each Tangerine or Blood Orange payment buys 30 days; paying again adds 30 days after the paid ones. A bigger plan starts at once with fresh limits (unused time is not credited); a smaller one starts when the paid time ends. The free allowance resets on the first of each month (UTC); a paid plan resets each period. At a limit, requests are refused with 429 MONTHLY_LIMIT_REACHED and nothing extra is ever charged. GET /v1/usage shows what is left; GET /v1/plans lists the plans (no sign-in needed).

Per request

WhatMost
Text to speech1,000 characters
A story100,000 characters, 2,000 lines
Speech to text60 minutes
Voice changer120 seconds
Dubbing10 minutes
Clone sample6 to 60 seconds
Upload100 MB

Rates

  • 30 requests a minute for each token (and for your signed-in session).
  • Over that, 429 RATE_LIMITED with a Retry-After header in seconds.
  • When many requests are waiting, new ones may get 429 with Retry-After: 5.
  • Audio and file links in answers work for about 5 minutes. Download what you want to keep.

Using Orange with AI agents

Orange Voice speaks the Model Context Protocol, so Claude, Cursor, VS Code and any other MCP client can use it as a set of tools. Make a token for the agent with only the scopes it needs.

MCP addresshttps://orange-api.imutechz.in/mcp
TransportStreamable HTTP (POST, JSON answers)
AuthenticationAuthorization: Bearer ov_pat_...
Manifesthttps://orange-api.imutechz.in/.well-known/mcp.json

Claude Code

Terminal
claude mcp add --transport http orange-voice https://orange-api.imutechz.in/mcp \
  --header "Authorization: Bearer ov_pat_YOUR_TOKEN"

Claude Desktop

Add this to claude_desktop_config.json (Settings, Developer, Edit config), then restart Claude. It needs Node.js.

claude_desktop_config.json
{
  "mcpServers": {
    "orange-voice": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://orange-api.imutechz.in/mcp",
        "--header",
        "Authorization:${ORANGE_AUTH}"
      ],
      "env": {
        "ORANGE_AUTH": "Bearer ov_pat_YOUR_TOKEN"
      }
    }
  }
}

Cursor

In ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

mcp.json
{
  "mcpServers": {
    "orange-voice": {
      "url": "https://orange-api.imutechz.in/mcp",
      "headers": {
        "Authorization": "Bearer ov_pat_YOUR_TOKEN"
      }
    }
  }
}

VS Code

In .vscode/mcp.json; VS Code asks for the token once and keeps it safe:

.vscode/mcp.json
{
  "servers": {
    "orange-voice": {
      "type": "http",
      "url": "https://orange-api.imutechz.in/mcp",
      "headers": {
        "Authorization": "Bearer ${input:orange-token}"
      }
    }
  },
  "inputs": [
    {
      "id": "orange-token",
      "type": "promptString",
      "description": "Orange Voice token",
      "password": true
    }
  ]
}

Any MCP client

Point it at the address above with the Authorization header. In code:

import asyncio, os
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client

async def main():
    headers = {"Authorization": "Bearer " + os.environ["ORANGE_TOKEN"]}
    async with streamablehttp_client("https://orange-api.imutechz.in/mcp", headers=headers) as (read, write, _):
        async with ClientSession(read, write) as s:
            await s.initialize()
            print([t.name for t in (await s.list_tools()).tools])
            r = await s.call_tool("speak", {"text": "Namaskar!", "language": "hinglish"})
            print(r.structuredContent["audioUrl"])

asyncio.run(main())

Tools

ToolScopeTakesGives
speakspeechtext, voice, language, speed, pitch, format, include_audioaudioUrl (about 5 minutes), durationMs, characters, usage
list_voicesvoices:readlanguage, gender, query, mine, limitvoices
list_languagesvoices:readlanguages with script and features
transcribetranscribeaudio_url or audio_base64, language, diarizetext, lang, duration, segments
convert_voiceconvertaudio_url or audio_base64, voice, languageaudioUrl, durationMs, text
clone_voicevoices:writeaudio_* and consent_url / consent_base64, name, language, transcriptthe new voice
create_storystoriestitle, language, speakers, chaptersstory id, characters
render_storystoriesstory_id, format, chapterjob
dubdubmedia_url or media_base64, target_language, source_language, voicejob
get_job(the job's)job_idstatus, progress, result
usageaccount:readthis month's usage and limits
  • Every tool counts usage, follows your plan limits and refuses a repeated idempotency_key exactly like the API.
  • Audio inputs are an https audio_url (public addresses only, no redirects) or the file as audio_base64 (up to about 30 MB). Orange's own result links work as inputs too.
  • A refused call comes back as a tool error with the code and message, for example INSUFFICIENT_SCOPE or MONTHLY_LIMIT_REACHED, so the agent can explain it.

OpenAI-compatible endpoints

Code written for OpenAI's audio API works by changing the base address and the key.

from openai import OpenAI

client = OpenAI(api_key="ov_pat_YOUR_TOKEN", base_url="https://orange-api.imutechz.in/v1")

speech = client.audio.speech.create(model="tts-1", voice="alloy", input="Namaskar! Kemon achho?",
                                    extra_body={"language": "banglish"})
speech.write_to_file("hello.mp3")

text = client.audio.transcriptions.create(model="whisper-1", file=open("hello.mp3", "rb"),
                                          response_format="verbose_json")
print(text.text, text.duration)

POST /v1/audio/speech

FieldTypeAbout
modelstringAny value (tts-1, gpt-4o-mini-tts, ...); ignored
inputstringThe text, up to 1,000 characters
voicestringSee the mapping below
response_formatstringmp3 (default), wav or opus
speednumber0.5 to 2.0
languagestringOrange extra: a language code; default the voice's language

Answer: the audio bytes. Voice mapping: OpenAI's names (alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer, verse, marin, cedar) all use the Orange voice; any Orange voice id (from GET /v1/voices) uses that voice.

POST /v1/audio/transcriptions

FieldTypeAbout
filefileAudio or video
modelstringAny value (whisper-1, ...); ignored
languagestringOptional: en, hi, bn, ta ... or any Orange code
response_formatstringjson (default) { text }, text, srt, vtt, or verbose_json { language, duration, text, segments }

Same tokens (scopes speech and transcribe), the same limits and the same errors as the rest of the API.

llms.txt and OpenAPI

AddressWhat it is
https://orange-api.imutechz.in/llms.txtA short guide for AI agents: authentication, endpoints, examples
https://orange-api.imutechz.in/v1/openapi.jsonOpenAPI 3.1 description of every public endpoint, for code generators and agent frameworks
https://orange-api.imutechz.in/.well-known/mcp.jsonWhere the MCP server is and how to authenticate

Generate a client from the OpenAPI document with any OpenAPI generator, or give the llms.txt address to an agent so it learns the API itself.

SDK-style snippets

Small helpers you can paste into a project. They keep the token on your server and turn errors into exceptions.

import os, time, requests

class Orange:
    def __init__(self, token=os.environ.get("ORANGE_TOKEN"), base="https://orange-api.imutechz.in"):
        self.base, self.s = base, requests.Session()
        self.s.headers["Authorization"] = "Bearer " + token

    def _ok(self, r):
        if r.status_code >= 400:
            e = r.json()["error"]
            raise RuntimeError(f"{e['code']}: {e['message']}")
        return r

    def speak(self, text, voice="orange", **kw):
        return self._ok(self.s.post(self.base + "/v1/tts", json={"text": text, "voice_id": voice, **kw},
                                    headers={"Accept": "audio/mpeg"})).content

    def transcribe(self, path, **form):
        with open(path, "rb") as f:
            return self._ok(self.s.post(self.base + "/v1/stt", files={"audio": f}, data=form)).json()

    def wait(self, job_id):
        while True:
            j = self._ok(self.s.get(f"{self.base}/v1/jobs/{job_id}")).json()
            if j["status"] in ("done", "failed"):
                return j
            time.sleep(2)

orange = Orange()
open("hi.mp3", "wb").write(orange.speak("Namaste!", lang="hinglish"))

Changelog

DateChange
15 Nov 2026Plans: Free, Zest (Rs 29 once, 7 days), Tangerine (Rs 199 a month), Blood Orange (Rs 599 a month); GET /v1/plans; clone count per plan; cloning consent is a checkbox (consent=true), no consent recording; random reading passages. Personal access tokens with scopes and expiry (older keys keep every scope). MCP server at /mcp. OpenAI-compatible /v1/audio/speech and /v1/audio/transcriptions. Public OpenAPI 3.1, llms.txt and the MCP manifest. Free allowance for every signed-in account: 2,000 characters and 60 seconds of audio a month. Orange plan audio raised to 3 hours a month.
14 Nov 2026Orange Studio API: languages, voice library, cloning with consent, voice design, speech to text with speakers and subtitles, voice changer, dubbing, stories, jobs, history and usage. Streaming speech over WebSocket. Expression tags.
EarlierText to speech with the Orange voice in Indian English, Hindi, Bengali, Hinglish and Banglish.