Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A model service is a governed endpoint in Unity Catalog that routes inference requests to one or more models, with traffic splitting and fallbacks. Callers query a model service by its three-part name, such as system.ai.claude-opus-5 or main.default.support_assistant, through real-time requests. Because a model service is a Unity Catalog securable, you govern access with the same GRANT and REVOKE statements you use for tables and functions, and Unity Gateway applies rate limits, guardrails, and usage tracking to its traffic.
There are two kinds of model service:
- A system-provided model service that Azure Databricks already created in
system.ai, such assystem.ai.claude-opus-5. - A custom model service that you create in your own catalog and schema. See Custom model services.
Both are the same kind of Unity Catalog resource, but they differ in ownership, location, billing, and lifecycle.
System-provided model services
Azure Databricks creates and maintains system-provided model services in system.ai. A system user owns them, and you can query them without any setup. By default, only metastore admins can modify them. A metastore admin can delegate this with the MANAGE privilege on system.ai. You can't delete them. To restrict who can query them, see Discover and govern access to model services.
To see which foundation models they serve, see System-provided model services .
Compare system-provided and custom model services
| Property | System-provided | Custom |
|---|---|---|
| Owner | A system user. | The user who creates it. |
| Location | system.ai |
A catalog and schema you choose. |
| Destinations | One pay-per-token foundation model. | Up to 10 primary destinations and up to 5 fallback destinations, which can mix destination types. |
| Billing | Per token. | Depends on the destination type. See What a model service can route to. |
| Delete | Not allowed. | The owner, or a principal with MANAGE. |
ai_query support |
Today, supported. See Query model services with ai_query. |
Today, not supported. |
What a model service can route to
Each place a model service sends traffic is a destination. A custom model service can have several destinations, and each destination has a destination type that describes what backs it:
| Destination type | Backed by |
|---|---|
| Pay-per-token foundation model | A Azure Databricks-served foundation model billed per token. See Foundation Model APIs pay-per-token. |
| Provisioned throughput foundation model | A Azure Databricks-served foundation model with reserved capacity. See Foundation Model APIs provisioned throughput. |
| External foundation model | A model from an external provider, such as OpenAI, Anthropic, or Amazon Bedrock, reached through a model provider service. |
The destination type is a property of each destination, not a category of model service. One model service can mix destination types. For example, you can send most traffic to a pay-per-token model and configure an external model as a fallback.
Find model services
You can find the model services you have access to in:
- Catalog Explorer: Browse to a catalog and schema. System-provided model services are under
system.ai. - The Unity Gateway UI: Open Unity Gateway in your workspace and go to the Models tab.
- The Unity Catalog REST API: Send a
GETrequest to/api/2.1/unity-catalog/model-services. The response includes only the model services you can access.
Privileges
Model services use the following Unity Catalog privileges. A principal also needs USE CATALOG and USE SCHEMA on the parent catalog and schema.
| Privilege | Grants the ability to |
|---|---|
CREATE SERVICE (on the schema) |
Create a custom model service in the schema. |
EXECUTE |
Query the model service. |
MANAGE |
Modify the model service and manage its grants. Delete a custom model service. |
The owner of a custom model service can query it, modify it, manage its grants, and delete it without separate grants. Ownership doesn't grant CREATE SERVICE on the schema. No one can delete a system-provided model service. To manage one, you must be a metastore admin or have MANAGE on system.ai.
For the full privilege model and how to grant access, see Discover and govern access to model services.