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.
scriptisarab,latnorboth. Both costs the same as one.Billed by the characters you send, spaces included. There is no minimum.
With an
Idempotency-Keyheader, a retry is the same call and not a second charge.
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" }'{ "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"}