> 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/academy/tier-2-core-skills/m07-governance-rbac-ai-gateway-configuration/lab-5-configure-the-ai-gateway-for-production.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Lab 5: Configure the AI Gateway for production model families

Hands-on lab for lesson 5 of module M07, configure the ai gateway for production model families.

{% @uptiq-training/training-labels content="Module 7 | brand
Lesson 5 of 8 | brand
Lab 5 | success
20 minutes | neutral
Bloom level Apply | neutral" %}

{% @uptiq-training/training-navigator title="M07 Governance, RBAC & AI Gateway Configuration" content="Lesson 1: Understand the Platform's governance architecture and Control Center | soon
Lesson 2: Configure RBAC roles and enforce separation of duties | soon
Lab 2: Configure RBAC roles and enforce separation of duties
Lesson 3: Set up Microsoft SSO and Entra ID integration | soon
Lab 3: Set up Microsoft SSO and Entra ID integration
Lesson 4: Knowledge check 1 | soon
Lesson 5: Configure the AI Gateway for production model families | soon
Lab 5: Configure the AI Gateway for production model families | current
Lesson 6: Configure agent authentication and widget identity tokens | soon
Lab 6: Configure agent authentication and widget identity tokens
Lesson 7: Configure and validate policy-based guardrails | soon
Lab 7: Configure and validate policy-based guardrails
Lesson 8: Module assessment | soon" %}

## Lab overview

**Exercise title:** Configure the AI Gateway for Production Model Families

**Difficulty level:** Apply (Bloom Level 3 — you will perform a real configuration task, not just recall or recognize concepts)

**Estimated hands-on time:** 20 minutes (approximately 14 minutes hands-on configuration, 4 minutes screencasted demo, 2 minutes concept check)

**What you will build:** You will configure the AI Gateway in Control Center to enable two production model families — OpenAI and Gemini — assign models to Economy, Smart, and Premium tiers for each family, set one family as the per-tenant default, and verify the configuration in the Model Catalog. You will also confirm that Anthropic is not available for production agent selection.

**Enabling objective:** Configure the AI Gateway in Control Center to enable production model families (OpenAI and Gemini), set per-tenant model defaults, and explain how the gateway routes and recovers agent calls by output format when a provider is overloaded or unavailable — including what users see during a provider outage.

### Prerequisites

* Account Admin or Org Admin role in your sandbox (the "Configure the AI Gateway" capability is restricted to these two roles — Developer and Governance Manager roles cannot complete this exercise)
* Access to the sandbox Control Center
* At least one agent must exist in your sandbox Agent Builder to complete the Anthropic verification step (any agent from a prior module works)
* If your sandbox uses Bring Your Own Key (BYOK) authentication: your instructor will provide the API keys for OpenAI and/or Google AI Studio before the lab begins

## Your sandbox environment

**Environment access URL:** `<provided by your instructor>`

### Connection details

| Field                                               | Where to find it                                                                                |
| --------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| **Control Center URL**                              | Your instructor will provide the full URL.                                                      |
| **AI Gateway path**                                 | Navigate from Control Center left nav: `AI Gateway > Gateway Settings`                          |
| **Model Catalog path**                              | Navigate from Control Center left nav: `AI Gateway > Model Catalog`                             |
| **Agent Builder path (for Anthropic verification)** | Navigate from the main console to any existing agent, then open `Agent Config > Agent Behavior` |
| **Provider API keys (BYOK only)**                   | `<provided by your instructor if applicable>`                                                   |

### Pre-provisioned resources — no setup required

* Your sandbox account already exists and has been assigned Account Admin or Org Admin access. You do not need to create or modify your own role.
* The AI Gateway infrastructure is already running in your sandbox. You are configuring which model families it serves — you are not installing or enabling the gateway itself.
* At least one agent from a prior module (M03 or earlier) should already exist in your sandbox Agent Builder. You will navigate to it in Procedure 4 to verify the Anthropic restriction. You do not need to modify that agent.

{% hint style="info" %}
The "Configure the AI Gateway" capability is distinct from "Use the AI Gateway." Developers can use the gateway (their agents call it automatically), but only Account Admins and Org Admins can configure which model families are enabled. If you cannot see the Edit configuration button in Gateway Settings, your account may not have the correct role — contact your instructor before proceeding.
{% endhint %}

## Configuration template

Use this template as a reference while completing Procedure 2 (Enable OpenAI) and Procedure 3 (Enable Gemini). Fill in the `<YOUR-VALUE>` fields as directed. Pre-filled values are the platform defaults — do not change them unless your instructor directs otherwise.

### OpenAI Family Configuration

| Field                        | Value                         | Notes                                                                                                                                        |
| ---------------------------- | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| **Family toggle**            | OpenAI — On                   | Turn on under Enable model families                                                                                                          |
| **Gateway**                  | UPTIQ AI Gateway              | Default — do not change unless instructed                                                                                                    |
| **Provider authentication**  | `<YOUR-VALUE>`                | Select UPTIQ managed key (uses org credit balance) or BYOK (you supply your own OpenAI API key). Your instructor will tell you which to use. |
| **BYOK key (if applicable)** | `<YOUR-VALUE>`                | Paste the OpenAI API key provided by your instructor. Leave blank if using UPTIQ managed key.                                                |
| **Provider**                 | OpenAI direct or Azure OpenAI | Select the provider your instructor specifies. Default is OpenAI direct.                                                                     |
| **Economy tier model**       | GPT 4o Mini                   | Platform default — change only if instructed                                                                                                 |
| **Smart tier model**         | GPT 4o                        | Platform default — change only if instructed                                                                                                 |
| **Premium tier model**       | GPT 4.1                       | Platform default — change only if instructed                                                                                                 |
| **Set as default**           | `<YOUR-VALUE>`                | Select Set as default if you want OpenAI to be the per-tenant default family. Exactly one family must be the default.                        |
| **Save action**              | **Save OpenAI**               | You must select Save OpenAI before configuring Gemini. There is no Save all.                                                                 |

### Gemini Family Configuration

| Field                        | Value                                     | Notes                                                                                                                                                                                                             |
| ---------------------------- | ----------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Family toggle**            | Gemini — On                               | Turn on under Enable model families                                                                                                                                                                               |
| **Gateway**                  | UPTIQ AI Gateway                          | Default — do not change unless instructed                                                                                                                                                                         |
| **Provider authentication**  | `<YOUR-VALUE>`                            | Select UPTIQ managed key or BYOK. Your instructor will tell you which to use.                                                                                                                                     |
| **BYOK key (if applicable)** | `<YOUR-VALUE>`                            | Paste the Google AI Studio API key provided by your instructor. Leave blank if using UPTIQ managed key.                                                                                                           |
| **Provider**                 | Google AI Studio or Google Agent Platform | Select the provider your instructor specifies. Default is Google AI Studio.                                                                                                                                       |
| **Economy tier model**       | Gemini 2.5 Flash                          | Platform default — change only if instructed                                                                                                                                                                      |
| **Smart tier model**         | Gemini 3 Flash Preview                    | Platform default — change only if instructed                                                                                                                                                                      |
| **Premium tier model**       | Gemini 3.1 Pro Preview                    | Platform default — change only if instructed                                                                                                                                                                      |
| **Set as default**           | `<YOUR-VALUE>`                            | Select Set as default if you want Gemini to be the per-tenant default family. Only one family can be the default at a time — setting Gemini as default removes the default from OpenAI if you set it there first. |
| **Save action**              | **Save Gemini**                           | You must select Save Gemini before navigating away.                                                                                                                                                               |

{% hint style="warning" %}
Save applies to one family at a time. There is no "Save all" button. If you switch from one family's configuration panel to another without saving, your pending changes for the first family are discarded silently. Always select Save \[Family Name] before moving to the next family.
{% endhint %}

## Step-by-step instructions

### Procedure 1 — Watch the Demo

{% stepper %}
{% step %}
**Watch the Gateway Settings screencasted demo**

Watch the 4-minute screencasted demo before beginning the hands-on steps. The demo shows the complete Edit configuration flow: opening Gateway Settings, enabling a model family, selecting a gateway and provider authentication, assigning models to Economy, Smart, and Premium tiers, selecting Save \[Family Name], and navigating Back to summary.

Pay particular attention to:

* The per-family save requirement — the demo shows what happens if you navigate away before saving
* Where the Set as default option appears within the Edit configuration flow
* How the Back to summary view confirms the configuration

You do not need to follow along in your sandbox during the demo. The hands-on steps begin in Procedure 2.
{% endstep %}
{% endstepper %}

### Procedure 2 — Enable and Configure OpenAI

{% stepper %}
{% step %}
**Navigate to Gateway Settings**

In Control Center, select AI Gateway in the left navigation, then select Gateway Settings.

You should see the Gateway Settings summary page. If no model families have been configured yet, the page shows an empty or unconfigured state.

{% hint style="info" %}
**Checkpoint:** Confirm you can see a Edit configuration button or link on this page. If you do not see it, your account role may not include the "Configure the AI Gateway" capability. Contact your instructor before continuing.
{% endhint %}
{% endstep %}

{% step %}
**Open Edit configuration**

Select Edit configuration.

You should see the Enable model families panel, which lists the available model families with toggle switches.
{% endstep %}

{% step %}
**Enable OpenAI**

Under Enable model families, turn on the OpenAI toggle.

The OpenAI configuration panel expands below the toggle.
{% endstep %}

{% step %}
**Select the gateway**

In the OpenAI configuration panel, confirm the gateway is set to UPTIQ AI Gateway. This is the default and should already be selected.
{% endstep %}

{% step %}
**Select provider authentication**

Select your provider authentication method:

* **UPTIQ managed key** — usage draws on your organization's credit balance; the platform manages the credential. Select this if your instructor has not provided an API key.
* **Bring your own key (BYOK)** — you supply your own OpenAI API key; OpenAI bills your organization directly. Select this if your instructor has provided an API key, then paste the key into the field that appears.

{% hint style="info" %}
BYOK keys are write-only once saved. You cannot read back a key you have entered. To rotate a key, enter the new key against the same provider — the old key is replaced.
{% endhint %}
{% endstep %}

{% step %}
**Assign models to tiers**

Review the tier model assignments for OpenAI. The platform defaults are:

* **Economy:** GPT 4o Mini
* **Smart:** GPT 4o
* **Premium:** GPT 4.1

Accept the defaults unless your instructor directs you to change them.

{% hint style="info" %}
**Concept:** Applications request a tier (Economy, Smart, or Premium), not a specific model name. This means you can change the model behind a tier here in Gateway Settings without editing any agent. Agents never need to know which specific model is running — they just ask for the capability level they need.
{% endhint %}
{% endstep %}

{% step %}
**Optionally set OpenAI as the default family**

If you want OpenAI to be the per-tenant default model family, select Set as default now, before saving.

The default family serves any agent request that does not specify a family. Exactly one enabled family can be the default at any time.

You can also set the default on Gemini after you configure it. Either family works for this exercise — your instructor may specify a preference.
{% endstep %}

{% step %}
**Save OpenAI**

Select Save OpenAI.

You should see a confirmation that the OpenAI configuration has been saved. The OpenAI family now shows a saved or enabled state in the panel.

{% hint style="warning" %}
Do not select the Gemini toggle or navigate to another family before completing this step. Unsaved changes are discarded without warning.
{% endhint %}

{% hint style="info" %}
**Checkpoint:** Confirm that the Save OpenAI action completed without an error message. If you see an error, check that your provider authentication is complete — a BYOK field left empty will prevent saving.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 3 — Enable and Configure Gemini

{% stepper %}
{% step %}
**Enable Gemini**

In the Enable model families panel (you should still be in Edit configuration), turn on the Gemini toggle.

The Gemini configuration panel expands.
{% endstep %}

{% step %}
**Select the gateway**

Confirm the gateway is set to UPTIQ AI Gateway.
{% endstep %}

{% step %}
**Select provider authentication**

Select your provider authentication method for Gemini:

* **UPTIQ managed key** — select this if your instructor has not provided a Google API key.
* **BYOK** — select this if your instructor has provided a Google AI Studio API key, then paste the key into the field that appears.
  {% endstep %}

{% step %}
**Select the provider**

Select the provider within the Gemini family:

* **Google AI Studio** — the default for most sandbox environments
* **Google Agent Platform** — select only if your instructor specifies this
  {% endstep %}

{% step %}
**Assign models to tiers**

Review the tier model assignments for Gemini. The platform defaults are:

* **Economy:** Gemini 2.5 Flash
* **Smart:** Gemini 3 Flash Preview
* **Premium:** Gemini 3.1 Pro Preview

Accept the defaults unless your instructor directs you to change them.
{% endstep %}

{% step %}
**Optionally set Gemini as the default family**

If you want Gemini to be the per-tenant default, select Set as default.

If you already set OpenAI as the default in Procedure 2, setting Gemini as default here will remove the default from OpenAI. Only one family can be the default at a time. Either choice is valid for this exercise.
{% endstep %}

{% step %}
**Save Gemini**

Select Save Gemini.

You should see a confirmation that the Gemini configuration has been saved.

{% hint style="info" %}
**Checkpoint:** Confirm that Save Gemini completed without error. Both OpenAI and Gemini should now show a saved or enabled state in the Edit configuration panel.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 4 — Confirm the Default and Return to Summary

{% stepper %}
{% step %}
**Select Back to summary**

Select Back to summary to exit the Edit configuration flow and return to the Gateway Settings summary view.
{% endstep %}

{% step %}
**Verify the summary**

On the Gateway Settings summary page, confirm:

* OpenAI shows **Enabled** status
* Gemini shows **Enabled** status
* Exactly one family is marked as the default

{% hint style="info" %}
**Checkpoint:** If either family does not show Enabled status, return to Edit configuration and verify that you selected Save \[Family Name] for that family. A family that was toggled on but not saved will not appear as Enabled in the summary.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 5 — Review the Model Catalog

{% stepper %}
{% step %}
**Navigate to the Model Catalog**

In the Control Center left navigation, select AI Gateway, then select Model Catalog.
{% endstep %}

{% step %}
**Locate the OpenAI and Gemini entries**

Find the OpenAI and Gemini families in the catalog. For each family, look at the provider status column.

You should see at least one provider per enabled family showing Enabled status. This confirms that authentication is configured and the gateway can route requests to that provider.

A provider showing Not configured means authentication has not been set up for that provider. Requests routed to a Not configured provider will fail at request time.

{% hint style="info" %}
**Concept:** The Model Catalog is read-only. It shows you what is available and whether each provider is authenticated. All configuration happens in Gateway Settings. Use the catalog to verify your work and to check model availability before assigning a model to a tier.
{% endhint %}
{% endstep %}

{% step %}
**Note the Anthropic entry**

Locate the Anthropic family in the Model Catalog. Note that it is present in the catalog but is marked Dev only.

You will verify in Procedure 6 that this Dev only status means Anthropic does not appear as a selectable option in the agent builder's Model Family dropdown for production agents.

{% hint style="info" %}
**Checkpoint:** Confirm that at least one provider for OpenAI shows Enabled status and at least one provider for Gemini shows Enabled status. If both show Not configured, return to Gateway Settings and verify your provider authentication settings were saved correctly.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 6 — Verify Anthropic Is Not Available for Production

{% stepper %}
{% step %}
**Navigate to an agent in Agent Builder**
{% endstep %}

{% step %}
**Open Agent Config and navigate to Agent Behavior**

In the agent, open Agent Config, then select Agent Behavior (or the equivalent settings page where the Model Family field appears).
{% endstep %}

{% step %}
**Open the Model Family dropdown**

Select the Model Family dropdown to expand it.

You should see OpenAI and Gemini listed as selectable production families. Anthropic should appear in the list marked as Dev only — it is visible but not selectable for production agents.

{% hint style="info" %}
**Checkpoint:** Confirm that Anthropic appears as Dev only and cannot be selected as a production model family. If Anthropic appears as a fully selectable option without a Dev only label, contact your instructor — this may indicate a sandbox configuration difference.
{% endhint %}
{% endstep %}

{% step %}
**Close the dropdown without saving**

Close the Model Family dropdown without making any changes. You do not need to save anything in this agent.
{% endstep %}
{% endstepper %}

## Troubleshooting

<details>

<summary>Fixes for common problems in this lab</summary>

| Symptom                                                                                    | Cause                                                                                                                                                                                                                        | Fix                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Edit configuration button is not visible on the Gateway Settings page**                  | Your account does not have the "Configure the AI Gateway" capability. This capability belongs only to Account Admin and Org Admin roles. Developer and Governance Manager roles can use the gateway but cannot configure it. | Contact your instructor to verify your sandbox account role. Do not proceed until your role is confirmed.                                                                                           |
| **Changes to a family's configuration are not reflected after returning to the summary**   | You navigated away from the family's configuration panel before selecting Save \[Family Name]. There is no Save all — each family must be saved individually.                                                                | Return to Edit configuration, re-enter the configuration for the affected family, and select Save \[Family Name] before moving to any other family or navigating away.                              |
| **Save \[Family Name] returns an error**                                                   | A required field is incomplete. The most common cause is a BYOK field left empty — if you selected BYOK as the authentication method, the key field must contain a valid API key before saving.                              | Check that all required fields are filled. If using UPTIQ managed key, confirm the gateway field is set to UPTIQ AI Gateway. If using BYOK, confirm the API key has been pasted into the key field. |
| **A provider shows Not configured in the Model Catalog after saving**                      | Authentication was not completed for that provider during the Gateway Settings configuration. The family may be enabled, but the specific provider within it has no credential.                                              | Return to Gateway Settings → Edit configuration → select the affected family → verify the provider authentication selection and re-save.                                                            |
| **Attempting to assign a tier to a model whose provider shows Not configured**             | The model is listed in the catalog but its provider has no authentication configured. Requests to this model will fail at runtime.                                                                                           | Either configure authentication for that provider in Gateway Settings, or assign the tier to a model whose provider shows Enabled status.                                                           |
| **Anthropic appears as a fully selectable production option in the Model Family dropdown** | Sandbox configuration difference, or the gateway has been configured to include Anthropic as a production family in this environment.                                                                                        | Contact your instructor. In a standard production configuration, Anthropic is Dev only and does not appear as a selectable production family.                                                       |
| **The Model Family dropdown in Agent Builder does not show OpenAI or Gemini**              | The families were not successfully enabled and saved in Gateway Settings, or the agent builder is not reflecting the latest gateway configuration.                                                                           | Return to Gateway Settings and verify both families show Enabled status in the summary. If they do, try refreshing the agent builder page.                                                          |

</details>

## Checkpoints and validation

### Embedded Checkpoints (Formative)

The following checkpoints confirm your configuration is correct before you move to the next procedure. Each checkpoint appears inline in the step-by-step instructions above and is summarized here for quick reference.

<details>

<summary>Checkpoint 1 — Edit configuration is accessible</summary>

Confirm you can see the Edit configuration button on the Gateway Settings summary page. If not, your account role does not include the "Configure the AI Gateway" capability. Do not proceed — contact your instructor.

</details>

<details>

<summary>Checkpoint 2 — OpenAI saved successfully</summary>

Confirm that the Save OpenAI action completed without an error message. If you see an error, check that your provider authentication is complete — a BYOK field left empty will prevent saving.

</details>

<details>

<summary>Checkpoint 3 — Gemini saved successfully</summary>

Confirm that Save Gemini completed without error. Both OpenAI and Gemini should now show a saved or enabled state in the Edit configuration panel.

</details>

<details>

<summary>Checkpoint 4 — Summary shows both families as Enabled with a default set</summary>

On the Gateway Settings summary page (after selecting Back to summary), confirm OpenAI shows Enabled, Gemini shows Enabled, and exactly one family is marked as the default. If either family does not show Enabled, return to Edit configuration and re-save that family.

</details>

<details>

<summary>Checkpoint 5 — Model Catalog shows at least one Enabled provider per family</summary>

In the Model Catalog, confirm at least one provider for OpenAI and at least one provider for Gemini shows Enabled status. If both providers for a family show Not configured, return to Gateway Settings and verify the provider authentication settings for that family.

</details>

<details>

<summary>Checkpoint 6 — Anthropic is Dev only in the Model Family dropdown</summary>

In Agent Builder → Agent Config → Agent Behavior → Model Family dropdown, confirm Anthropic appears as Dev only and is not selectable as a production family. OpenAI and Gemini should be selectable.

</details>

### Summative Assessment

<details>

<summary>Item 1</summary>

An agent is running a knowledge query when the Gemini provider becomes overloaded. What do users see?

* A) A spinning wheel while the platform retries
* B) An error code in the Run & Trace log
* C) A plain message indicating the provider is unavailable — retries do not pile up
* D) The agent switches to Anthropic automatically

