# Connect a model

Add an API key or a subscription in Settings → Providers & Models, choose default models, and set up fallbacks.

## Before you start

You need one of these:

- An API key from OpenAI, Anthropic, or Gemini.
- A Claude, ChatGPT, or Antigravity subscription you can sign in to.
- A key for any API that follows the OpenAI format, such as OpenRouter, Groq, or Mistral.

:::callout{icon=shield-check}
Keys are encrypted in Keychain (macOS) or Credential Manager (Windows) and are never shown again after you save them. Requests go from your computer straight to the provider, not through levitase.com.
:::

## Add an API key

:::steps
1. **Open Settings** Press [[kbd:CmdOrCtrl+,]], or click your avatar in the top right and choose **Settings**.
2. **Go to Providers &amp; Models** It's in the **AI** group. The **Providers** tab lists OpenAI, Anthropic, Gemini, and the subscriptions.
3. **Paste the key** Open the provider, paste the key, and save.
4. **Click Test** Levitase sends one short request. When it works, the provider shows **Connected** and its models appear in **Model catalog**.
:::

### Use a subscription

Choose **Claude subscription**, **ChatGPT subscription**, or **Antigravity subscription** and click **Set up**. A browser window opens for you to sign in with that service. Usage counts against your subscription's limits, not an API bill.

:::callout{type=warn}
Levitase can't check in advance which models your plan includes. Models from a subscription are marked **Model access unverified** until the first request succeeds.
:::

### Other OpenAI-compatible APIs

Click **Add provider**. Pick a preset, or type the base URL yourself:

```
Name      OpenRouter
Base URL  https://openrouter.ai/api/v1
API key   sk-or-…
```

Presets: OpenRouter, Hugging Face, Groq, Together, DeepSeek, and Mistral. Test the provider after adding it.

## Choose default models

The **Default models** tab sets which model handles each kind of work. You only need **Text** to start; the others fall back to it or stay off.

| Need | Used by |
| --- | --- |
| Text | The assistant, summaries, Automations |
| Coding | Labs and the code editor |
| Image · Video | Generating and editing media |
| Speech to text · Text to speech | Voice input and read-aloud |
| Realtime voice | Talking to the floating assistant |

## Fallback combos

A combo is an ordered list of models for one need. If the first model fails or hits a rate limit, Levitase tries the next one. Create combos in the **Fallback combos** tab and pick one as a default like any single model.

## Troubleshooting

<dl class="fact-rows"><div><dt>Test says 401</dt><dd>The key is wrong or revoked. Create a new key at the provider and paste it again.</dd></div><div><dt>Test says 429</dt><dd>The account has no credit or hit its rate limit. Check billing at the provider, or add a fallback combo.</dd></div><div><dt>No models in the catalog</dt><dd>Run Test again. Custom providers list only the models their <code>/models</code> endpoint returns.</dd></div><div><dt>Behind a company proxy</dt><dd>Set it in <b>Settings → Network &amp; Proxy</b>, then test again.</dd></div></dl>
