Using Gemini for automatic translation in Loco
This bot uses Google's Generative Language API to perform batch translation of many (effectively separate) source strings. Thus it will behave more like a 'traditional' translation API.
Loco is not affiliated with Google, and is not charging for access to Gemini. You will need your own Google account and API key.
Configure a bot to use Gemini
- Navigate to the Bots tab wherever you see the :robot icon: in the Loco dashboard.
- Click "New bot", choose Gemini, and enter your Gemini API key into the first text field.
- Save the bot and it's ready to run. See also how to run a translation bot.
Steps for generating a Gemini API key
You can get a Gemini API key either via Google Cloud or Google AI Studio.
- From your Google Cloud console the process is the same as for Google Translate, except you select "Generative Language API".
- Alternatively - from Google AI Studio - go to the API keys section and click "Create API key".
Tip: We recommend you create an API key for use only in Loco, and restrict it to the Generative Language API and our IP range.
Model compatibility
Your bot will be configured to use gemini-2.5-flash-lite-preview-06-17
by default, but you can enter any model as long it supports text generation and can accept system instructions.
Note that this excludes the Gemma
models.