**Correct answer:** C — A plain message indicating the provider is unavailable — retries do not pile up

**Enabling objective covered:** EO-7.3 (Apply) — explain how the gateway routes and recovers agent calls when a provider is overloaded or unavailable, including what users see during a provider outage

</details>

<details>

<summary>Item 2</summary>

You want to change the model behind the Smart tier for OpenAI without editing any agent. Where do you make this change?

* A) Agent Builder → Agent Config → Model Family
* B) Model Catalog → Edit
* C) Control Center → Govern → Agent Controls
* D) Control Center → AI Gateway → Gateway Settings → Edit configuration → OpenAI → Smart tier model assignment

**Correct answer:** D — Control Center → AI Gateway → Gateway Settings → Edit configuration → OpenAI → Smart tier model assignment

**Enabling objective covered:** EO-7.3 (Apply) — configure the AI Gateway to set per-tenant model defaults and tier assignments

</details>

## Solution reference

<details>

<summary>The completed state of your work</summary>

The following shows the completed configuration state for a sandbox where both OpenAI and Gemini have been successfully enabled, OpenAI has been set as the default, and UPTIQ managed key authentication has been used for both families.

### Gateway Settings — Completed State

#### OpenAI family

| Field                       | Completed value               |
| --------------------------- | ----------------------------- |
| **Family toggle**           | On (Enabled)                  |
| **Gateway**                 | UPTIQ AI Gateway              |
| **Provider authentication** | UPTIQ managed key             |
| **Provider**                | OpenAI direct                 |
| **Economy tier**            | GPT 4o Mini                   |
| **Smart tier**              | GPT 4o                        |
| **Premium tier**            | GPT 4.1                       |
| **Default**                 | Yes (Set as default selected) |

