AI Model Configuration
Last updated
Premail classifies your email using a large language model. It sends the sender, subject line, and message body to the model and asks it to categorize the message. You pick the provider.
The AI Model tab lists the options in two groups when your computer has more than one private choice. Private options run on this computer: Apple Intelligence (on a Mac that supports it) and Ollama. Cloud options use your own API key: Anthropic, OpenAI, and Google Gemini. Where Ollama is the only private option, such as on Windows, Linux, or a Mac without Apple Intelligence, everything sits in one list and Ollama is marked Private.

How do you use Anthropic (Claude)?
The default. Premail uses Claude Haiku, which is fast and accurate. It costs roughly $11 per 1,000 emails classified, so a busy inbox adds up. Get an access key from console.anthropic.com and paste it into the AI Model tab.

How do you use OpenAI?
Works the same way. Paste in your OpenAI access key, pick a model. GPT-5 Mini is the default and a reasonable choice if you're already in the OpenAI ecosystem and don't feel like creating another account somewhere.
How do you use Google Gemini?
Get a key from the API Keys page in Google AI Studio, sign in with your Google account, and paste the key into the AI Model tab. Premail loads the models that key can use and recommends Gemini 3.5 Flash-Lite, roughly $4 per 1,000 emails on a paid key.
Gemini is the only cloud option with a free tier. It costs nothing but has a daily limit, and on the free tier Google may use what Premail sends to improve its products, with human reviewers able to read it. Setting up billing on the key turns that off. The Gemini API key guide walks through both.
How do you use Ollama locally?
Ollama runs AI models locally. Nothing gets sent to any external server, which may matter to you a great deal or not at all, depending on your personal threat model.
- 1Download and install Ollama from ollama.com. A small icon will appear in your menu bar or system tray after installation.
- 2Open a terminal (Terminal on a Mac, PowerShell on Windows) and pull a model. We recommend
ollama pull qwen3for the best classification quality on local hardware. - 3In Premail's AI Model tab, select Ollama and enter the model name you pulled (e.g.
qwen3).
Performance depends on your hardware. Classification will be slower than cloud providers, and quality varies by model. Larger models are more accurate but slower. qwen3 strikes the best balance we've tested for Premail's filtering tasks.
How do you use Apple Intelligence?
On a Mac running macOS 26 or later with Apple Intelligence support, Premail can classify mail using the on-device Apple Intelligence model instead of a cloud provider or Ollama. There is no API key, no separate AI account, no model to download or choose yourself, and no Ollama install - macOS manages the model for you.
- 1Turn on Apple Intelligence in System Settings, if you haven't already. The pane is called Apple Intelligence & Siri on macOS 26 and just Siri on macOS 27 and later (where Apple Intelligence is on whenever Siri is on).
- 2Let your Mac finish obtaining the on-device model assets. This happens in the background and depends on your network connection.
- 3Return to Premail, select Apple Intelligence in the AI Model tab, and click Check again. Premail reads live readiness from macOS rather than a saved setting, so the panel updates once your Mac reports it is ready.
- 4Confirm it works by dropping a sample .eml file onto Dropzone and checking the classification result.
Still have questions?
Contact Support (for Pro members)