Skip to main content

AI Providers

Connect a Provider

Run your chats and agents on an AI account you already pay for, for 0 Nirvai credits — connect it, let Nirvai verify it, and choose which models to enable.

Using your own AI provider is like bringing your own coffee beans to a café that brews them for you. Nirvai still does all the work — the chat, the agents, the tools — but the "beans" (the AI model answering) come from an account you already pay for. Every reply made with your own model costs 0 Nirvai credits: your provider bills you directly, usually at a much lower price.

If you don't connect anything, nothing changes — everything keeps running on Nirvai's built-in models, billed in credits as usual.

An AI account you already pay for
OpenAI
Anthropic
Gemini
Azure
Fireworks
OpenRouter
NirvaiNirvai verifies the keyConnection verified
Ask anything…
gpt-5.2
0 Nirvai credits per reply
You can…What that means for you
Connect a providerAdd an account from OpenAI, Anthropic, Google Gemini, Azure, Fireworks, DeepInfra, OpenRouter — or any compatible service
Use it in any chatPick your model from the model menu in the chat box — that conversation stops spending credits
Make it your defaultTurn on "Use it for new chats" and every new conversation starts on your model automatically
Put an agent on itSet your model as an agent's brain — it answers on your account everywhere it's deployed, channels included
See what you savedThe Analytics tab shows your usage and what those replies would have cost in credits
This is different from AI credentials for tools

The Credentials section also lists AI services — those are credentials your agent uses inside a tool (for example, a tool that calls Gemini to label images). AI Providers is about which model powers the conversation itself.


Before you start​

  • An account with an AI provider (OpenAI, Anthropic, Google Gemini, Azure, Fireworks, DeepInfra, OpenRouter, or a compatible service).
  • That account's API key — a private password that lets Nirvai connect to the provider for you. You create it in the provider's own dashboard, usually under "API keys".

Step-by-step​

  1. Open AI Providers from the main menu.
  2. Click Connect a provider and pick your provider from the list.
  3. Paste your key. For a Custom provider, also paste the service's address (the provider tells you this — it's usually on the same page as the key).
  4. Pick the models you want available. Nirvai suggests recommended models with speed and quality stats; you can also add any model your provider offers.
  5. Save. Nirvai immediately sends a tiny test message ("hi") to check the connection, then shows the result on the provider's card.
A connected provider card. The green status means the test message worked; the key is only ever shown as its first and last characters.
Your key is safe

Keys are stored encrypted and are never shown again after you save them — the card only displays the first and last few characters so you can recognize which key it is.


Connection statuses​

StatusWhat it meansWhat to do
ReadyThe test message workedNothing — start using it
Not tested yetSaved but not verifiedClick Test connection
Needs attention / Not workingThe provider rejected the key (revoked, out of funds, or mistyped)Open the provider, fix or replace the key
Spend not trackedWorks, but the provider doesn't report usage numbersFine to use — the Analytics tab just shows less detail

While a provider is not working, conversations set to its models fall back to Nirvai's models so nothing breaks — see the technical reference for exactly how.


Troubleshooting​

ProblemLikely causeFix
"Not working" right after connectingKey copied with a space, or from the wrong provider pageRe-copy the key and use Test connection
The model I want isn't listedIt's not in the recommended listAdd it manually by its exact model name from your provider's docs
Connected fine but a chat still bills creditsThe chat is on a Nirvai modelPick your model in that chat's model menu — see Use your own models

What's next​

Your provider is connected — now use it from the chat, set it as your default, or put an agent on it.