
Anki
The open-source spaced-repetition flashcard app, with AI card generation via the Anki AI add-on.
What this is
Anki is a free, open-source flashcard app built around spaced repetition, widely used for language learning and exam prep. It has no built-in AI, but an add-on called Anki AI can generate definitions, example sentences and translations for your cards. By pointing it at TokenMix, you can run this on Claude, GPT or DeepSeek.
Before you start
- Install Anki from apps.ankiweb.net. It runs on Windows, macOS and Linux; add-ons work on the desktop app only.
- Sign up at tokenmix.ai, open the Console, go to API Keys, and create a key that starts with sk-tm-.
Install the Anki AI add-on
- In Anki, open Tools, then Add-ons, then Get Add-ons.
- Enter the code 643253121, click OK, then restart Anki. This is the Anki AI add-on; do not confuse it with other AI add-ons, some of which are locked to the official OpenAI endpoint.
Connect TokenMix
- Open Tools, Add-ons, select Anki AI, and open its config or settings dialog.
- LLM service: choose OpenAI.
- Model Name: enter a TokenMix model id, for example claude-sonnet-4.6.
- OpenAI API Key: paste your sk-tm- key.
- Base URL: enter https://api.tokenmix.ai/v1/chat/completions, the full path, not just /v1.
Check it works
Open a deck, run the add-on on a few cards, and check that it fills the fields you mapped. Sensible output means it is connected to TokenMix. You can see the spend in the TokenMix Console.
Common questions
Errors or no output: the Base URL must be the full https://api.tokenmix.ai/v1/chat/completions. A plain /v1 will not work with this add-on.
Which add-on: use Anki AI (code 643253121), which supports a custom Base URL. Some other AI add-ons only accept the official OpenAI endpoint and cannot reach TokenMix.
Which models to pick: for cards and language learning, Claude Sonnet 4.6, DeepSeek V4 Pro and Qwen 3.6 Flash are good starting points.