---
title: Unity Gateway concepts
description: Connect applications and agents to AI models and tools with Unity Gateway. Manage access, routing, usage, and cost in one place.
canonical_url: https://docs.databricks.com/aws/en/unity-gateway/concepts
---

# Unity Gateway concepts

Unity Gateway brings registration, discovery, and access to AI models and tools into one place. Control who can use them, monitor usage, and manage cost across applications and agents.

Unity Gateway uses these concepts to manage models, model providers, tools, skills, and guardrails implemented with [service policies](https://docs.databricks.com/aws/en/data-governance/unity-catalog/service-policies/index.md):

| Concept                                                                                                                               | What it does                                                                                                                                                                                                                                                                                                                                                                                                         | Example                                                                                                                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="model" />Model                                                                                                                 | An LLM or embedding model. A registered model needs a model service to serve requests.                                                                                                                                                                                                                                                                                                                               | `gpt-astra-6`.                                                                                                                                                                                                                                                                                  |
| <a id="model-service" />Model service                                                                                                 | An endpoint that translates and routes inference requests to one or more models, with [traffic splitting and fallbacks](https://docs.databricks.com/aws/en/ai-gateway/configure-traffic-splitting.md). Supports [real-time requests](https://docs.databricks.com/aws/en/ai-gateway/query-model-services.md), plus [batch inference](https://docs.databricks.com/aws/en/ai-gateway/query-model-services.md#ai-query). | `frontier-model`: GPT Astra 6 on Databricks, with Claude Opus 5 as a fallback.<br />`opus-5`: Opus 5 provided by Databricks, with AWS Bedrock as a fallback.                                                                                                                                    |
| <a id="model-provider" />[Model provider](https://docs.databricks.com/aws/en/ai-gateway/model-provider-services.md)                   | A connection that routes requests to an external model provider using centrally managed credentials.                                                                                                                                                                                                                                                                                                                 | `anthropic-prod`: A connection to Anthropic.                                                                                                                                                                                                                                                    |
| <a id="mcp" />[MCP](https://docs.databricks.com/aws/en/agents/mcp-tools/index.md)                                                     | An interface for agents to discover and call tools through the Model Context Protocol (MCP).                                                                                                                                                                                                                                                                                                                         | `support-tools`: Tools for Slack and Jira.                                                                                                                                                                                                                                                      |
| <a id="skill" />[Skill](https://docs.databricks.com/aws/en/agents/uc-skills/index.md)                                                 | Reusable instructions and files an agent loads to guide its work.                                                                                                                                                                                                                                                                                                                                                    | `customer-support`: A support playbook.                                                                                                                                                                                                                                                         |
| <a id="service-policy" />[Service policy](https://docs.databricks.com/aws/en/data-governance/unity-catalog/service-policies/index.md) | Implements guardrails that check requests and responses to AI services, using built-in, custom, or [external](https://docs.databricks.com/aws/en/data-governance/unity-catalog/service-policies/external-policies.md) policies.                                                                                                                                                                                      | The built-in [`detect_sensitive_data`](https://docs.databricks.com/aws/en/data-governance/unity-catalog/service-policies/detect-sensitive-data.md) policy detects configured types of sensitive data, such as credit card numbers, in model requests and responses. It denies or masks matches. |

## How the pieces fit together

Call a model service to reach `gpt-astra-6` on Databricks, with the same model available through `aws-bedrock` as a fallback. You can change models or fallbacks without changing the name your application calls. Attach the built-in Sensitive Data Detection service policy to the model service to check requests and responses for configured sensitive-data categories.

![The codex agent loads the customer-support skill and calls a model service protected by the detect\_sensitive\_data service policy, which checks model requests and responses. The model service routes to gpt-astra-6 on Databricks or falls back to the same model through the aws-bedrock model provider. The agent also accesses Slack and Jira through MCP.](https://docs.databricks.com/aws/en/images/ai-gateway/unity-gateway-concepts.png)

## Call models and tools

Replace `<workspace-url>` and the illustrative names with your own. See the [quickstart](https://docs.databricks.com/aws/en/unity-gateway/quickstart.md) to set `DATABRICKS_TOKEN`.

### Model service

Model services support unified APIs such as [OpenAI-compatible Chat Completions](https://docs.databricks.com/aws/en/ai-gateway/query-model-services.md#query-model-services-with-unified-apis) and provider-native APIs such as [Anthropic Messages](https://docs.databricks.com/aws/en/machine-learning/model-serving/query-anthropic-messages.md) for compatible models.

Call `frontier-model` with the unified Chat Completions API. The service chooses the model:

```bash
curl "https://<workspace-url>/ai-gateway/mlflow/v1/chat/completions" \
  -H "Authorization: Bearer $DATABRICKS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "production.ai.frontier-model",
    "max_tokens": 256,
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
```

See [Query foundation and embedding models](https://docs.databricks.com/aws/en/ai-gateway/query-model-services.md) for SDK examples and other APIs.

### Model provider

Call an external model through `anthropic-prod` using the Anthropic Messages API. The header selects the connection, and Unity Gateway supplies its credentials:

```bash
curl "https://<workspace-url>/ai-gateway/anthropic/v1/messages" \
  -H "Authorization: Bearer $DATABRICKS_TOKEN" \
  -H "Databricks-Model-Provider-Service: production.ai.anthropic-prod" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-5",
    "max_tokens": 256,
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
```

See [Query external model providers (model provider services)](https://docs.databricks.com/aws/en/ai-gateway/query-model-provider-services.md) for supported provider APIs.

### MCP

List the tools available through `support-tools`:

```bash
curl "https://<workspace-url>/ai-gateway/mcp-services/production.ai.support-tools" \
  -H "Authorization: Bearer $DATABRICKS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/list",
    "params": {}
  }'
```

See [Call MCP tools from a Python agent](https://docs.databricks.com/aws/en/agents/custom-agents/use-mcp-tools.md) for tool calls and agent integrations.

## Unity Catalog and access control

Unity Gateway integrates with [Unity Catalog](https://docs.databricks.com/aws/en/data-governance/unity-catalog/index.md) to control who [creates services](https://docs.databricks.com/aws/en/ai-gateway/model-services.md#create-a-model-service), [onboards model providers](https://docs.databricks.com/aws/en/ai-gateway/create-model-provider-services.md), calls them, or shares access. Unity Catalog also governs registered models, skills, and who can [attach service policies](https://docs.databricks.com/aws/en/data-governance/unity-catalog/service-policies/create-service-policy.md).

### Unity Catalog securables

Models, model services, model providers, MCPs, and skills are [Unity Catalog securables](https://docs.databricks.com/aws/en/data-governance/unity-catalog/securable-objects.md): objects you can grant permissions on. Their names follow `catalog.schema.name`, such as `production.ai.frontier-model`. Databricks-provided model services are registered in `system.ai`.

A model provider is registered as a model provider service in Unity Catalog. Service policies attach to services and aren't standalone securables.

In Unity Catalog, a model is an asset at rest: versions, metadata, and artifacts. Registering it doesn't make it callable. For external models, register the model provider connection instead of the model.

### Key permissions

Grant permissions to users, groups, or service principals. For [model services](https://docs.databricks.com/aws/en/ai-gateway/govern-model-services.md), [model providers](https://docs.databricks.com/aws/en/ai-gateway/govern-model-provider-services.md), and [MCPs](https://docs.databricks.com/aws/en/ai-gateway/govern-mcp-service.md#control-callers), the main permissions separate use from administration:

| Privilege        | What it allows                                           |
| ---------------- | -------------------------------------------------------- |
| `EXECUTE`        | Call a model service, a model provider, or an MCP.       |
| `CREATE SERVICE` | Create services and onboard model providers in a schema. |
| `READ METADATA`  | Inspect configuration.                                   |
| `MANAGE`         | Change configuration and grant access to others.         |

Callers also need `USE CATALOG` and `USE SCHEMA` on the parent catalog and schema. Service policies constrain authorized calls. They don't grant access. See each concept's page for its full permission requirements.

## Get started

Start with a ready-to-use model service from `system.ai`, or connect your coding agent:

| Topic                                                                                              | Description                                                         |
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [Send your first request](https://docs.databricks.com/aws/en/unity-gateway/quickstart.md)          | Query a model and see its usage in the gateway.                     |
| [Connect a coding agent](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-quickstart.md) | Use your preferred coding agent with models provided by Databricks. |
| [Monitor usage](https://docs.databricks.com/aws/en/ai-gateway/observability.md)                    | Inspect model and tool activity, performance, and cost.             |
| [Set up governance](https://docs.databricks.com/aws/en/ai-gateway/ai-governance.md)                | Configure access and policies for your organization's AI usage.     |
