Using OpenAI for automatic translation in Loco
This bot uses OpenAI's Chat Completions API to perform batch translation of many (effectively separate) source strings. Thus it will behave more like a 'traditional' translation API, except with more opportunities to provide meaningful context.
Various language models are available including OpenAI's flagship GPT
series (made famous by ChatGPT).
Loco is not affiliated with OpenAI, and is not charging for access to ChatGPT. You will need your own OpenAI account and API key.
Configure a bot to use OpenAI
- Navigate to the Bots tab wherever you see the :robot icon: in the Loco dashboard.
- Click "New bot", select "OpenAI", and enter your OpenAI API key into the first text field.
- Enter a model if you don't want to use the default. (The default may change).
- Save the bot and it's ready to run. See also how to run a translation bot.
Steps for generating an OpenAI API key
- Sign up for an OpenAI account.
- Go to the API Keys section of the dashboard.
- Check you have sufficient credit for your needs in the billing section.
See our general recommendations for key security and note that your OpenAI key requires write access to use the Chat Completions API.
Model compatibility
Smaller, faster models are sufficient for most translation tasks and will save you money.
Your bot will be configured to use gpt-4.1-nano
by default, but you can enter any model as long as it's compatible with both the
Chat Completions API and
Structured Outputs.