API keys
With your own API key, AskAI sends requests straight from your browser to the AI provider, and you pay the provider for what you use. AskAI supports keys from OpenAI, Google Gemini, DeepSeek and xAI Grok.
Before you start
Using your own keys needs a paid plan, and you need to be signed in to AskAI so it can see your plan:
| Plan | Keys you can use |
|---|---|
| Lifetime Standard | OpenAI and Google Gemini |
| Lifetime Premium | OpenAI, Google Gemini, DeepSeek and xAI Grok |
| Token pack | OpenAI, Google Gemini, DeepSeek and xAI Grok, while you have extra tokens left |
On the Free plan, Your own API keys is marked Paid plans and can't be selected. See AI models for how this compares with AskAI cloud.
Get a key from your provider
| Provider | Where to create a key | Key starts with |
|---|---|---|
| OpenAI | platform.openai.com/api-keys (opens in a new tab) | sk- |
| Google Gemini | Google AI Studio (opens in a new tab) | AIza |
| DeepSeek | platform.deepseek.com/api_keys (opens in a new tab) | sk- |
| xAI Grok | console.x.ai (opens in a new tab) | xai- |
Most providers show a new key only once, so copy it before you close their page. Each provider bills you separately, and some need billing details before a key works.
Add a key
- Open Settings → AI & models.
- Under How AskAI connects to AI, choose Your own API keys. The API keys list appears.
- Click Set up next to the provider. (Get a key in the dialog opens the provider's key page.)
- Paste your key into API key. The eye button shows or hides it.
- Click Check key. AskAI asks the provider to list its models with your key. If that works, you see This key works.
- Click Save. If you didn't check the key, AskAI checks it now.
The provider is now Connected, and its models can be picked under Models on the same page. Pick a Default model from a provider you've connected.
You can add keys for more than one provider. In the model pickers, models from providers without a connected key are marked "(no API key)" and can't be picked.
Check, change or remove a key
Each provider row shows its status and the start and end of the key:
- Connected: the key is saved and turned on.
- Off: the key is saved but turned off.
- Not set: no key yet.
To manage a key:
- Turn it off or on: use the switch at the end of the row. The key stays saved.
- Check or change it: click Edit, then Check key, or paste a new key and click Save.
- Remove it: click Edit, then Remove key.
If your Default model or Model for screenshots belongs to a provider that's turned off, the page warns A selected model has no key. Turn that provider on or pick another model.
To go back to AskAI cloud, choose AskAI cloud under How AskAI connects to AI. Your keys stay saved.
Where your keys are stored
- Keys are saved in Chrome's storage for the extension, in your browser profile. If Chrome sync is on, Chrome copies them, like the rest of your AskAI settings, to your other computers.
- Each key is sent only to its own provider. With your own keys, your text goes straight to the provider and not through AskAI's server.
- Settings → General → Remove all AskAI data deletes your keys from this browser, together with your sign-in, your custom actions and your settings.
Protect your keys like passwords: set a spending limit in the provider's dashboard, don't show keys in screenshots, and create a new key if one leaks.
When a key doesn't work
The result card tells you what went wrong:
- Your API key was rejected: the provider refused the key. Click Check API keys, then check the key for missing characters or extra spaces, or create a new one.
- No API key for this model: the model you're using belongs to a provider without a key. Add a key for that provider, pick another model, or switch to AskAI cloud.
In the key dialog, Check key can also say:
- This key doesn't work. Check it and try again. The key is wrong, revoked or from another provider.
- Too many requests right now. Try again in a minute. The provider is limiting requests.
- Couldn't reach the provider: check your internet connection.
If answers stop because of your quota or billing, check your usage in the provider's dashboard.