// Developer API

Badini in your product, one request away.

The models that run iroj, behind an HTTPS API with a key. Ziman translates, the Badini voice speaks, and Guhdar writes down what was said. You pay for what you use, in euros.

Your first organisation starts with €5 of usage, valid for 30 days, before you pay anything.

Base URL
https://api.iroj.ai/v1
Authentication
A key, as a bearer token
Format
JSON in and out · multipart for files · audio as bytes
Billing
Prepaid, in EUR · failed calls cost nothing
api.iroj.ai/v1/translate

POST/v1/translate

{  "text": "Knowledge is power",  "source_language": "en",  "target_language": "bad",  "script": "both"}

200ziman-3.1

script · arab

زانین هێزە

latin

zanîn hêze

characters
18
cost
0.000360 EUR
paid_from
balance
A real request, and the shape of its answer.

// Who it is for

For software that has to read, write, speak or hear Badini.

A news site that publishes in both scripts. An app that reads its screens aloud. An archive of recordings that ought to be searchable. If Badini is part of what you are building, this is the work iroj does in its own app, callable from yours.

On your own

An individual account: one person, your name on the invoice. It can become a company account later.

As a company

A company name, tax number and address on the invoice, and several members, each with a role.

Something larger

Different limits, a fixed price or payment by invoice are agreed one by one.

Write to us

// The services

Four things it does.

Each is an endpoint under one base address. The samples are complete: put your key in the environment, paste one, and it runs.

Translate

POST /v1/translate

English and Badini, either way, in either script.

Send a string, or up to 50 of them, and get each back in the other language. Going into Badini you choose the script: Arabic, Latin, or both from the one request.

  • Up to 5,000 characters a request, counted across all the strings.

  • script is arab, latn or both. Both costs the same as one.

  • Billed by the characters you send, spaces included. There is no minimum.

  • With an Idempotency-Key header, a retry is the same call and not a second charge.

POST/v1/translate
curl https://api.iroj.ai/v1/translate \  -H "Authorization: Bearer $IROJ_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "text": "Knowledge is power",    "source_language": "en",    "target_language": "bad",    "script": "both"  }'
Response
{  "id": "trn_3f9a1c0b7d2e4a6f8b1c2d3e",  "object": "translation",  "model": "ziman-3.1",  "source_language": "en",  "target_language": "bad",  "translations": [    {      "text": "زانین هێزە",      "script": "arab",      "latin": "zanîn hêze"    }  ],  "usage": {    "characters": 18,    "cost": "0.000360",    "currency": "EUR",    "paid_from": "balance"  },  "request_id": "req_3f9a1c0b7d2e4a6f8b1c2d3e"}
The shape of the answer, with the figures the meter would give. The Badini is a real line from the project's proverb collection; the model's own wording of a sentence can differ.

Speech

POST /v1/speech

Text in, a Badini voice out.

Send text and the id of a voice, and get the recording back as MP3, WAV or raw PCM. GET /v1/voices lists the voices your key may name, and says of each whether it is synthetic.

  • Up to 5,000 characters a request, in Badini or English.

  • quality is best or fast. With response set to url you get a link, valid for six hours, instead of the bytes.

  • Billed by the characters you send. A request is charged as at least 100.

  • Cloning a voice is not offered through the API.

POST/v1/speech
# VOICE_ID: an id from GET /v1/voicescurl https://api.iroj.ai/v1/speech \  -H "Authorization: Bearer $IROJ_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "text": "زانین هێزە",    "voice": "VOICE_ID",    "language": "bad",    "format": "mp3"  }' \  --output speech.mp3
Response
HTTP/1.1 200 OKContent-Type: audio/mpegX-Request-Id: req_8b2c4d6e0f1a3b5c7d9e1f20X-Audio-Seconds: 0.92X-Characters-Billed: 100X-Cost: 0.004000X-Paid-From: balance<the audio, as bytes>
The audio comes back as bytes, and what it cost comes in the headers.

Transcription

POST /v1/transcriptions

A recording in, what was said out.

