What an AI engine is
An AI engine is an org-scoped, reusable configuration that defines how AI translates for you: which providers and models to use, how to sound, the rules to follow, and which terminology to honor. You set it up once and every AI translation — the per-key button, the bulk page, the API — runs through it, so the output stays consistent across projects. An engine composes each prompt from five layers, listed here from lowest to highest precedence. When two layers disagree, the higher one wins.
Because the glossary and TM layers sit at the top, AI and human translators see
the same terminology — see Glossary and
Translation Memory.
Providers, BYOK, and credits
An engine can use Anthropic (Claude), OpenAI, Google (Gemini), or DeepSeek. There are two ways to pay:- BYOK (bring your own key) — connect your own provider API key. Usage is free and unmetered by TextSetu; you’re billed by the provider directly.
- TextSetu platform keys — use TextSetu’s provider access, metered against a prepaid credit balance.
How AI translations land
AI writes respect the same approval workflow as human edits — review is a per-run choice, not a hard gate:- Approval on → AI translations land as proposals in the review queue, exactly like a translator’s edit. An approver can instead choose apply directly to publish them live.
- Approval off → AI translations go live immediately.
Running it
Per key
In the translations grid, use the Translate with AI button on a key to draft one or more languages for that key. How the result lands (live, proposal, or branch) follows the project’s AI-translation settings.In bulk
The bulk AI page translates many keys at once. Choose your target languages and narrow the work with filters:- Only untranslated — keys with no value yet in the target language.
- Only outdated — values flagged outdated because the source changed.
- By tag — restrict to keys carrying a tag.
- By key prefix — restrict to a scope of the key tree.
Cost control
Cost is the binding constraint, so TextSetu is conservative by default:- BYOK is free and unmetered.
- Platform runs are pre-flighted against your credit balance — a run you can’t afford is refused up front, never stopped mid-run partway through.
- Prices are versioned, so historical usage stays explicable after a price change.
Reports
TextSetu reports both usage and quality for AI translation — translations, spend, review scores, and response rate — broken down by provider, model, language, and engine, so you can see what each configuration costs and how well it performs.API & MCP
Everything above is automatable. The REST API exposes AI translation under/api/v1:
GET /projects/{projectId}/ai/engine— the resolved engine for a project and whether AI translation is available.POST /projects/{projectId}/ai/translations— start an async run (returns ajobId); supports the same filters, a?branch=target, and the approval behavior described above.GET /projects/{projectId}/ai/translations/{jobId}— poll a run’s status plus translated / skipped / failed counts.
ai_engine_info, ai_translate, and ai_translate_status.
Related: Translating · Approval Workflow · Branches · Glossary · Translation Memory

