Skip to main content

AI Provider Setup

Set up local or cloud AI to automatically correct and improve your dictated text.

AI Setup

FiavaionDictate can automatically clean up your dictated text — fixing grammar, smoothing out run-on sentences, and catching words the speech engine got wrong. This is optional. Dictation works fine without it.

When AI correction is on, each time you pause with Ollama (or when you say ai correct this), your text is sent to whichever AI provider you have configured, and the corrected version is shown alongside the original so you can accept or reject it.


Your Four Options at a Glance

Ollama (Local)Google GeminiAnthropic ClaudeOpenAI GPT
Privacy100% on your machineSent to GoogleSent to AnthropicSent to OpenAI
CostFreeFree tier availablePaidPaid
Setup Time5–15 min2 min2 min2 min
QualityGood (model-dependent)ExcellentExcellentExcellent
Works offlineYesNoNoNo
Best forPrivacy, no ongoing costMost people starting outLong-form, nuanced writingGeneral use

Our recommendation for most people: Start with Ollama if you’re comfortable installing software, or Google Gemini if you want the easiest setup. Gemini has a free API key with no credit card required.


Option 1: Ollama (Local, Free, Private)

Ollama is a free, open-source tool that lets you run AI language models on your own computer. When you use Ollama with FiavaionDictate, nothing you dictate is ever sent anywhere — the AI correction happens entirely on your machine.

Install Ollama

Download from ollama.com/download and run the installer. Ollama works on Windows, Mac, and Linux.

After installation, Ollama runs as a background service and listens at http://localhost:11434. You don’t need to open Ollama manually — it starts with your machine.

Choose a Model

ModelDownload SizeSpeedBest For
Gemma 3 4B~3 GBFast, recommendedQuick corrections, most everyday tasks
Llama 3.2 3B~2 GBLightest optionOlder or lower-spec machines
Mistral 7B Instruct~5 GBBetter writing qualityComplex writing, long documents

Not sure? Start with Gemma 3 4B. It’s the model the wizard recommends.

Pull the Model

Open a terminal (Command Prompt on Windows, Terminal on Mac/Linux) and run:

ollama pull gemma3:4b

For Llama 3.2 instead:

ollama pull llama3.2:3b

For Mistral:

ollama pull mistral:7b-instruct

The first pull downloads the model — allow 5–15 minutes depending on your connection. After that, the model is cached locally and starts in under a second.

Verify FiavaionDictate Detects It

Once Ollama is running and you have at least one model pulled, open FiavaionDictate. The AI status badge in the header shows whether Ollama is connected.

Click the LOCAL toggle in the bottom bar to use Ollama as your AI provider, and pick your model from the model dropdown in the header.

Adding More Models Later

You can pull additional models at any time:

ollama pull <model-name>

FiavaionDictate checks Ollama regularly, so new models appear in the model dropdown without a restart.

To see all models you have installed:

ollama list

Option 2: Google Gemini (Free API Key)

Gemini is a good choice if you don’t want to install Ollama or if you’re on a machine without much RAM. Google offers a free tier for its API keys; the wizard describes it as needing no credit card.

Why Gemini First

The free tier has rate limits set by Google, which can change them. The setup wizard describes the free plan as 10 requests per minute and 250 per day.

Get Your Free API Key

  1. Go to aistudio.google.com/apikey
  2. Sign in with a Google account
  3. Click Create API Key
  4. Copy the key (it starts with AIza...)

Check Google’s own terms for what the free tier includes and when billing applies.

Available Models

  • Gemini 2.5 Flash (default)
  • Gemini 2.5 Flash Lite
  • Gemini 2.5 Pro
  • Gemini 3 Flash (Preview)

Add the Key to FiavaionDictate

  1. Click the gear button in the header to open AI Provider Settings
  2. Open the Google tab
  3. Paste your key into the API key field
  4. Choose your model
  5. Click TEST CONNECTION, then SAVE

With Remember key in browser ticked, the key is encrypted and stored in your browser, so you won’t need to enter it again.


Option 3: Anthropic Claude (Paid)

Claude excels at nuanced writing tasks — understanding context, matching tone, and making intelligent corrections rather than just fixing surface-level grammar. It’s a good choice for long-form content, academic writing, or anywhere where the quality of corrections really matters.

Get an API Key

  1. Go to console.anthropic.com
  2. Create an account (requires email verification)
  3. Add credit to your account under Billing
  4. Go to API Keys in the dashboard
  5. Click Create Key, give it a name, and copy it