Send one audio file and get its text. Badini is written down by Guhdar, in Arabic script; English by an open speech recognition model. language is bad, en, or auto to let the API tell which.

  • One file a request, up to 10 minutes. A longer recording goes through a job.

  • Badini comes back in Arabic script, and a number that is spoken comes back in words.

  • Billed by the second of audio, rounded up. A request is charged as at least 10 seconds.

  • GET /v1/models gives the size limits in force.

POST/v1/transcriptions
curl https://api.iroj.ai/v1/transcriptions \  -H "Authorization: Bearer $IROJ_API_KEY" \  -F "file=@recording.mp3" \  -F "language=bad"
Response
{  "id": "tsc_5d7e9f1a3b5c7d9e1f203142",  "object": "transcription",  "text": "ڕاستبێژی باشترین رێ یە",  "language": "bad",  "script": "arab",  "model": "guhdar-1.0",  "duration_seconds": 2.31,  "usage": {    "audio_seconds": 10,    "cost": "0.001667",    "currency": "EUR",    "paid_from": "balance"  },  "request_id": "req_5d7e9f1a3b5c7d9e1f203142"}
The shape of the answer, with the figures the meter would give. The Badini is a real line from the project's proverb collection; the model's own wording of a sentence can differ.

Long jobs

POST /v1/jobs

Documents, audiobooks and long recordings.

Upload a file, start a job on it, and ask how it is doing. The price is worked out from the file when the job starts and set aside; it is settled when the job ends, and is never more than the estimate you were given.

  • A job that fails or is cancelled costs nothing.

  • When it is done, files lists each result with a signed link, valid for six hours.

  • A webhook can tell your server instead: job.completed, job.failed or job.cancelled.

  • With an Idempotency-Key header, a retry of the request is the same job.

The three jobs

  • A document, translateddocument_translation

    A PDF or a Word file, English and Badini either way, in the script you choose. In a PDF you can name the pages.

    Priced as Translation

  • A book, read aloudaudiobook

    A PDF or a Word file read in the voice you name. Set translate to true to put it into Badini first.

    Priced as Speech, plus translation when it is translated first

  • A recording, written downmedia_transcription

    An audio or video file, up to its first hour.

    Priced as Transcription

A scanned page has no text of its own, so it is read as a picture first, at a small price a page on top. Set scanned_pages to skip to leave scans out and pay nothing for them.

POST/v1/jobs
# 1. Upload the file: a PDF, a Word file or a recordingcurl https://api.iroj.ai/v1/files \  -H "Authorization: Bearer $IROJ_API_KEY" \  -F "file=@report.pdf"# 2. Start the job with the file's idcurl https://api.iroj.ai/v1/jobs \  -H "Authorization: Bearer $IROJ_API_KEY" \  -H "Content-Type: application/json" \  -H "Idempotency-Key: report-2026-10" \  -d '{    "type": "document_translation",    "file_id": "file_2a4c6e8f0b1d3f57",    "source_language": "en",    "script": "arab"  }'# 3. Ask how it is doing, until "status" is "done"curl https://api.iroj.ai/v1/jobs/job_8c1d2e3f4a5b6c7d \  -H "Authorization: Bearer $IROJ_API_KEY"
Response
{  "id": "job_8c1d2e3f4a5b6c7d",  "object": "job",  "type": "document_translation",  "status": "queued",  "progress": 0,  "stage": null,  "title": "report.pdf",  "estimate": {    "characters": 21480,    "cost": "0.429600",    "currency": "EUR"  },  "cost": null,  "files": [],  "files_deleted_at": null,  "error": null,  "request_id": "req_c4e6081a2c4e6f8091a3b5c7",  "created_at": "2026-10-13T09:12:44.000Z",  "finished_at": null,  "estimate_parts": [    {      "what": "Translation",      "units": 21480,      "unit": "characters",      "list_price": "0.429600"    }  ]}
The shape of the answer, with the figures the meter would give for a file of this size. The estimate is the most the job can cost.

// Languages and scripts

Two languages and two alphabets, said exactly.

The API works in English and in Badini, the Kurmanji of Duhok, Zakho and Amedi. Badini is written in two alphabets, and the API reads and writes both.

