
Tarkib is a free, open-source Anki add-on and AI flashcard generator for German, English and Spanish. Type one word and you get a full card with the translation, example sentences, grammar, a photo and audio.
It runs on your own API key. The default is Groq, which is free and needs no credit card, so for most people Tarkib costs nothing.
Why I made it
I've been using Anki for a few years to learn languages. Making one card by hand took me ten to fifteen minutes: I typed everything, made the audio with a separate TTS tool, found and uploaded an image, then asked an AI if my example sentence was even correct. As a developer, I built this add-on to do those slow parts for me. Now I type one word, pick the language, the level and the translation language (or two), and Tarkib builds the whole card, plus a cloze card if I want one.

What you get on one card
On a German card:
- The meaning, translated into your language.
- A casual sentence (usually with du) and a formal one (usually with Sie), both translated, so you learn when to use the word.
- Article, plural and genitive (from B1) for nouns. Present, past and perfect for verbs, with the real past form of strong verbs.
- When a sentence uses a preposition, it comes with its case, like
warten auf (+Akk) or Angst vor (+Dat), at every level, A1 too. A grammar pattern is only kept if it really appears in your sentences.
- A photo, a couple of emojis, and German audio. The translations are read aloud only if you turn on their voices in Settings, Languages.
- An optional cloze card where you type the missing word, in a Cloze subdeck.
On an English card, the sentences contrast everyday words and contractions with formal words (get and receive), the patterns are the ones English learners need (depend on, interested in, look forward to + -ing, phrasal verbs), and the word line shows only what has to be learned: irregular verbs and plurals, uncountable nouns.
On a Spanish card, the casual sentence uses tΓΊ and the formal one usted, the patterns are the ones Spanish learners need (pensar en, depender de, tener que + infinitivo, es importante que + subjuntivo), and the word line shows a noun with its article and plural, or a verb with its yo form, preterite and participle, irregular ones included (tener, tengo, tuvo, tenido). The cloze card can drill ser and estar, or por and para.
English and Spanish cards get their audio, photo and cloze card as German cards do. Tarkib also asks "Did you mean ...?" when you mistype, and warns you before you add a word that is already in the deck.
German, English and Spanish
Pick the language of the card in the Language row, above the deck. English cards go to their own deck, "Tarkib English", and Spanish cards to "Tarkib Spanish", unless you pick another, and every deck remembers the language of its cards. English cards use American spelling, or British spelling when a British voice reads them. Spanish cards use the Spanish of Spain, or Latin American Spanish when a Latin American voice reads them.
Levels and languages
Pick A1 to C1, where the language stays clean and fits your level (in German: Besprechung, not Meeting), or Native for how people really talk, Denglisch included in German. The translation can be in any of 24 languages, plus an optional second one. German and Spanish cards start in English. English cards cannot be translated into English, so their list has German instead: they use your German cards' translation language until you pick their own, and if that is English, the Tarkib window asks you to pick one. Each language keeps its own voice and translation languages in Settings, and you can play a sample of every voice first. Arabic translations use Modern Standard Arabic.
The free Microsoft Edge voices need no key. You can also let Azure AI Speech, ElevenLabs, OpenAI, Google Cloud or Gemini read your cards with your own key, with the free voices as the backup. In Settings, Voice, the speech speed can be slower, about 20 percent, at A1 and A2 or at every level, for the language you learn. The translations keep the normal speed.
Your style
In Settings, Cards, you can write a few wishes in any language: the topics, names, tone or length you want, for example "examples about cooking and travel, short sentences". While "Use my style" is ticked in the Tarkib window, Tarkib sends them with every card, in every language. The level and the card's rules stay as they are.
Ready-made German decks (A1 is free)

