> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/platform/control-center/ai-gateway.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# AI Gateway

Route every agent model request through AI Gateway, using approved model families and capability tiers.

Every model request an agent makes passes through AI Gateway. Agents request a capability **tier** — Economy, Smart, or Premium — rather than naming a model, so the model behind a tier can change without editing any agent. See [How Model Routing Works](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md).

<table data-view="cards"><thead><tr><th>Title</th><th>Description</th><th data-card-target data-type="content-ref">Link</th></tr></thead><tbody><tr><td><strong>How Model Routing Works</strong></td><td>Families, providers, gateways, credentials, and tiers — read this first.</td><td><a href="https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md">How Model Routing Works</a></td></tr><tr><td><strong>Model Catalog</strong></td><td>Check which models and providers are available, and their context windows.</td><td><a href="https://docs.uptiq.ai/platform/control-center/ai-gateway/model-catalog.md">Model Catalog</a></td></tr><tr><td><strong>Gateway Settings</strong></td><td>Enable families, authenticate providers, and map a model to each tier.</td><td><a href="https://docs.uptiq.ai/platform/control-center/ai-gateway/gateway-settings.md">Gateway Settings</a></td></tr></tbody></table>

## AI Gateway questions

| Question                      | Answer                                                                                                                                                                                                                                                                                |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| What it controls              | Which model families, providers, and models agents can reach                                                                                                                                                                                                                          |
| Who configures it             | Account Admin and Organisation Admin. See [Roles](https://docs.uptiq.ai/platform/control-center/admin/roles.md)                                                                                                                                                                       |
| Where to check availability   | [Model Catalog](https://docs.uptiq.ai/platform/control-center/ai-gateway/model-catalog.md), which reports status only                                                                                                                                                                 |
| Where to change configuration | [Gateway Settings](https://docs.uptiq.ai/platform/control-center/ai-gateway/gateway-settings.md)                                                                                                                                                                                      |
| Scope                         | Account. Family availability, credentials, and tier mappings apply to all account activity, within the providers and models your organization enabled. See [Who controls what](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#who-controls-what) |
| Where usage appears           | [Credit usage](https://docs.uptiq.ai/platform/control-center/cost-control/credit-usage.md) for managed-key spend, and the **Gateway Logs** tab of [LLM Logs](https://docs.uptiq.ai/platform/control-center/observe/llm-logs.md) for each call's model, tokens, cost and latency       |
| Where a served request shows  | [Runs & Traces](https://docs.uptiq.ai/platform/control-center/observe/runs-and-traces.md) shows the model and provider                                                                                                                                                                |
| Where changes are recorded    | [Audit Trails](https://docs.uptiq.ai/platform/control-center/observe/audit-trails.md)                                                                                                                                                                                                 |

## Where requests run

The provider you authenticate decides which cloud account and region serves the inference, and a bank-owned deployment can keep the whole runtime inside its own perimeter. See [Security FAQ](https://docs.uptiq.ai/platform/control-center/detailed-security-and-runtime-faq.md) for deployment architecture, data residency, and what the platform logs.

For common questions and fixes, see [AI Gateway: FAQs & Troubleshooting](https://docs.uptiq.ai/platform/control-center/ai-gateway/ai-gateway-faqs-and-troubleshooting.md).

## What's next

{% content-ref url="/pages/eIjuTBKGdEo5Aq2Akkal" %}
[Cost Control](https://docs.uptiq.ai/platform/control-center/cost-control.md)
{% endcontent-ref %}

{% content-ref url="/pages/4023fee41d519b1fbe13cbf03c9027c75b45de1a" %}
[Observe](https://docs.uptiq.ai/platform/control-center/observe.md)
{% endcontent-ref %}

{% content-ref url="/pages/YvbgGY5gvNsVIdfyFH1F" %}
[Agent Registry](https://docs.uptiq.ai/platform/control-center/govern/agent-registry.md)
{% endcontent-ref %}

{% content-ref url="/pages/I59HzEvpXa0tjAaqrtTo" %}
[Glossary](https://docs.uptiq.ai/platform/start-here/glossary.md)
{% endcontent-ref %}

***

{% columns %}
{% column width="83.33333333333334%" %}

<p align="right"><em>Maintained by</em> <mark style="color:green;">Abhishek Paul</mark><br><code>AI-assisted, human-approved</code></p>
{% endcolumn %}

{% column width="16.666666666666664%" %}

<div align="left"><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-d034645b4f8f8ee661985f5306b60ded3289653c%2Fmaintainer-abhishek-paul.png?alt=media" alt="" width="60"></div>
{% endcolumn %}
{% endcolumns %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/platform/control-center/ai-gateway.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
