LLM Card Fill

AnkiWeb addon 2043082246

Queries Anthropic or OpenAI APIs with custom prompts to fill Anki note fields, supporting batch updates, card creation, and per-note-type configurations.
AI-generated summary; may contain mistakes.

card-creationainote-management

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
2 (👍 1 · 👎 1)
Updated
2026-09-24
Anki versions
26.09~
License
MIT (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-09-24 (38 days before the snapshot).
  • Test files: 3.
  • GitHub Actions workflows: 3.
  • Commits in the last year: 6.
  • Issues: 0 open, 2 closed.
  • Pull requests: 0 open, 0 merged.
  • Median first response: 306 hours (2 answered issues and pull requests).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
25.0226.09+2026-09-24
History across monthly snapshots

Loading…

Similar addons

OmniPrompt-Anki

Generates AI-powered flashcard content such as definitions, translations, and explanations from multiple cloud or local providers, with reusable prompts, batch processing, and multi-field output.

card-creationainote-managementformattingshortcuts

7 votes 65% approval 👍 7 · 👎 0 ⭐ 9 Anki 2.1.66~ Updated 2026-04-23

Description

Anki LLM Card Fill

Example usage

This addon can query an LLM API with the prompt you specify, and update the fields based on the generated response.

Addon can be configured using "LLM Card Fill" menu in the main bar.

To use it you will need to get an API key from one of the model providers. Currently Anthropic and OpenAI are supported. Link to where to get the key is included next to the key field.

Example prompt I use for generating Japanese sentences:

  • Given the card with fields:

    • Word
    • Hint
    • Hint translation
  • Prompt:

    I'm learning Japanese and I want you to help me by writing example sentence for word "{Word}".
    Please put furigana after every kanji in square brackets like so: 読[よ]む
    Also, put a space before every kanji. Do not put a space before words that do not require furigana.
    Here is an example of correctly formatted sentence:
    日本[にほん]では 食事[しょくじ]の 後[あと]にお 茶[ちゃ]を 飲[の]むことが 多[おお]いです。
    
  • Field Descriptions:

    Hint: An example sentence using the word in Japanese
    Hint translation: English translation of the example sentence
    

After saving the configuration, you can use the shortcut (Ctrl+A by default) or option in the submenu to update the card once it comes up for review. You can also update the note from editor window using the "LLM" button or update multiple notes at once using the right-click menu.

To debug your prompt you can select an example card to see what exactly will be sent to the LLM. You can also make the request and see response using Debug Dialog.

  • Supports configurations for multiple note types
  • Supports creating cards from input

Differences from other addons

This addon is simpler than existing alternatives, but has the following advantages:

  • AnkiBrain - No external dependencies, can use your own keys, without installing stuff separately.
  • SmartNotes - Can use your own API keys

README

Anki LLM Card Fill

Addon Page

Example usage

This addon can query an LLM API with the prompt you specify, and update the fields based on the generated response.

Addon can be configured using "LLM Card Fill" menu in the main bar.

To use it you will need to get an API key from one of the model providers. Currently Anthropic and OpenAI are supported. Link to where to get the key is included next to the key field.

Example prompt I use for generating Japanese sentences:

  • Given the card with fields:

    • Word
    • Hint
    • Hint translation
  • Prompt:

    I'm learning Japanese and I want you to help me by writing example sentence for word "{Word}".
    Please put furigana after every kanji in square brackets like so: 読[よ]む
    Also, put a space before every kanji. Do not put a space before words that do not require furigana.
    Here is an example of correctly formatted sentence:
    日本[にほん]では 食事[しょくじ]の 後[あと]にお 茶[ちゃ]を 飲[の]むことが 多[おお]いです。
    
  • Field Descriptions:

    Hint: An example sentence using the word in Japanese
    Hint translation: English translation of the example sentence
    

After saving the configuration, you can use the shortcut (Ctrl+A by default) or option in the submenu to update the card once it comes up for review. You can also update the note from editor window using the "LLM" button or update multiple notes at once using the right-click menu.

To debug your prompt you can select an example card to see what exactly will be sent to the LLM. You can also make the request and see response using Debug Dialog.

  • Supports configurations for multiple note types
  • Supports creating cards from input

Differences from other addons

This addon is simpler than existing alternatives, but has the following advantages:

  • AnkiBrain - No external dependencies, can use your own keys, without installing stuff separately.
  • SmartNotes - Can use your own API keys

Development

Create a virtual environment with your preferred method. e.g. for conda:

conda create -n anki-llm-card-fill python=3.9

Activate the environment:

conda activate anki-llm-card-fill

Install the dependencies:

pip install -r ".[dev]"

Since Anki doesn't install dependencies automatically, we should keep them to a minimum.

Finally, link/copy the anki_llm_card_fill directory to relevant place on your system.

TODO

  • [x] Add config upgrader code
  • [x] Add ability to fill in multiple cards
  • [x] Handle each field to be filled individually
  • [x] Add card creation feature
  • [ ] Add schema support
  • [ ] Add audio and images
  • [ ] Request functionality
  • [ ] Global prompt
  • [ ] Refactor code
  • [ ] Update examples
  • [ ] Change card creation to use thread worker as well and unify with update worker
  • [x] Add rate limit handling
  • [x] Add OpenRouter support
  • [ ] Implement Batch API requests
  • [x] Fix bug where create-only fields disappear after config save.
  • [ ] Refactor how llm clients are configured
  • [ ] Add option to run llm complete on card addition