AI Provider Keys

Updated Nov 9, 2026
AI

AI Provider Keys

The AI Assistant and DataMagik's other AI features run on a cloud AI provider that you supply a key for. On this page you add your own key for one or more providers and choose which one is active. Keys are encrypted at rest and never returned to the browser.

AI Provider Keys page with a card for each provider
Add a key for any provider, pick a model, and click Set active.

Supported providers

CardWhere the key comes fromGood fit when
OpenAIThe OpenAI API platform (platform.openai.com)You want OpenAI's models billed directly by OpenAI. See Connect ChatGPT.
Anthropic ClaudeThe Claude Console (console.anthropic.com)You want Claude models billed directly by Anthropic. See Connect Claude.
Google GeminiGoogle AI StudioYou want Google's Gemini models.
Microsoft FoundryA model deployment in your Microsoft Foundry projectYour company runs AI in Azure and wants traffic, billing and content filters in its own Azure tenant. See Connect Microsoft Foundry.
Microsoft OpenAIA model deployment in your Azure OpenAI resourceAs above, with an existing Azure OpenAI resource. See Connect Microsoft Foundry.
OpenRouterOpenRouter (openrouter.ai)You want one key and one bill for models from many providers.

Whichever provider you choose, use a model that supports tool calling. The assistant uses tools to query your data, build charts and make changes; a model without tool calling can chat but cannot look anything up.

Two kinds of keys — easy to mix up. The keys on this page are AI provider keys (the key that runs the assistant). They are different from DataMagik API keys (the dcp_ keys under Your Account > API Keys that let external systems call DataMagik's own API). To use DataMagik from Claude, ChatGPT, Copilot Studio or Foundry, see Connecting AI Tools to DataMagik.
A chat subscription is not an API key. ChatGPT and Claude plans (Plus, Pro, Max, Team, Business, Enterprise) do not include API access. Keys come from each provider's developer platform and are billed there by usage.

Your keys vs. company keys

There are two tabs:

  • Your Keys — a personal key. If you set one active, every chat in your account uses it and bills your provider account, not the company's.
  • Company Keys (admin) — a shared fallback. If you haven't set a personal key, chats use the company's active key. Admins manage this tab.

The order of preference is: your active personal key first, then the company key. If neither is set, the assistant prompts new users to add one the first time they open it.

Adding a key

  1. Choose the provider card.
  2. Pick a Model from the dropdown. For the Microsoft cards, enter the endpoint and the deployment name from Azure as well.
  3. Paste your provider API key into the API key field and click Save key.
  4. Click Set active on the provider you want chats to use. The active card is marked Active. Only one provider is active at a time on each tab.
  5. Open the AI Assistant and ask a question about your data to confirm it works.
Where to get a key: each card links to its provider's key page. A key grants billable API access to that provider, so store it securely and rotate it if it is ever exposed. To replace an existing key, type the new value over it and click Replace key. Set a spending limit or budget on the provider's side, too.
Related: Use the assistant in AI Assistant; configure what assistants can do in Managing AI Assistants; watch spend in AI Token Usage.
Was this page helpful?