Available Models

  • Claude Haiku 4.5 (default)
  • Claude Sonnet 4.6
  • Claude Opus 4.6

The app starts with Haiku.

Add the Key to FiavaionDictate

  1. Click the gear button in the header to open AI Provider Settings
  2. Open the Anthropic tab
  3. Paste your key and choose your model
  4. Click TEST CONNECTION, then SAVE

Option 4: OpenAI (Paid)

GPT-4o Mini is the default model.

Get an API Key

  1. Go to platform.openai.com
  2. Create an account and add billing
  3. Go to API Keys in the left sidebar
  4. Click Create new secret key, copy it

Available Models

  • GPT-4o Mini (default)
  • GPT-4o
  • GPT-4.1

Add the Key to FiavaionDictate

  1. Click the gear button in the header to open AI Provider Settings
  2. Open the OpenAI tab
  3. Paste your key and choose your model
  4. Click TEST CONNECTION, then SAVE

Switching Between Providers

You can have multiple providers configured and switch between them at any time — your keys are remembered per-provider.

Bottom bar toggle: Click LOCAL or CLOUD to switch between Ollama and cloud AI. CLOUD uses the first cloud provider that has a key saved.

AI Provider Settings: Each provider has its own tab with its own key and model, remembered separately.


Security: How Your API Keys Are Stored

This is the question everyone should ask before pasting an API key into any app.

The short version

Your key is encrypted in your browser’s storage and is never sent to Fiavaion. The encryption stops the key being read casually from localStorage. It is not strong protection: anyone who can use your browser profile, or run code on the page, can get the key.

The technical details

When you save an API key with Remember key in browser ticked, FiavaionDictate:

  1. Derives a 256-bit key with PBKDF2 (SHA-256, 100,000 iterations). The input is a fixed string built into the app plus the page origin (for example http://localhost:8080). That same string is the PBKDF2 salt, so the derived key is the same on every install for a given origin.
  2. Encrypts your API key with AES-GCM and a random 12-byte IV
  3. Stores enc1: plus the base64 of the IV and ciphertext in localStorage, under fiavaion-ai-apikey-<provider>

If you untick Remember key in browser, the key is held in memory only and is gone when you close the page.

When you request a correction, your browser sends the key in the JSON body of a request to /api/ai/proxy on the local Python server. The server forwards the request to the provider (Anthropic, OpenAI or Google). The server code does not write the key to disk. Your key is never sent to Fiavaion.

Clearing your keys

To remove a provider’s key: click the gear button in the header to open AI Provider Settings, open the provider’s tab, clear the API key field and click SAVE. This deletes the stored entry from localStorage. To remove every key at once, clear this site’s data in your browser.


Troubleshooting AI Setup

Ollama status badge stays grey

  • Make sure Ollama is actually running. Open a browser tab to http://localhost:11434 — you should see the text “Ollama is running”. If you see an error, Ollama isn’t running.
  • On Windows, Ollama should start automatically with Windows. Check the system tray for the Ollama icon.
  • On Mac, Ollama may need to be opened from your Applications folder.
  • If Ollama is running but FiavaionDictate still shows grey, open AI Provider Settings (the gear button) and check the Ollama base URL, which defaults to http://localhost:11434.

”Model not found” error from Ollama

You have Ollama running but haven’t pulled a model yet. Run ollama list to see what you have. If the list is empty, run ollama pull gemma3:4b.

Cloud AI test fails with “Invalid API key”

  • Double-check that you copied the full key — they’re long and easy to truncate.
  • Check that you’re selecting the correct provider. A Gemini key won’t work in the Anthropic field.
  • For Gemini: make sure you’re using an AI Studio key (starts with AIza), not a Google Cloud service account key.
  • For Anthropic: make sure your account has credit added under Billing — a key from an account with no credit will return authentication errors on some models.

AI corrections seem slow

  • For Ollama: larger models (Mistral 7B Instruct) are slower, especially on machines without a GPU. Try Gemma 3 4B or Llama 3.2 3B for faster responses.
  • For cloud AI: network latency is the main factor. If you’re on a slow connection, consider Ollama for offline use.
  • With Ollama, auto-correction runs after each pause. With a cloud provider, text is collected and sent when you say ai correct this. The AI toggle in the bottom bar turns AI correction off entirely.

Next Steps