> 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/ai-gateway-faqs-and-troubleshooting.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# AI Gateway: FAQs & Troubleshooting

Answers to common AI Gateway questions, and fixes for unsaved changes, unavailable models, and failed model calls.

Each answer is short and links to the page that covers the topic in full. Use the troubleshooting entries when a change doesn't stick, a model isn't offered, or a model call fails.

## FAQs

### Families and tiers

<details>

<summary>Who can configure AI Gateway?</summary>

**Configure gateway settings**: Account Admin and Organisation Admin. **Use AI Gateway**: Developer, Governance Manager, Account Admin, and Organisation Admin. See [Roles](https://docs.uptiq.ai/platform/control-center/admin/roles.md).

</details>

<details>

<summary>Does AI Gateway apply to one project or the whole account?</summary>

The whole account. See [AI Gateway](https://docs.uptiq.ai/platform/control-center/ai-gateway.md) and [Who controls what](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#who-controls-what).

</details>

<details>

<summary>Why do agents request a tier instead of a model?</summary>

So you can change the model behind a tier without editing agents. See [Model tiers](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#model-tiers).

</details>

<details>

<summary>What is the default family for?</summary>

It takes requests that don't name a family. See [Model families](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#model-families).

</details>

<details>

<summary>Are Gemini and Google different families?</summary>

No, they're two labels for one family. See [Model families](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#model-families).

</details>

<details>

<summary>Do agents' background calls follow my tier mappings?</summary>

Yes. See [What routes through the gateway](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#what-routes-through-the-gateway).

</details>

<details>

<summary>Can every family be used by agents?</summary>

No. See [Model families for agents](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#model-families-for-agents).

</details>

### Keys and billing

<details>

<summary>What's the difference between a UPTIQ managed key and Bring your own key?</summary>

Who supplies the key, and who is billed. See [Gateways and credentials](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#gateways-and-credentials).

</details>

<details>

<summary>For cloud-based LLM deployments, how do customers monitor and manage token usage and associated costs? For an on-premises SLM deployment, would there generally be no token-based usage fees?</summary>

Every model call on the Uptiq Platform is metered by tokens and shown as credits on the Credit Usage pages, by account and by agent. Admins set hard limits and alert thresholds per day, week or month. With a self-hosted SLM there's no provider token bill. However, the exact commercial terms and platform pricing need to be discussed and agreed.

</details>

<details>

<summary>Where are my own provider keys stored, and can I read one back?</summary>

In the deployment's cloud secret manager, and no, they can't be read back. See [Where your own keys are stored](https://docs.uptiq.ai/platform/control-center/ai-gateway/gateway-settings/edit-a-family.md#where-your-own-keys-are-stored).

</details>

<details>

<summary>When should I use OpenRouter?</summary>

When you want requests to go through your own OpenRouter account, and region residency doesn't matter. See [Gateways and credentials](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#gateways-and-credentials).

</details>

<details>

<summary>Can my own applications call AI Gateway?</summary>

Yes, with a gateway API key. See [Connect to AI Gateway](https://docs.uptiq.ai/platform/control-center/ai-gateway/gateway-settings/connect-to-ai-gateway.md).

</details>

<details>

<summary>Is a JSON reply guaranteed when I ask for one?</summary>

No. See [Requests for JSON or a response schema](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#requests-for-json-or-a-response-schema).

</details>

<details>

<summary>Can I change provider configuration in Model Catalog?</summary>

No. Model Catalog only reports status; change configuration in [Gateway Settings](https://docs.uptiq.ai/platform/control-center/ai-gateway/gateway-settings.md).

</details>

## Troubleshooting

### Configuration

<details>

<summary>My changes to a family disappeared</summary>

They were discarded when the **Edit** window closed, or they were never saved. Make them again and select **Save**. See [Save changes](https://docs.uptiq.ai/platform/control-center/ai-gateway/gateway-settings/edit-a-family.md#save-changes) and [Cancel an edit](https://docs.uptiq.ai/platform/control-center/ai-gateway/gateway-settings/edit-a-family.md#cancel-an-edit).

</details>

<details>

<summary>All three tiers give the same results</summary>

Check whether the tiers map to the same model. Assign distinct models in [Edit a family](https://docs.uptiq.ai/platform/control-center/ai-gateway/gateway-settings/edit-a-family.md#assign-tier-models). See [Default tier mappings](https://docs.uptiq.ai/platform/control-center/ai-gateway/model-catalog.md#default-tier-mappings).

</details>

<details>

<summary>A family is missing from Model Catalog</summary>

Clear the search, and set **Family** and **Status** back to **All families** and **All statuses**. If it's still missing, your organization hasn't enabled it. See [What the catalog lists](https://docs.uptiq.ai/platform/control-center/ai-gateway/model-catalog.md#what-the-catalog-lists).

</details>

<details>

<summary>A family or model isn't offered when building an agent</summary>

The gateway can't serve it for agents. See [Model families for agents](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#model-families-for-agents).

</details>

<details>

<summary>A family can't be saved</summary>

A required key is missing, or every provider is off. See [What can't be saved](https://docs.uptiq.ai/platform/control-center/ai-gateway/gateway-settings/edit-a-family.md#what-cant-be-saved).

</details>

<details>

<summary>The Default family switch is missing or can't be changed</summary>

Turn the family on first, or, on the current default family, make another family the default. See [Settings](https://docs.uptiq.ai/platform/control-center/ai-gateway/gateway-settings/edit-a-family.md#settings).

</details>

<details>

<summary>A family shows Unavailable now</summary>

It is outside its schedule. Hover over the badge to see the schedule. See [Review model availability](https://docs.uptiq.ai/platform/control-center/ai-gateway/model-catalog.md#review-model-availability).

</details>

### Failed model calls

<details>

<summary>A call fails because the provider isn't configured</summary>

No provider for the tier's model is `Enabled`. See [Diagnose why a model is unavailable](https://docs.uptiq.ai/platform/control-center/ai-gateway/model-catalog.md#diagnose-why-a-model-is-unavailable).

</details>

<details>

<summary>"The AI provider rate-limited your request" or "is temporarily unavailable"</summary>

Every candidate model and provider failed. Try again in a few moments; enabling more than one provider for the family gives the gateway more paths. See [When a call can't be served first time](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#when-a-call-cant-be-served-first-time).

</details>

<details>

<summary>"The LLM provider rejected the request for insufficient credits"</summary>

The provider account behind your own key is out of credit. Add credits to the provider account, or lower the requested `max_tokens`.

</details>

<details>

<summary>"The request exceeds the model context window"</summary>

Shorten the request, or map the tier to a model with a larger context window. See [When a call can't be served first time](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#when-a-call-cant-be-served-first-time).

</details>

<details>

<summary>"The request or response was blocked by a guardrail"</summary>

Check the agent's guardrails in **Agent Config** › **Guardrails** (Beta), and the families you've enabled. See [Guardrails](https://docs.uptiq.ai/platform/console/agent-builder/deploy/guardrails.md) and [Verify the configuration](https://docs.uptiq.ai/platform/control-center/ai-gateway/gateway-settings.md#verify-the-configuration).

</details>

<details>

<summary>A streamed reply failed part-way through</summary>

Review the partial reply before you send the request again. See [When a call can't be served first time](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#when-a-call-cant-be-served-first-time).

</details>

<details>

<summary>A stopped reply still used credits</summary>

It was stopped after output had started. See [Stopping a streamed reply](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#stopping-a-streamed-reply).

</details>

<details>

<summary>A custom provider returns an invalid response</summary>

Ask the platform administrator who set up the provider to check its base URL. See [Custom providers](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md#custom-providers).

</details>

<details>

<summary>I can't create a gateway API key</summary>

Your role can't. See [Connect to AI Gateway](https://docs.uptiq.ai/platform/control-center/ai-gateway/gateway-settings/connect-to-ai-gateway.md).

</details>

## What's next

{% content-ref url="/pages/vHMstiaitwTfebCHvC8Q" %}
[How Model Routing Works](https://docs.uptiq.ai/platform/control-center/ai-gateway/how-model-routing-works.md)
{% endcontent-ref %}

{% content-ref url="/pages/0234ae24d9852b23bf66d3b16e74afcbacbfc9c2" %}
[Model Catalog](https://docs.uptiq.ai/platform/control-center/ai-gateway/model-catalog.md)
{% endcontent-ref %}

{% content-ref url="/pages/343aaa4879c5a104577605f40e609d50bd458c53" %}
[Gateway Settings](https://docs.uptiq.ai/platform/control-center/ai-gateway/gateway-settings.md)
{% endcontent-ref %}

{% content-ref url="/pages/dzL0uehLrltnUN0AaRLD" %}
[Credit usage](https://docs.uptiq.ai/platform/control-center/cost-control/credit-usage.md)
{% endcontent-ref %}

* [Govern agents and models](https://docs.uptiq.ai/platform/task-guides/govern-agents-and-models.md#ai-gateway): every AI Gateway task

***

{% 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/ai-gateway-faqs-and-troubleshooting.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.