Rather not make your German cards yourself? I also made German vocabulary decks, A1 to C1, in the same card format: a picture, German audio, casual and formal sentences, the grammar pattern with its case when the sentence has one, and a typing card. Meanings in English or Arabic. The cards were made with Claude, Anthropic's AI, then reviewed and fixed by a person, card by card, over several rounds. The audio comes from a licensed voice service, and the pictures are licensed too.
Get the whole A1 level for free (305 word cards plus 304 typing cards). The English edition is also on AnkiWeb Shared Decks. The other levels are in my Ko-fi shop. You could build them yourself with Tarkib, but A2 to C1 is 1,814 word cards: on the free Groq plan, which allows a few dozen cards a day, that takes well over a month, and every card still needs checking. The paid levels are those cards already made and reviewed. The add-on itself stays free.
Set up your free keys (about 5 minutes)
There is no paid version, no account with me and no server of mine in between. The code is MIT licensed, except one small file from edge-tts, which stays LGPL-3.0. You use your own keys, and the two below are free.
The setup guide on the Tarkib website shows every step with screenshots, from installing the add-on to your first card. The short version:
Groq, the AI that writes your cards (required)
- Go to console.groq.com/keys and sign in with Google, GitHub or your email. No credit card is needed.
- Click Create API Key, type any name (for example Anki) and click Submit.
- Click Copy. The key starts with
gsk_ and is shown only once.
- In Anki: Tools, "Add a card with Tarkib", click Settings, paste the key into API key and press Save. If it says it is loading models, wait for the list, then press Save once more.
Pixabay, photos for your cards (optional, recommended)
- Make a free account at pixabay.com (with Google, Facebook or your email) and log in.
- Open pixabay.com/api/docs. Your key is in the key (required) row under Search Images.
- Copy it. In Tarkib's Settings, open the Images tab, paste it into Pixabay key and press Save.
Then click Test keys once, type a word and press Add. Next time, Ctrl+Shift+G (Cmd+Shift+G on a Mac) opens Tarkib directly.
Without a photo key, cards try a free keyless source that often finds nothing. Pexels has paused new API keys: a Pexels key you already have still works, in the Pexels key field.
The free Groq key has a daily limit, enough for a few dozen cards a day. Tarkib tells you when you reach it, and you can wait until the next day or pick another model in Settings.
If you already have a key for OpenAI, Google Gemini, Anthropic's Claude, Mistral or OpenRouter, or you run Ollama on your own computer, you can use that instead. A ChatGPT subscription does not include API use. The OpenAI API is billed separately.
What is sent where
Your word, any hints, your style wishes when "Use my style" is ticked, the deck name and the prompt go to the AI provider you chose, with your key. The keys stay on your computer in Anki's add-on config, are never synced, and each one only goes to its own service. Image search words go to the photo sites you have keys for, and to Openverse as a last resort. The words you learn go to the voice service that reads them, Microsoft's Edge read-aloud service by default, and a translation does too when its voice is on. The Edge service is not an official API, so if it changes, cards are still made, Tarkib tells you why one has no sound, and a voice service with your own key can take over. Nothing is sent to me.
Phones and tablets
Add-ons only run on Anki for desktop, so you make the cards there, but they sync and study normally on AnkiDroid and AnkiMobile. On AnkiDroid, if the typing box on the cloze card gets no keyboard, turn on Settings, Advanced, "Type answer into the card" and restart AnkiDroid.
Please check your cards
The cards are written by a language model, so they are sometimes wrong, mostly with rare words. Look over each card after it is added and edit it like any other note. One Undo removes a card and its cloze card together. I still check each card myself.
Requirements
Anki 23.10 or newer on Windows, macOS or Linux, and an internet connection. Nothing else to install.
Tarkib adds two note types, "Tarkib" and "Tarkib Cloze". If you already have note types with those names, please rename yours first.
Source code and support
Source code, bugs and questions: github.com/saadel123/tarkib
Tarkib is free and stays free. If it saves you time, you can leave a tip at ko-fi.com/tarkib. The Tarkib window has a small support link and a link to the free A1 deck at the bottom, which points to all levels once you have one of the decks. After your fifth card a short note about the decks appears a few times inside the window, and its x hides it for good. One line at the bottom of the Settings "Cards" tab points to the decks. While no AI key is set, the setup message also says that the free A1 deck needs no key. The decks teach German, so these deck pointers show only while the window or Settings is on German. A short thank-you appears at 50, 200 and 500 cards, and you can turn it off.