AI services · Updated Jun 4, 2026 · 12 min read

Connect AI models with API keys

Add one API key per AI service in Lerix, then choose which models and access paths appear in the composer.

AI service connections live in Settings > Connections. Add one API key per service, keep only the models you want enabled, then choose the active model and access path from the composer model menu.

Supported AI services

AI service in LerixModel familyAccess in LerixNotes
ChatGPTOpenAI GPT and Codex API modelsAPI keyOpenAI also documents API-key authentication through bearer tokens.
ClaudeAnthropic ClaudeAPI keyClaude API keys are created in the Claude Console.
GoogleGeminiAPI keyGemini keys are created and managed in Google AI Studio. Lerix can also discover supported Gemini text models that are available through that key.
GrokxAI GrokAPI keyxAI docs describe account creation, credits, and API keys in the xAI Console.

Available models

The model list below is Lerix's built-in catalog. The AI service can still limit a model for an individual account, key, region, or billing state.

AI serviceModel in LerixModel IDAccess
ChatGPT GPT-5.5 gpt-5.5 API key or Codex auth
GPT-5.5 Pro gpt-5.5-pro API key
GPT-5.4 gpt-5.4 API key or Codex auth
GPT-5.4 Mini gpt-5.4-mini API key or Codex auth
GPT-5.4 Nano gpt-5.4-nano API key
GPT-5.2 gpt-5.2 API key or Codex auth
GPT-5.3 Codex gpt-5.3-codex API key or Codex auth
Claude Claude Opus 4.8 claude-opus-4-8 API key
Claude Opus 4.7 claude-opus-4-7 API key
Claude Opus 4.6 claude-opus-4-6 API key
Claude Sonnet 4.6 claude-sonnet-4-6 API key
Claude Haiku 4.5 claude-haiku-4-5-20251001 API key
Google Gemini 3.1 Pro gemini-3.1-pro-preview API key
Gemini 3 Flash gemini-3-flash-preview API key
Gemini 3.1 Flash-Lite gemini-3.1-flash-lite-preview API key
Gemini 2.5 Pro gemini-2.5-pro API key
Gemini 2.5 Flash gemini-2.5-flash API key
Gemini 2.5 Flash-Lite gemini-2.5-flash-lite API key
Grok Grok 4.3 grok-4.3 API key
Grok 4.20 grok-4.20-reasoning API key

Google API keys can also add compatible Gemini text-generation models discovered from that key. Discovered Gemini models appear only after Lerix confirms the model supports the standard content-generation path.

Add an API key

  1. Open Lerix.
  2. Use Add API key, or open Settings > Connections.
  3. Select the AI service: ChatGPT, Claude, Google, or Grok.
  4. Add a label such as "OpenAI personal" or "Claude work".
  5. Paste the API key.
  6. Set storage to Encrypted sync when signed in, or This device for local-only storage.
  7. Save the key.
Screenshot of the Lerix API key form.
The storage selector controls whether the key is local only or saved with encrypted sync.

Edit which models appear

Saved keys include a redacted hint, enabled model count, storage mode, and connection actions.

Screenshot of a connected API key in Lerix.
An API key can expose several models. The visible count shows how many are enabled.

Edit models controls which models are available in the composer for that access path.

Screenshot of editing models for an API key.
Model cards show the user-facing model name, category, and API model id.

Choose a model in chat

The model button opens the model menu. The menu groups available models by AI service, so ChatGPT, Claude, Google, and Grok stay separate.

When an AI service has more than one access path, choose the key or session from Access before selecting a model. ChatGPT API-key access and Codex auth appear together under ChatGPT when both are available.

Save a favorite model config to make it the starting setup for future new chats. Favorite #1 is used first; if it is not usable, Lerix falls back to the first connected model it can use.

Use the star beside a model to save a favorite model config. Favorites keep the model, access path, and supported model controls together for fast switching.

Automatic Gemini model discovery

For Google API keys, Lerix checks the Gemini model list available to that key. When Google exposes a new Gemini text model through the standard content-generation API and Lerix already supports that model architecture, Lerix can add it to that key automatically instead of waiting for a Lerix app update.

Discovery is limited to Gemini text-generation models that Lerix can stream safely. Embedding, audio, video, image-only, live, and other specialized Gemini model families stay hidden unless Lerix has a verified path for that type of request.

Where to get API keys

API keys come from the AI service, not from Lerix. Use the service's own key page when you need to create, rotate, delete, or troubleshoot a key.

FAQ

Is adding a ChatGPT key different from adding a Gemini key?

No. The API-key setup uses the same fields for each AI service: service, label, key value, and storage mode.

Does Lerix support OpenRouter?

No. The AI service picker shows ChatGPT, Claude, Google, and Grok. If OpenRouter is added later, it will appear as an AI service option in Lerix.

Can I use a ChatGPT Plus or Pro subscription instead of an OpenAI API key?

A ChatGPT Plus or Pro subscription is not the same thing as an OpenAI API key. For OpenAI API-key setup in Lerix, use an OpenAI API key. Separately, the Lerix Mac app supports Codex auth for supported ChatGPT/OpenAI models, and Pro accounts can use same-account Codex Relay from an open desktop. See Codex auth and relay.