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.

The Premail AI Model screen with provider cards for Anthropic, OpenAI, Google Gemini, and Ollama (marked Private). OpenAI is selected, with a masked API key field, a model picker, a Refresh button, and a how-to card beside the form. The header shows running cost estimates, and the footer shows estimated spend, model pricing, and Save Changes.
Pick your provider and paste your own key, or run Ollama locally so nothing leaves your machine. Premail tracks what the calls cost you.

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.

The Premail AI Model screen showing OpenAI / gpt-5-mini in use with running costs of $1.05 for the current model and $30.20 all-time, provider cards for Apple Intelligence, Ollama, Anthropic, OpenAI, and Google Gemini, a green "Apple Intelligence is ready" panel, a Model calls per hour field set to 500, and estimated spend and model pricing in the footer.
Premail tracks what your own API key is actually costing you, per model and all time, and caps how many paid calls it will make in an hour so a busy inbox cannot run up a surprise bill.

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.

  1. 1Download and install Ollama from ollama.com. A small icon will appear in your menu bar or system tray after installation.
  2. 2Open a terminal (Terminal on a Mac, PowerShell on Windows) and pull a model. We recommend ollama pull qwen3 for the best classification quality on local hardware.
  3. 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.

  1. 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).
  2. 2Let your Mac finish obtaining the on-device model assets. This happens in the background and depends on your network connection.
  3. 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.
  4. 4Confirm it works by dropping a sample .eml file onto Dropzone and checking the classification result.
See the full Apple Intelligence setup guide for requirements, what "on-device" does and does not cover, and troubleshooting.
Your access keys are stored locally on your computer and are never sent to any Premail server. They go directly from your machine to whichever AI provider you've configured. Apple Intelligence needs no key at all.