The codes you send

en

English

In and out of every service.

bad

Badini

Kurmanji as Duhok speaks it. Not Sorani.

arab

Arabic script

The Kurdish Arabic letters Duhok, Zakho and Amedi write in.

latn

Latin script

The Hawar alphabet, common online and abroad.

both

Both scripts

One request, both alphabets, at the price of one.

  • Translate

    TakesEnglish, or Badini in either script

    Gives backThe other language. Badini in Arabic script, Latin script, or both

  • Speech

    TakesBadini or English text

    Gives backA recording in the voice you named

  • Transcription

    TakesSpoken Badini or English

    Gives backBadini in Arabic script; English in English

What is not offered

  • Sorani

    A different Kurdish dialect that also uses Arabic letters. The API does not translate, speak or recognise it.

  • Other Kurmanji

    The Kurmanji of Turkey and Syria is close to Badini, but the models were not tuned on it and nothing is promised for it.

  • Arabic, the language

    The Arabic script here is Badini. Arabic itself is not translated.

  • Transcripts in Latin script

    Guhdar writes Arabic script only, and the API does not convert a transcript to Latin.

// The models

The models behind the API, and their known limits.

Translation and transcription run on iroj's own models, the versions in service on iroj.ai. Their known limits are below; the console's playground is the way to judge them on your own text.

Behind translationZiman 3.1

Translates between English, Badini & Sorani, in Kurdish or Latin script, and between the two scripts.

Behind transcription, for BadiniGuhdar 1.0

Writes down spoken Badini & Sorani, word by word with timings, in Kurdish script.

Behind speech

The Badini voice

The voice is a feature of the product rather than a model with a version, and the way to judge it is to listen: in the console's playground, or in iroj's own voice studio.

What GET /v1/voices says of each voice

idnamegenderlanguagedialectsyntheticdisclosuredefault

About the voice

What the numbers do not tell you

  • Ziman · No native-speaker review yet: no automatic check can tell Badini from the Kurmanji of Turkey or Syria.

  • Ziman · Long passages can drift and paraphrase. Check anything that matters with someone who reads Badini.

  • Guhdar · Clear, read speech is what it does best. Phone calls, noisy rooms and fast conversation are harder.

  • Guhdar · It has no digits to write with, so a number that is spoken comes out in words.

Every version, with its spec, its licence and its known limits, is on the Models page.

The Models page

// What it costs

Billing, in four lines.

Prices exclude tax.

The price list, the plans and a calculator

  1. 01

    Pay as you go

    A prepaid balance in euros. Each call takes its price from it. Top up from €10; there is no monthly fee.

  2. 02

    Start on the trial

    Your first organisation comes with €5 of usage, valid for 30 days.

  3. 03

    Or Enterprise

    For larger or steady volumes: a fee agreed with you, usage and limits sized to your traffic, a named contact, and payment by invoice. Write to contact@iroj.ai, or ask from the console.

Translation

€0.02

per 1,000 characters

Speech

€0.04

per 1,000 characters

Transcription

€0.01

per minute of audio

Failed calls are never charged. An error, a rate limit, or a model that cannot answer costs nothing. You pay for answers.

// The console

What you get when you sign up.

The console is where an organisation's keys, usage and money live, and where you watch what your calls did. It is in English.

  • Keys, with scopes and caps

    Up to 50 working keys. Give each only the scopes it uses, a monthly cap and, if you like, an expiry date. Rotate one with both keys working while you switch, or revoke it at once. A key is shown once; only its hash is stored.

  • A playground

    Translation, speech and transcription from a form, as real calls with one of your keys, charged like any other. It shows what the call cost, and the same request as curl, Python and JavaScript.

  • Usage by day, service and key

    Calls, units and what was charged over the period you choose, with a CSV export.

  • The request log

    One row for every call: when, which endpoint, how it ended, how long it took, the units, the cost and the request id. Never the text or the audio.

  • Jobs

    Every long job with how far it has got, what was estimated and what it cost in the end. Download the results, or stop a job that is still running.

  • Webhooks

    Signed messages to your own server when a job ends or the balance runs low. Each delivery is listed with how it went; send a test, or send a failed one again.

  • Billing, plans and invoices

    The balance and its top-ups, the plan, the overage switch and a spend cap. Each plan shows what your own usage would have cost on it. Every payment is a numbered invoice and every month has a statement, both made to print or save as PDF.

  • A team, its activity, and support

    Members with roles, invited by a link you pass on. A log of who did what. And support threads with iroj, with a mark on the menu when one has been answered.

