> For the complete documentation index, see [llms.txt](https://university.mindstudio.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://university.mindstudio.ai/workspace-management/configuring-manual-connections-to-ai-model-providers.md).

# Configuring Manual Connections to AI Model Providers

MindStudio allows you to manually connect to AI model providers by supplying your own API keys. This gives you full control over billing, quotas, and provider-specific settings while still using the MindStudio Service Router to access models inside agents, workflows, and tools.

## How to Add a Custom Connection

#### 1 – Navigate to [MindStudio AI Models Page](https://app.mindstudio.ai/services/models)

<figure><img src="/files/wfrfHl8tKpGo4atFX2ev" alt=""><figcaption></figcaption></figure>

**Workspace Sidebar → Service Router → AI Models**

* This page lists all supported model providers along with their available models and connection status.

#### 2 – Add your custom API Key

<figure><img src="/files/4D5xqIClOcGy9YSfnYYH" alt=""><figcaption></figcaption></figure>

* Locate the provider you want to configure (for example, OpenAI, Anthropic, Google)
* Click **Custom Key** on the right side of the provider row
* A modal will appear prompting you to enter an API key
* Paste your provider-issued API key into the field
* Click **Save**

## Understanding Provider Connection States

Each provider row shows three possible states:

* **Disabled** – The provider is not currently usable
* **Custom Key** – The provider uses your manually supplied API key
* **Managed** – The provider uses MindStudio-managed routing and billing

You can switch between Managed and Custom Key at any time.

## Verifying the Connection

After saving a custom key:

* The provider status updates to **Custom Key**
* All supported models under that provider become selectable
* Requests route directly to the provider using your credentials

If a key is invalid or revoked, requests will fail and surface an upstream provider error.

## Switching Back to Managed Routing

You can revert to MindStudio-managed billing at any time:

1. Return to **AI Models**
2. Find the provider
3. Click **Managed**

This disables your custom key and resumes routing through MindStudio’s shared infrastructure.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://university.mindstudio.ai/workspace-management/configuring-manual-connections-to-ai-model-providers.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
