Skip to main content
SAFIA supports four LLM providers out of the box. All use an OpenAI-compatible API interface, so switching between them is a matter of changing a few lines in your .env. You choose your provider during safia setup and can change it at any time with safia config.
Voice transcription always uses Groq (Whisper) — regardless of which provider handles your chat completions. If you want to enable voice messages, you need a GROQ_API_KEY in your .env even when using a different primary provider. The only exception is when LLM_PROVIDER=groq, in which case your LLM_API_KEY is reused for transcription automatically.

Provider comparison


Configuration by provider

Lunos is the default provider and requires no extra URL configuration — SAFIA knows the endpoint automatically when you set LLM_PROVIDER=lunos.What is Lunos? Lunos is an AI gateway that provides access to a range of models via an OpenAI-compatible API. It’s the recommended starting point for SAFIA users..env configuration
The default model openai/gpt-oss-120b works well for SAFIA’s financial assistant tasks. You can change LLM_MODEL to any model ID available on your Lunos account.Vision (receipt scanning)Lunos also handles receipt photo scanning via the VISION_MODEL setting. The default vision model works out of the box:

Voice transcription

Regardless of your LLM_PROVIDER choice, voice messages are transcribed using Whisper via Groq. This is a separate API call using a separate key.
Groq provides one of the fastest and cheapest Whisper implementations available. Keeping transcription on a single provider simplifies configuration and ensures consistent latency regardless of which LLM you use for chat.
To enable voice messages, add your Groq API key to .env:
If GROQ_API_KEY is absent and LLM_PROVIDER is not groq, voice messages are silently disabled — the bot will ignore audio messages.

Switching providers

You can switch providers at any time without reinstalling. Run safia config, select AI Provider & API Key, choose the new provider, enter the new key, and save. Then restart:
Switching providers does not affect your stored data (transactions, debts, portfolios, knowledge base documents). Only the LLM used for new conversations changes.