iroj.ai/console/keys

API keys

Create a key

A key is shown once, when it is made.

  • production serverActive

    iroj_live_Ab3d…x9Qz

    TranslateSpeech

    This month

    €12.40 of €50.00

    Last used

    2 min ago

  • nightly jobsActive

    iroj_live_k2Lm…7QpZ

    Files and jobsRead usage and balance

    This month

    €3.10 no cap

    Last used

    yesterday

Rotate: a new key in its place · Revoke: stop it at once

The console's keys page, drawn rather than photographed. The page names are the console's own; the keys, amounts and times are made up.
A key's scopes
translatespeechtranscribejobsusage:read
A member's role
OwnerAdminDeveloperBillingViewer

Open the console

// How it behaves

What you would otherwise find out the hard way.

  • One shape for every refusal

    A type, a code that does not change once it is published, a sentence a person can read, and the request id.

  • 402 is money, 429 is speed

    Out of balance, or past a cap, is 402: trying again will not help. Too fast is 429, with Retry-After: trying again will.

  • A request id on everything

    X-Request-Id is on every response and in your request log. Send your own as X-Client-Request-Id and it is kept beside it.

  • Limits you can read

    X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset come back with a call, so a client can slow down before it is told to.

  • Safe to send twice

    With an Idempotency-Key, POST /v1/translate and POST /v1/jobs answer a repeat within a day with the first answer.

  • Additive inside /v1

    New fields and endpoints can appear in /v1. A change that would break your code would come as a new version.

A refusal
HTTP/1.1 402 Payment RequiredX-Request-Id: req_1b3d5f7092a4c6e8f0a1b2c3{  "error": {    "type": "billing_error",    "code": "insufficient_credits",    "message": "There is not enough balance for this request. Top up to go on.",    "param": null,    "request_id": "req_1b3d5f7092a4c6e8f0a1b2c3",    "doc_url": "https://docs.iroj.ai/errors#insufficient_credits"  }}

// The endpoints

What a key can call.

  • POST/v1/translate

    Translates text

    BilledBy the character

  • POST/v1/speech

    Turns text into speech

    BilledBy the character

  • GET/v1/voices

    Lists the voices your key may name

    BilledFree

  • POST/v1/transcriptions

    Writes down a recording of up to 10 minutes

    BilledBy the second of audio

  • POST/v1/files

    Takes a document or a recording for a job

    BilledFree

  • POST/v1/jobs

    Starts a long job

    BilledAs the service inside it

  • GET/v1/jobs/{id}

    Says where a job has got to, with its files when done

    BilledFree

  • POST/v1/jobs/{id}/cancel

    Stops a job; nothing is charged

    BilledFree

  • GET/v1/usage

    What you used, by day, service or key

    BilledFree

  • GET/v1/balance

    Balance, plan, what is left of it, and your limits

    BilledFree

  • GET/v1/models

    The models, their languages, limits, prices and scores

    BilledFree

  • GET/v1/health

    Answers that the API is reachable

    BilledFree

Every field of every endpoint is in the docs

// Not in this version

What the API does not do yet.

Said here so nobody finds out after building around it.

  • Chat

    The assistant in the app is not offered by API.

  • Streaming speech

    A recording comes back whole, not as it is spoken.

  • Live speech recognition

    There is no WebSocket; a recording is sent as a file.

  • Voice cloning

    The API speaks in the standard voices only.

  • SDKs

    The API is plain HTTPS, and the samples on this page are complete.

Make a first call.

Create an account, make a key, and paste one of the samples above. The trial covers it.

Using the API means agreeing to the API terms and the acceptable use policy.