Have you ever noticed how frustrating it is when learning a new word or phrase, you don't have access to an endless supply of real-life examples? This plugin solves that problem using AI! Each time, you will see new and relevant examples for the words and phrases you are studying. Currently, this plugin only supports English and simple cards either without formatting or with minimal formatting, where the word or phrase being studied is highlighted using <b> tags.
Anki AI Dynamic Cards is an add-on for Anki that dynamically generates example sentences related to words or phrases you are learning, using AI. This add-on provides a unique way to improve the effectiveness of memorizing new words and their usage in context, giving users the ability to practice real-world scenarios. These generated examples don't stored in database.
- OpenAI (GPT models)
- Google Gemini
- Google Gemma (Gemma models)
- Anthropic (Claude models)
- Grok (X.ai)
- DeepSeek
- OpenRouter (access to multiple models)
From Anki app (Qt6):
- Tools -> Add-ons -> Get Add-ons... -> code 895469405
- Restart Anki
- Select your AI provider and enter API key in the dialog box when prompted
-
- Original simple card (remains unmodified).

- The add-on takes the front of the card and uses AI to generate a new, unique sentence.

- Now you have a new unique sentence that includes the learnable word.

- You can generate a new example with the word by pressing "Next Example" if needed.

- These examples are generated in real-time and are not stored, ensuring you get a unique context for your words each time.
Add-on configuration:
{
"_default_models": {
"anthropic": "claude-haiku-4-5",
"deepseek": "deepseek-chat",
"google-gemini": "gemini-2.5-flash",
"google-gemma": "gemma-3-27b-it",
"grok": "grok-4-1-fast-non-reasoning",
"openai": "gpt-5-nano",
"openrouter": "openai/gpt-5-nano"
},
"_provider_options": "openai, google-gemini, google-gemma, anthropic, grok, deepseek, openrouter",
"_provider_urls": {
"anthropic": "https://api.anthropic.com/v1/messages",
"deepseek": "https://api.deepseek.com/chat/completions",
"google-gemini": "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions",
"google-gemma": "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions",
"grok": "https://api.x.ai/v1/chat/completions",
"openai": "https://api.openai.com/v1/chat/completions",
"openrouter": "https://openrouter.ai/api/v1/chat/completions"
},
"api_key": "",
"model": "",
"provider": "grok"
}
To install Anki AI Dynamic Cards manually, you need to download the add-on package from releases and install it manually. You can do this by following these steps:
- Download the add-on package from the release page
- Find out an Anki add-ons directory. In Anki, select Tools > Add-ons > View Files. This will open the Anki add-ons directory
- Extract the downloaded package
ai-dynamic-cards.ankiaddoninto the add-ons directory - Restart Anki
- Select your AI provider and enter API key in the dialog box when prompted
To install the addon directly from the sources you need:
- Clone the repo
- Find out an Anki add-ons directory. In Anki, select Tools > Add-ons > View Files. This will open the Anki add-ons directory
- Restart Anki
- Select your AI provider and enter API key in the dialog box when prompted
Quick setup:
- Open Tools ƒ+' AI Dynamic Cards Settings
- Choose a provider
- Paste your API key
- (Optional) Set a model; leave empty to use the provider's default
- Click Save
You can configure the add-on in two ways:
- Settings Dialog: Tools → AI Dynamic Cards Settings
- Standard Anki Config: Tools → Add-ons → Select add-on → Config
Configuration options:
provider: AI provider (openai,google-gemini,google-gemma,anthropic,grok,deepseek,openrouter)api_key: Your API key for the selected providermodel: (optional) Specific model to use. If empty, uses default model for provider
To build the .ankiaddon package from source code:
Compress-Archive -Path '__init__.py', 'manifest.json', 'config.json' -DestinationPath 'ai-dynamic-cards.zip' -Force
Rename-Item 'ai-dynamic-cards.zip' 'ai-dynamic-cards.ankiaddon' -Forcezip ai-dynamic-cards.ankiaddon __init__.py manifest.json config.json__init__.py- main addon codemanifest.json- addon metadataconfig.json- default configuration
After building, install via: Tools → Add-ons → Install from file...
To use Anki AI Dynamic Cards, you need to create a deck with cards that contains just a one word or phrase you want to memorize. Anki AI Dynamic Cards will automatically generate an example sentence for the word you are learning. You can then review the card as usual.