Translate your cards — without touching the originals.
Duplicate selected Anki notes and generate clean, predictable translations using AI.
No overwriting, no surprises — your original cards stay exactly as they are.
Key features
• Duplicates selected notes into the Default deck
• Translates specified fields (default: Front / Back)
• Supports OpenAI and Google Gemini (configurable)
• Fully customizable prompt, languages, and models
• <img> tags are preserved exactly (never translated or moved)
• API keys via config or environment variables
How to use
Select notes in the Anki Browser, then run:
Edit → AI Translate Selected Notes
Each note is duplicated, and translations are written only to the duplicate.
Design philosophy
• Never modify original notes
• No hidden automation or background rewriting
• Predictable, duplication-based workflow
• Safe handling of HTML and media
This add-on is optimized for users who rely on the default
Front / Back note type,
but field names can be customized to match any template.
Configuration
Access via:
Tools → Add-ons → AI Card Translator (Full Version) → Config
You can configure:
• Provider (openai / gemini)
• API keys and models
• Source / target field names
• Source / target languages
• Translation prompt
==================================================
API Key Required
This add-on uses external AI services and requires your own API key.
Supported providers include OpenAI and Google Gemini.
No API key is included or provided by this add-on.
How to Set the API Key (Environment Variable)
macOS
Run the following command in Terminal:
launchctl setenv OPENAI_API_KEY your_api_key_here
or for Gemini:
launchctl setenv GEMINI_API_KEY your_api_key_here
Restart Anki after setting the variable.
Windows
- Open "Environment Variables" from System Settings.
- Add a new user variable:
Variable name: OPENAI_API_KEY or GEMINI_API_KEY
Variable value: your_api_key_here
- Restart Anki after saving.
Once set, the add-on automatically detects the key on startup.
==================================================
Source code
GitHub: https://github.com/yuwayanagitani/translator-ai-2
==================================================
Supports
This tool is built to support medical students and residents.
Support via thumbing up 👍 on this page and Buy Me a Coffee ☕ motivates me a lot!!