#### Gemini family

| Field                       | Completed value                            |
| --------------------------- | ------------------------------------------ |
| **Family toggle**           | On (Enabled)                               |
| **Gateway**                 | UPTIQ AI Gateway                           |
| **Provider authentication** | UPTIQ managed key                          |
| **Provider**                | Google AI Studio                           |
| **Economy tier**            | Gemini 2.5 Flash                           |
| **Smart tier**              | Gemini 3 Flash Preview                     |
| **Premium tier**            | Gemini 3.1 Pro Preview                     |
| **Default**                 | No (OpenAI is the default in this example) |

### Gateway Settings Summary — Expected View

* **OpenAI** — Enabled — Default
* **Gemini** — Enabled
* **Anthropic** — not listed as an enabled production family (it remains Dev only)

### Model Catalog — Expected View

In the Model Catalog:

* OpenAI family: at least one provider (OpenAI direct or Azure OpenAI) shows **Enabled** status
* Gemini family: at least one provider (Google AI Studio or Google Agent Platform) shows **Enabled** status
* Anthropic family: visible in the catalog, marked **Dev only**; providers show **Not configured** because Anthropic has not been enabled for production

### Agent Builder Model Family Dropdown — Expected View

In any agent's Agent Config → Agent Behavior → Model Family dropdown:

* **OpenAI** — selectable
* **Gemini** — selectable
* **Anthropic** — visible, marked **Dev only**, not selectable for production

### Routing and Outage Behavior — Reference

The AI Gateway routes and recovers based on the required output format. When a provider is overloaded or unavailable:

* Users see a plain message indicating the provider is unavailable
* Retries do not pile up — the platform does not queue repeated retry attempts that produce a spinning wheel
* The gateway does not automatically switch to a different model family (for example, it does not fall back from Gemini to Anthropic)

This behavior is the result of the October 4 smarter model routing and outage recovery update.

Sources: PKB LO3 (AI Gateway configuration, model families, model tiers, provider authentication, Model Catalog, routing and outage behavior); PKB Section 3 — Phase 3 AI Gateway exercise (procedures, setup requirements, expected outputs, common failure points); PKB Terminology — AI Gateway, Model family, Model tier, Bring your own key (BYOK), UPTIQ managed key.

</details>

{% hint style="success" %}
**Lab complete.** Confirm every checkpoint above before you move on.
{% endhint %}


---

# 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/academy/tier-2-core-skills/m07-governance-rbac-ai-gateway-configuration/lab-5-configure-the-ai-gateway-for-production.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.
