Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/kurdishtts-com:kurdishtts-com-tts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Kurdish & STT TTS API
version: 1.2.0
summary: Text-to-speech and speech-to-text HTTP API for the Kurdish language (Sorani, Kurmanji & Badini).
description: 'Public developer API for Kurdish text-to-speech (TTS) and speech-to-text (STT). TTS covers Sorani (Central Kurdish, Arabic script), Kurmanji (Northern Kurdish, Latin script) and Badini/Behdinî (Northern Kurdish written in the Arabic script). STT covers Sorani and Kurmanji only — there is no Badini transcription model.
**Authentication.** All endpoints except `GET /api/get-speakers` require an API key sent in the `x-api-key` header. TTS and STT use **separate key spaces** — a TTS key will not authenticate against the STT endpoints and vice-versa. Generate keys at https://www.kurdishtts.com/settings/api.
**One TTS model.** Every synthesis request is rendered by V5. `model_version` does not choose a model or an engine — it chooses which **speaker group** your `speaker_id` is resolved in: `v3` (198 speakers), `v4` (664), or `v5` (20 curated, the six `badini_` speakers, plus the 13 Cast and Studio speakers on plans bought for the API). The groups share no IDs. A `badini_` id is the one exception to sending `model_version` yourself: it exists in no other group, so it resolves on v5 whatever you send. v3 and v4 are permanent selectors, not a deprecated path; existing integrations keep their current value and speaker IDs.
**Gotchas worth knowing before you integrate:**
- `speed` uses the industry-standard convention (higher = faster); it is clamped to 0.25–4.0.
- `model_version` accepts `v3`, `v4`, or `v5` and defaults to `v3` when omitted. Because the groups share no IDs, send it explicitly — a `v4` speaker id with no `model_version` is resolved against `v3` and refused.
- An UNKNOWN `model_version` returns 403 naming your plan, not 422. A speaker outside the selected group returns 400 under `v5` but 403 under `v3`/`v4`.
- `/api/tts-stream` progressively streams SSE or raw PCM at 24 kHz. Its legacy WAV option is buffered.
- The `websocket_url` returned by `/api/stt-stream-connect` is temporary and does not carry your API key.
**AI agents.** The same TTS and STT are also exposed over the Model Context Protocol at https://www.kurdishtts.com/api/mcp (Streamable HTTP; `Authorization: Bearer `), with the tools `synthesize_speech`, `transcribe_audio`, `start_streaming_transcription`, `list_voices`, `list_dialects` and `get_plan`. `list_voices`, `list_dialects` and `get_plan` need no API key. Setup guide: https://www.kurdishtts.com/docs/guides/claude-kurdish-voice.'
contact:
name: Kurdish TTS
url: https://www.kurdishtts.com/contact
servers:
- url: https://www.kurdishtts.com
description: Production
security: []
tags:
- name: TTS
description: Text-to-speech
paths:
/api/tts-proxy:
post:
tags:
- TTS
summary: Synthesize Kurdish speech from text
operationId: synthesizeSpeech
description: Convert Kurdish text to speech. Returns `audio/wav` by default (`audio/ogg` or `audio/mpeg` when `format` is `opus` or `mp3`), or a JSON payload with base64 audio and word-level timestamps when `include_timestamps` is true. The dialect is derived automatically from the `speaker_id` prefix (`sorani_…` / `kurmanji_…` / `badini_…`). Send `dialect` explicitly only for the Cast and Studio speakers, which have no prefix and read either Sorani or Kurmanji; pairing one with `badini` is refused with a 400 rather than returning wrong-dialect audio.
security:
- TtsApiKey: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TtsRequest'
examples:
basic:
summary: Basic Sorani synthesis (works on a free key)
description: speaker_id must belong to the group named by model_version. sorani_85 is one of the four voices a FREE plan may render on v3.
value:
text: سڵاو، چۆنیت؟
speaker_id: sorani_85
model_version: v3
v4WithTimestamps:
summary: V5 rendering with the v4 voice catalog and word timestamps
value:
text: Silav, tu çawa yî?
speaker_id: kurmanji_236
model_version: v4
include_timestamps: true
responses:
'200':
description: Synthesized audio. `audio/wav` by default, `audio/ogg` (Opus) or `audio/mpeg` (MP3) when `format` is set; `application/json` (with base64 audio + timestamps) when `include_timestamps` is true.
content:
audio/wav:
schema:
type: string
format: binary
audio/ogg:
schema:
type: string
format: binary
audio/mpeg:
schema:
type: string
format: binary
application/json:
schema:
$ref: '#/components/schemas/TtsTimestampsResponse'
'400':
description: Bad request (missing speaker_id, text too long, invalid speed).
content:
text/plain:
schema:
type: string
'401':
description: Missing or invalid API key.
content:
text/plain:
schema:
type: string
'403':
description: Plan inactive, character quota exceeded, or speaker/model not allowed on your plan.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Backend parameter validation error. The `detail` array carries the specific messages.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationError'
/api/tts-stream:
post:
tags:
- TTS
summary: Stream Kurdish speech from text
operationId: streamSpeech
description: Render with V5 and return audio progressively as SSE or raw PCM. `model_version` selects the speaker group your `speaker_id` is resolved in, not a model or engine. The legacy WAV format remains available as a buffered compatibility response.
security:
- TtsApiKey: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TtsStreamRequest'
responses:
'200':
description: SSE events, raw 16-bit mono PCM at 24 kHz, or a buffered WAV response according to `stream_format`.
content:
text/event-stream:
schema:
type: string
audio/pcm:
schema:
type: string
format: binary
audio/wav:
schema:
type: string
format: binary
'400':
description: Missing field or invalid stream format.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid TTS API key.
'403':
description: Plan inactive, quota exceeded, or voice/catalog not included in the plan.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: Voice roster temporarily unavailable; request was refused rather than bypassing entitlement checks.
components:
schemas:
Error:
type: object
properties:
error:
type: string
detail:
type: string
upgrade_url:
type: string
ValidationError:
type: object
description: FastAPI-style validation error forwarded from the model backend.
properties:
detail:
type: array
items:
type: object
properties:
loc:
type: array
items:
type: string
msg:
type: string
type:
type: string
TtsTimestampsResponse:
type: object
description: Returned when `include_timestamps` is true.
properties:
audio:
type: string
description: Base64-encoded PCM audio.
timestamps:
type: array
description: Word-level timestamps.
items:
type: object
properties:
word:
type: string
start:
type: number
end:
type: number
sample_rate:
type: integer
examples:
- 24000
audio_duration:
type: number
generation:
type: object
description: 'What the server actually did. Treat `collapsed: true` as a failed generation even on HTTP 200.'
properties:
collapsed:
type: boolean
seed_used:
type: integer
temperature_used:
type: number
retries_used:
type: integer
chunk_count:
type: integer
TtsRequest:
type: object
required:
- text
- speaker_id
properties:
text:
type: string
description: Text to synthesize. Max 500 chars on the free plan, 5000 on paid plans.
maxLength: 5000
speaker_id:
type: string
description: Voice id from /api/get-speakers, e.g. `sorani_85` or `kurmanji_6` in the default v3 group. The dialect is derived from the prefix. Groups share no IDs — pass the same `model_version` here and to /api/get-speakers. Free plans render only sorani_85, sorani_214, kurmanji_6, kurmanji_12 on v3 (sorani_1, sorani_986, kurmanji_236, kurmanji_233 on v4), plus badini_story_m and badini_narrator_f on v5 — the only v5 ids a free key may render.
examples:
- sorani_85
- kurmanji_6
dialect:
type: string
enum:
- sorani
- kurmanji
- badini
description: Reading language. Inferred from the speaker_id prefix when it has one, so send it only for the Cast and Studio speakers, which have none. A Cast or Studio speaker paired with badini is refused with a 400.
model_version:
type: string
enum:
- v3
- v4
- v5
default: v3
description: Speaker group the speaker_id is resolved in; not a model or engine choice. Every value renders on V5. The v5 group requires a paid API plan, except the two free Badini voices; its Cast and Studio speakers require a plan bought for the API. A badini_ id always resolves on v5 whatever you send here, because it exists in no other group.
include_timestamps:
type: boolean
default: false
description: When true, return JSON with base64 audio + word-level timestamps instead of audio/wav.
format:
type: string
enum:
- wav
- opus
- mp3
default: wav
description: Container for the binary audio response. `wav` = 24 kHz PCM WAV; `opus` = Ogg/Opus at 24 kHz (`audio/ogg`, roughly 10–15× smaller than WAV, ideal for mobile data); `mp3` = 24 kHz MP3 (`audio/mpeg`). Ignored when `include_timestamps` is true — that response is JSON with base64 PCM.
speed:
type: number
minimum: 0.25
maximum: 4.0
description: Playback speed, industry convention (higher = faster). Clamped to 0.25–4.0.
temperature:
type: number
description: Optional generation control forwarded to V5. Omit for the engine default; mutually exclusive with `stability`.
stability:
type: number
description: Optional compatibility control; mutually exclusive with `temperature`.
top_p:
type: number
description: Optional advanced generation control forwarded to V5.
repetition_penalty:
type: number
description: Optional advanced generation control forwarded to V5.
seed:
type: integer
description: Optional reproducibility control.
pitch:
type: number
description: Post-processing pitch shift.
silence_trim:
type: boolean
description: 'Post-processing: trim leading/trailing silence.'
chunk_max_seconds:
type: number
description: Optional maximum seconds per synthesis chunk.
sentence_silence_ms:
type: integer
description: Optional silence inserted between sentences, in milliseconds.
TtsStreamRequest:
type: object
required:
- text
- speaker_id
properties:
text:
type: string
maxLength: 5000
description: Text to synthesize. Max 500 characters on free plans and 5000 on paid plans.
speaker_id:
type: string
description: Speaker id from the group selected by `model_version`. The groups share no IDs, so the two fields must agree.
dialect:
type: string
enum:
- sorani
- kurmanji
- badini
description: Reading language. Inferred from the speaker_id prefix when it has one, so send it only for the Cast and Studio speakers, which have none. A Cast or Studio speaker paired with badini is refused with a 400.
model_version:
type: string
enum:
- v3
- v4
- v5
default: v3
description: Speaker group the speaker_id is resolved in; not a model or engine choice. Every value renders on V5.
stream_format:
type: string
enum:
- sse
- pcm
- wav
default: sse
description: SSE and PCM are progressive. WAV is a buffered compatibility response.
include_timestamps:
type: boolean
default: false
description: For SSE, emit per-chunk word timestamp events and include the cumulative list in the final event.
speed:
type: number
minimum: 0.25
maximum: 4.0
description: Playback speed; higher is faster.
temperature:
type: number
seed:
type: integer
securitySchemes:
TtsApiKey:
type: apiKey
in: header
name: x-api-key
description: 'TTS API key (key space: TTS). Generate at /settings/api.'
SttApiKey:
type: apiKey
in: header
name: x-api-key
description: 'STT API key (key space: STT — separate from TTS). Generate at /settings/api.'
externalDocs:
description: Human-readable API reference with copy-paste curl, Python and JavaScript examples
url: https://www.kurdishtts.com/docs/api