English and Hebrew
Choose the narration's language, a voice that speaks it, and which options apply to each language.
Send language on creation (and on a preview): "he" (the default, so older integrations are unchanged) or "en". The language is stored with the narration: every correction and regeneration keeps it, and it is never sent again. GET /narrations/{narration_id} and every revision manifest show it.
The voice must speak the language. Each voice in GET /voices lists its languages; GET /voices?language=en lists only English voices (without language the list is the Hebrew voices, and language=all lists every voice). A voice that doesn't speak the narration's language is refused with 400 voice_language_mismatch before anything is created or charged.
Credits are the same in both languages: one credit per character of the text (expressions are not counted).
curl -s "https://kolimina.com/api/public/v1/voices?language=en" \
-H "Authorization: Bearer $KOLIMINA_API_KEY"curl -s -X POST "https://kolimina.com/api/public/v1/narrations" \
-H "Authorization: Bearer $KOLIMINA_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: first-narration-1" \
-d '{"voice_id": "voice_…", "language": "en", "text": "Hello! Welcome to Kolimina."}'{"error": {"code": "voice_language_mismatch", "message": "This voice does not speak English. Choose a voice whose languages include \"en\" (GET /voices?language=en).", "field": "voice_id", "request_id": "req_…"}}English: sent as written
An English narration is sent to the voice exactly as you wrote it. Nothing is corrected or rewritten: there is no pronunciation dictionary, no Nikkud, no number or verb gender. Write numbers, dates and abbreviations the way they should be read.
Audio tags such as [whispers] work as in Hebrew, with "input_format": "kolimina_markup_v1" (see Expressions and niqqud). The text is split at sentence ends and line breaks - not after a decimal point or a common abbreviation such as Dr. or e.g. - or you send your own sentences[].
A preview of an English narration has no correction stage: its sentences are the units exactly as they will be sent (normalization is always unchanged).
- The Hebrew-only options are refused, never silently ignored: text_gender → 422 unsupported_for_language; the website's Hebrew markers, such as a Hebrew label in round parentheses → 422 effects_not_in_english.
- A text that is clearly Hebrew → 422 script_language_mismatch (a Hebrew name or a short Hebrew phrase inside English text is fine). Send it as a Hebrew narration instead.
{"error": {"code": "unsupported_for_language", "message": "text_gender applies to Hebrew narrations only (it sets the gender of numbers and verbs); leave it out when language is \"en\".", "field": "text_gender", "request_id": "req_…"}}Hebrew: Kolimina's text preparation
A Hebrew narration (no language, or "he") goes through the same preparation as on kolimina.com before it is voiced: your pronunciation dictionary → Kolimina's pronunciation store → the gender layer → the language model. Words you vocalize yourself (Nikkud) are kept as you wrote them.
text_gender ("masculine" by default, or "feminine") sets the gender of numbers and verbs in a Hebrew text, and the website's Hebrew markers work next to the audio tags. These examples are Hebrew on purpose - the options exist only for Hebrew:
curl -s "https://kolimina.com/api/public/v1/voices" \
-H "Authorization: Bearer $KOLIMINA_API_KEY"curl -s -X POST "https://kolimina.com/api/public/v1/narrations" \
-H "Authorization: Bearer $KOLIMINA_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: first-narration-1" \
-d '{"voice_id": "voice_…", "text": "שלום, זו הקריינות הראשונה שלי."}'curl -s -X POST "https://kolimina.com/api/public/v1/narrations" \
-H "Authorization: Bearer $KOLIMINA_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: hebrew-gender-1" \
-d '{"voice_id": "voice_…", "text": "קיבלתם 3 הודעות חדשות.", "text_gender": "masculine"}'