# Databricks

[Databricks Model Serving](https://docs.databricks.com/aws/en/machine-learning/model-serving/score-foundation-models) hosts foundation models behind endpoints in your Databricks workspace. AISIX gives applications one OpenAI-compatible API for those endpoints while managing the workspace token, caller access, rate limits, and usage accounting.

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

Before starting, prepare the following:

* One AISIX setup:

  <!-- -->

  * For AISIX Enterprise or AISIX Cloud, an environment with an attached gateway and a write-scoped admin token. For AISIX Enterprise, follow the [AISIX Enterprise getting-started guide](https://docs.api7.ai/ai-gateway/getting-started/aisix-cloud-quickstart.md). To request AISIX Cloud access, [contact API7](https://api7.ai/contact).
  * For the open-source AISIX gateway, prepare either a local AISIX installation or the Docker setup from the [AISIX OSS getting-started guide](https://docs.api7.ai/ai-gateway/getting-started/gateway-quickstart.md). Configure the gateway to load a declarative resources file.

* A Databricks workspace with Model Serving enabled and at least one serving endpoint you can query.

* The [workspace instance name](https://docs.databricks.com/aws/en/workspace/workspace-details) for that workspace, which is the host portion of the per-workspace URL you sign in to. It looks like `dbc-a1b2c3d4-e5f6.cloud.databricks.com` on AWS, `adb-<workspace-id>.<number>.azuredatabricks.net` on Azure, and `<workspace-id>.<number>.gcp.databricks.com` on Google Cloud.

* A Databricks API token whose identity has [`CAN QUERY` permission](https://docs.databricks.com/aws/en/security/auth/access-control#serving-endpoint-acls) on every serving endpoint that AISIX will access. The examples use a workspace personal access token. Databricks recommends [OAuth machine-to-machine authentication](https://docs.databricks.com/aws/en/dev-tools/auth/oauth-m2m) for production, but AISIX stores the bearer token as a static provider-key credential and does not refresh it. If you use a short-lived OAuth access token, refresh the provider-key credential before the token expires.

* `curl` and `jq`.

## Configure with AISIX Enterprise or AISIX Cloud[​](#configure-with-aisix-enterprise-or-aisix-cloud "Direct link to Configure with AISIX Enterprise or AISIX Cloud")

Export the control-plane connection details:

```
# AISIX_CP is the Admin API base URL; include /api and omit a trailing slash

# The local AISIX Enterprise quickstart uses http://localhost:8080/api

export AISIX_CP="YOUR_AISIX_CONTROL_PLANE_API_URL"

export AISIX_TOKEN="YOUR_ADMIN_TOKEN"

export ENV_ID="YOUR_ENVIRONMENT_ID"
```

Create a provider key, model alias, and caller API key for the Databricks-backed chat-completions route.

Databricks is a community catalog provider with an OpenAI-compatible API. AISIX connects through the `openai` adapter and uses the workspace-specific serving root as `api_base`. AISIX does not supply a curated base URL or provider-specific request and response rewrites. The sections below also explain Databricks' token-limit parameter name.

Databricks exposes two OpenAI-compatible workspace surfaces. Keep each base URL paired with its own model naming scheme:

| Databricks surface                                 | `api_base`                                          | Upstream `model_name`                                                                   |
| -------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------------------------------------------- |
| Model Serving endpoint, used throughout this guide | `https://<workspace-instance>/serving-endpoints`    | A serving endpoint name, such as `databricks-claude-sonnet-4-5` or a name you assigned. |
| Unity AI Gateway model service (Beta)              | `https://<workspace-instance>/ai-gateway/mlflow/v1` | A fully qualified model service name, such as `system.ai.claude-sonnet-4-5`.            |

Databricks recommends its Beta model services for new access to Databricks-hosted foundation models. The Model Serving surface remains supported and also covers provisioned-throughput, external-model, and OpenAI-compatible custom endpoints. See [Query a chat model](https://docs.databricks.com/aws/en/machine-learning/model-serving/query-chat-models) for both request shapes. Do not use a `system.ai.*` model service name with the `/serving-endpoints` base configured below.

### Create a Provider Key[​](#create-a-provider-key "Direct link to Create a Provider Key")

Create the provider key that stores the Databricks token and the workspace serving root:

```
# Replace with your values

export DATABRICKS_HOST="dbc-a1b2c3d4-e5f6.cloud.databricks.com"

export DATABRICKS_TOKEN="YOUR_PROVIDER_API_KEY"



PROVIDER_KEY_ID=$(curl -sS -X POST "$AISIX_CP/provider_keys" \

  -H "Authorization: Bearer $AISIX_TOKEN" \

  -H "Content-Type: application/json" \

  -d '{

    "display_name": "databricks-prod",

    "provider": "databricks",

    "api_key": "'"${DATABRICKS_TOKEN}"'",

    "api_base": "https://'"${DATABRICKS_HOST}"'/serving-endpoints",

    "allowed_environments": ["'"${ENV_ID}"'"]

  }' | jq -r '.provider_key.id')



echo "$PROVIDER_KEY_ID"
```

❶ `provider` is `databricks`. The AISIX Cloud Admin API accepts the value because `databricks` is a models.dev catalog ID, and derives the `openai` adapter with bearer authentication from the community catalog rule. The `adapter` field is only accepted on BYO provider keys, so do not send it here.

❷ `api_key` stores the Databricks personal access token. Databricks authenticates its OpenAI-compatible surface with HTTP bearer authentication, which is what the `openai` adapter already sends. The value follows the credential-handling behavior in [Provider Keys](https://docs.api7.ai/ai-gateway/models/provider-keys.md#credential-handling).

❸ `api_base` is `https://<workspace-instance>/serving-endpoints`. Databricks documents this root as the OpenAI client's `base_url` in [External models in Model Serving](https://docs.databricks.com/aws/en/machine-learning/foundation-models/external-models), which makes the full chat endpoint `https://<workspace-instance>/serving-endpoints/chat/completions`. AISIX appends the endpoint path, such as `/chat/completions`, to `api_base`, so the configured value must stop at `/serving-endpoints`. If you paste the full endpoint URL instead, AISIX strips the trailing `/chat/completions` and any trailing slash, but the root above is the value to configure.

caution

`api_base` is required for Databricks. Databricks has no shared public API host: every request goes to your own workspace instance, so there is no value AISIX can supply on your behalf.

For a community-catalog provider, the AISIX Cloud Admin API falls back to the base URL published in the models.dev catalog entry when you omit `api_base`. The Databricks entry publishes `https://${DATABRICKS_HOST}/ai-gateway/mlflow/v1`. This is the Unity AI Gateway model-service root, but its workspace host is an unresolved template. AISIX does not fill in a template. A create request without `api_base` is refused with `400` and the message `models.dev does not publish a default api_base for this provider — set api_base explicitly`. Setting `api_base` explicitly also ensures that its API surface matches the model naming scheme you selected.

This guide does not cover [route-optimized serving endpoints](https://docs.databricks.com/aws/en/machine-learning/model-serving/query-route-optimization). They use a dedicated endpoint URL and endpoint-scoped OAuth credentials rather than the workspace URL and personal access token shown here.

The command captures the returned provider key ID in `PROVIDER_KEY_ID`.

### Create a Model[​](#create-a-model "Direct link to Create a Model")

On Databricks, the value AISIX sends upstream in `model` is the name of a serving endpoint in your workspace, not a vendor model ID. Two workspaces can serve the same weights under different endpoint names, so read the name from your own workspace rather than from a vendor catalog.

Endpoint names fall into two groups:

| Endpoint type                                                                | Naming                                                                                                                                     | Example                        |
| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------ |
| Databricks-hosted foundation model, pay-per-token                            | Databricks pre-provisions the endpoint. The name carries a `databricks-` prefix and spells the model version with hyphens instead of dots. | `databricks-claude-sonnet-4-5` |
| OpenAI-compatible custom, provisioned-throughput, or external-model endpoint | You choose the name when you create the endpoint. There is no prefix and no naming rule.                                                   | `openai-chat-endpoint`         |

Current pay-per-token endpoint names include `databricks-claude-sonnet-4-5`, `databricks-gpt-oss-120b`, and `databricks-gemini-2-5-pro`. The set rotates as Databricks adds and retires hosted models, so confirm the name against the [list of Databricks-hosted foundation models](https://docs.databricks.com/aws/en/machine-learning/foundation-model-apis/supported-models) or the Serving page in your workspace before creating an alias.

Create the model alias callers will send in requests:

```
MODEL_ID=$(curl -sS -X POST "$AISIX_CP/environments/$ENV_ID/models" \

  -H "Authorization: Bearer $AISIX_TOKEN" \

  -H "Content-Type: application/json" \

  -d '{

    "display_name": "databricks-sonnet-prod",

    "model_name": "databricks-claude-sonnet-4-5",

    "provider_key_id": "'"${PROVIDER_KEY_ID}"'"

  }' | jq -r '.model.id')



echo "$MODEL_ID"
```

❶ `display_name` is the alias callers send in `model`.

❷ `model_name` is the Databricks serving endpoint name. Do not carry over the underlying vendor model ID, such as `claude-sonnet-4-5`, from a page that documents the vendor's own API. An endpoint name that does not exist in the workspace fails at the upstream, not at alias-creation time.

❸ `provider_key_id` attaches the alias to the Databricks provider key. The credential can reach only the serving endpoints its identity has permission to query. One provider key can serve aliases for all permitted endpoints, or you can use separate identities and keys to preserve least-privilege boundaries between endpoint groups.

### Create a Caller API Key[​](#create-a-caller-api-key "Direct link to Create a Caller API Key")

Create the caller API key that can access the model alias. The plaintext key is server-generated and returned once in the create response, so capture it now:

```
AISIX_API_KEY=$(curl -sS -X POST "$AISIX_CP/environments/$ENV_ID/api_keys" \

  -H "Authorization: Bearer $AISIX_TOKEN" \

  -H "Content-Type: application/json" \

  -d '{

    "display_name": "databricks-caller",

    "allowed_models": ["'"${MODEL_ID}"'"]

  }' | jq -r '.plaintext')



echo "$AISIX_API_KEY"
```

The `allowed_models` value must reference the model ID captured in the previous step. After the write, the configuration projects to attached gateways automatically.

## Configure with AISIX OSS[​](#configure-with-aisix-oss "Direct link to Configure with AISIX OSS")

Export the upstream credential and choose the caller API key that applications will send to the gateway:

```
export DATABRICKS_TOKEN="YOUR_PROVIDER_API_KEY"

export DATABRICKS_HOST="YOUR_DATABRICKS_WORKSPACE_HOST"

export CALLER_API_KEY="YOUR_CALLER_API_KEY"

export CALLER_API_KEY_SHA256="$(printf '%s' "$CALLER_API_KEY" | sha256sum | cut -d ' ' -f 1)"
```

For a new gateway, use this complete resources file. For an existing gateway, merge the entries into its [current file](https://docs.api7.ai/ai-gateway/reference/resources-file.md#apply-resource-examples-safely), preserving its other resources:

resources.yaml

```
_format_version: "2"



provider_keys:

  - id: 42d225ca-30c6-4c58-a9b8-050ad42da094

    display_name: "databricks-prod"

    provider: "databricks"

    adapter: "openai"

    api_key: ${DATABRICKS_TOKEN}

    api_base: "https://${DATABRICKS_HOST}/serving-endpoints"



models:

  - id: 5a15d463-6d82-43fb-b786-0a13955542cc

    display_name: "databricks-sonnet-prod"

    provider: "databricks"

    model_name: "databricks-claude-sonnet-4-5"

    provider_key_id: 42d225ca-30c6-4c58-a9b8-050ad42da094



api_keys:

  - id: 203501a1-4b21-4c6b-9447-395d1202552c

    display_name: "databricks-caller"

    key_hash: ${CALLER_API_KEY_SHA256}

    allowed_models:

      - "databricks-sonnet-prod"
```

If AISIX is installed locally, validate the file before loading it:

```
aisix validate --resources resources.yaml
```

After validation, start the gateway with the referenced environment variables in its process environment. Reload an existing gateway only if those variables are already available to the process; otherwise, restart it with the updated environment.

If you use Docker, adapt the validation and startup commands in the [AISIX OSS getting-started guide](https://docs.api7.ai/ai-gateway/getting-started/gateway-quickstart.md). Mount this `resources.yaml` file and pass every environment variable it references with `-e` in both commands. After the resources load, prepare the shared verification request below:

```
export AISIX_API_KEY="$CALLER_API_KEY"
```

## Verify the Provider Connection[​](#verify-the-provider-connection "Direct link to Verify the Provider Connection")

Export the AISIX gateway origin:

```
# AISIX_PROXY has no trailing slash or endpoint path

# The local quickstarts use http://127.0.0.1:3000

export AISIX_PROXY="YOUR_AISIX_GATEWAY_URL"
```

Send a chat-completions request through the AISIX proxy:

```
curl -sS -X POST "$AISIX_PROXY/v1/chat/completions" \

  -H "Authorization: Bearer ${AISIX_API_KEY}" \

  -H "Content-Type: application/json" \

  -d '{

    "model": "databricks-sonnet-prod",

    "messages": [

      {

        "role": "user",

        "content": "Say hello from Databricks."

      }

    ],

    "max_tokens": 64

  }'
```

The gateway returns an OpenAI-compatible response that echoes the caller-facing alias `databricks-sonnet-prod`. Because the workspace host, the token, and the endpoint name are three separate values, each failure mode has a distinct signature:

| Symptom                             | Likely cause                                                                                             |
| ----------------------------------- | -------------------------------------------------------------------------------------------------------- |
| Upstream authentication error       | The Databricks API token is expired, or it belongs to a different workspace than the host in `api_base`. |
| Upstream `403` permission error     | The token's identity does not have `CAN QUERY` permission on the serving endpoint.                       |
| Upstream `404` on the endpoint path | `api_base` does not stop at `/serving-endpoints`, so AISIX built a path Databricks does not serve.       |
| Upstream error naming the endpoint  | `model_name` does not match a serving endpoint in the workspace.                                         |

## Set the Token-Limit Parameter[​](#set-the-token-limit-parameter "Direct link to Set the Token-Limit Parameter")

The [Databricks foundation model REST API reference](https://docs.databricks.com/aws/en/machine-learning/foundation-model-apis/api-reference) documents `max_tokens` as the generated-token cap. Some OpenAI clients and integrations use the newer `max_completion_tokens` name instead.

For featured providers whose upstream still expects the older name, the AISIX provider catalog registers the rename and applies it automatically. Databricks is a community-catalog entry, so no rename is registered for it: AISIX forwards whichever name the caller sent, unchanged. A client that sends `max_completion_tokens` therefore reaches Databricks with a parameter the documented API does not name.

If your clients send `max_completion_tokens`, configure a request rename on the provider key.

In AISIX Enterprise and AISIX Cloud, update the existing provider key in place. The `request` block is replaced in full, not merged field by field. The provider key created earlier has no request overrides, so the block below is complete. If your key already has request overrides, first retrieve its details and include every setting you want to keep in the replacement block. Supplying an empty `request` object clears the stored block.

An override affects every model alias that uses the provider key, whether you update it through the AISIX Cloud Admin API or a resources file. If the key serves production traffic, first validate the same override on a separate provider key used only by a non-production alias. Apply the shared-key change during a controlled change window.

```
curl -sS -X PATCH "$AISIX_CP/provider_keys/$PROVIDER_KEY_ID" \

  -H "Authorization: Bearer $AISIX_TOKEN" \

  -H "Content-Type: application/json" \

  -d '{

    "request": {

      "param_renames": {

        "max_completion_tokens": "max_tokens"

      }

    }

  }'
```

This request omits `response` and the credential fields, so those settings remain unchanged, and models continue to reference the same provider key.

For the open-source AISIX gateway, add the `request.param_renames` mapping shown below to the existing `databricks-prod` entry in `provider_keys`. Keep every other field on that entry, preserve every other entry and collection, and do not create a second top-level `provider_keys` key.

resources.yaml (updated provider key)

```
provider_keys:

  - id: 42d225ca-30c6-4c58-a9b8-050ad42da094

    display_name: "databricks-prod"

    provider: "databricks"

    adapter: "openai"

    api_key: ${DATABRICKS_TOKEN}

    api_base: "https://${DATABRICKS_HOST}/serving-endpoints"

    request:

      param_renames:

        max_completion_tokens: max_tokens
```

Validate and reload or restart the declarative resources file as described above. The rename rewrites the top-level parameter on every request that flows through the provider key, so it applies to every model alias that references it. When a request carries both names, AISIX keeps the value from the caller-facing source name. See [Provider-Specific Overrides](https://docs.api7.ai/ai-gateway/models/provider-keys.md#configure-provider-specific-overrides).

To verify, send a chat-completions request with `max_completion_tokens` set to a small value and confirm that the completion is truncated at that length.

## Send Reasoning Controls[​](#send-reasoning-controls "Direct link to Send Reasoning Controls")

Databricks re-serves models from several vendors behind one OpenAI-shaped surface, so reasoning controls depend on the model family behind the endpoint. Databricks documents the current controls in [Query reasoning models](https://docs.databricks.com/aws/en/machine-learning/model-serving/query-reason-models). AISIX forwards unrecognized top-level chat-completions parameters unchanged, but the accepted fields and values still depend on the upstream model.

For a GPT OSS endpoint, send `reasoning_effort` at the top level of the body. The example below assumes a second alias, `databricks-gptoss-prod`, created over the `databricks-gpt-oss-120b` serving endpoint:

```
{

  "model": "databricks-gptoss-prod",

  "messages": [

    {

      "role": "user",

      "content": "Plan a three-step migration."

    }

  ],

  "reasoning_effort": "low"

}
```

GPT OSS accepts `low`, `medium`, or `high`. Other model families use different values or an Anthropic-style `thinking` object, so confirm the control for the specific endpoint you configured.

Databricks returns Claude extended-thinking chat output as an array of typed reasoning and text blocks. A non-streaming response reaches each normalized endpoint as follows:

* `/v1/chat/completions` returns the array in `message.content` as Databricks sent it, signatures included. AISIX does not convert the reasoning blocks to `reasoning_content`.
* `/v1/messages` returns the text as a `text` block and the reasoning summary as a `thinking` block with `signature: ""`, as described in [Anthropic Messages](https://docs.api7.ai/ai-gateway/endpoints/anthropic-messages.md).
* `/v1/responses` returns the text as `output_text` and the reasoning summary as a `reasoning` output item, as described in [Responses API](https://docs.api7.ai/ai-gateway/endpoints/responses-api.md).

The reasoning text is also captured as reasoning by content exporters, and counted in the estimated completion tokens when Databricks reports no usage.

A stream whose `delta.content` is such an array keeps the order of its blocks on every endpoint. `/v1/chat/completions` returns the text of the `text` blocks as `delta.content` and the reasoning summary as `delta.reasoning_content`, so a streamed answer has a different shape from a non-streaming one. A chat delta has no field for a summary entry's `signature`, so the signatures are not returned. `/v1/messages` streams the reasoning summary as a `thinking` block, and `/v1/responses` streams it as a `reasoning` item. Content exporters and the estimated completion tokens count the streamed reasoning the same way as a non-streaming answer's.

A reasoning block replayed in an assistant turn on `/v1/chat/completions` is checked by input guardrails. A mask rule does not rewrite a `summary` entry that carries a non-empty `signature`, but a block rule still applies. See [Reasoning and Thinking Content](https://docs.api7.ai/ai-gateway/traffic-controls/guardrails/behavior.md#reasoning-and-thinking-content).

Use a Databricks-native endpoint through a passthrough route when you need streamed Claude reasoning blocks with their signatures. A passthrough route preserves the upstream response and does not rewrite an AISIX model alias. AISIX detects the chat envelope from `messages` and records token usage when the upstream response includes supported usage fields.

## Reach Databricks-Native Routes[​](#reach-databricks-native-routes "Direct link to Reach Databricks-Native Routes")

Databricks exposes native Responses routes that the AISIX `/v1/responses` bridge does not call:

| Databricks route                         | AISIX passthrough path                        | Scope                                                                                            |
| ---------------------------------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| `POST /serving-endpoints/open-responses` | `POST /passthrough/databricks/open-responses` | Open Responses format across Databricks-hosted open models, Anthropic Claude, and Google Gemini. |
| `POST /serving-endpoints/responses`      | `POST /passthrough/databricks/responses`      | Native OpenAI Responses API for OpenAI models served by Databricks.                              |

The `/passthrough/databricks` paths on this page assume a [passthrough route](https://docs.api7.ai/ai-gateway/endpoints/provider-passthrough.md) claiming that prefix, with the workspace serving root (`https://<workspace-instance>/serving-endpoints`) as its `target_url` and the Databricks provider key attached; grant the route on the caller key's `allowed_routes`.

The following example reaches the multi-provider Open Responses route. Send the Databricks serving endpoint name in `model`, not the AISIX alias:

```
curl -sS -X POST "$AISIX_PROXY/passthrough/databricks/open-responses" \

  -H "Authorization: Bearer ${AISIX_API_KEY}" \

  -H "Content-Type: application/json" \

  -d '{

    "model": "databricks-claude-sonnet-4-5",

    "input": [

      {

        "role": "user",

        "content": "Plan a three-step migration."

      }

    ],

    "max_output_tokens": 256

  }'
```

See [Query a model with the Open Responses API](https://docs.databricks.com/aws/en/machine-learning/model-serving/query-open-responses-models) for its supported fields and provider-specific behavior. The passthrough route forwards the request and response without Databricks-specific normalization. AISIX detects the Responses envelope from `input` and records every supported token dimension the response carries, including input, output, cache, and reasoning details. These counts are telemetry only: passthrough does not advance `tpm` or `tpd` counters, resolve a model cost, or add budget spend. If the provider response omits all supported token fields, the recorded token counts remain zero.

Databricks also scores an endpoint at `POST /serving-endpoints/{endpoint-name}/invocations`, which is not an OpenAI-shaped route. Use a [passthrough route](https://docs.api7.ai/ai-gateway/endpoints/provider-passthrough.md) to reach it.

The passthrough route forwards to `{target_url}/{rest}` without borrowing a model alias. Because the route's `target_url` ends with `/serving-endpoints`, the wildcard remainder starts at the endpoint name. Do not repeat `serving-endpoints` in the passthrough path:

```
curl -sS -X POST "$AISIX_PROXY/passthrough/databricks/databricks-claude-sonnet-4-5/invocations" \

  -H "Authorization: Bearer ${AISIX_API_KEY}" \

  -H "Content-Type: application/json" \

  -d '{

    "messages": [

      {

        "role": "user",

        "content": "Say hello from Databricks."

      }

    ],

    "max_tokens": 64

  }'
```

The native invocations body names the endpoint in the path and carries no top-level `model` field, so only caller API key rate limits apply to this call. On an inject-mode passthrough route, model-scoped request-count limits are matched from a `model` field in the request body naming a configured model of the route's provider. Prefer a normalized AISIX endpoint for traffic that must produce token usage or count against a model's token quota.

## Endpoint Coverage[​](#endpoint-coverage "Direct link to Endpoint Coverage")

A Databricks alias resolves through the `openai` adapter, so route support depends on what your serving endpoint implements and on each route's own provider rules.

| Route                       | Behavior with a Databricks alias                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/v1/chat/completions`      | Supported, including `stream: true`. Claude extended-thinking responses come back as typed content-block arrays: a non-streaming response returns the array as Databricks sent it, and a stream returns the reasoning as `delta.reasoning_content`.                                                                                                                                                                                                                                           |
| `/v1/responses`             | Supported through the [Responses bridge](https://docs.api7.ai/ai-gateway/endpoints/responses-api.md) over the chat adapter path because the alias's provider value is `databricks`, not `openai`. It does not call Databricks' native `/serving-endpoints/responses` or `/serving-endpoints/open-responses` route. OpenAI-specific Responses fields without a chat equivalent are ignored. A Claude extended-thinking response, streamed or not, returns its reasoning as a `reasoning` item. |
| `/v1/messages`              | Supported for Anthropic-shaped callers through translation. A Claude-family serving endpoint is translated as well, because the alias resolves to the `openai` adapter rather than the Anthropic one. A Claude extended-thinking response, streamed or not, returns its reasoning as a `thinking` block. Token counting at `/v1/messages/count_tokens` requires a model whose provider value is `anthropic`, so it is not available here.                                                     |
| `/v1/embeddings`            | Supported when the alias names a Databricks embedding serving endpoint. Databricks documents `client.embeddings.create` against the same `/serving-endpoints` root in [Serve custom LLMs with Custom Model Serving](https://docs.databricks.com/aws/en/machine-learning/model-serving/serve-custom-llms), so one provider key serves both chat and embedding aliases. See [Embeddings](https://docs.api7.ai/ai-gateway/endpoints/embeddings.md).                                              |
| `/v1/images/generations`    | Rejected. The route accepts only models whose provider is `openai` or whose provider key uses the `azure-openai` adapter (see [Provider Requirement](https://docs.api7.ai/ai-gateway/endpoints/image-generation.md#provider-requirement)).                                                                                                                                                                                                                                                    |
| `/v1/rerank`                | Rejected. The route accepts only the `openai`, `cohere`, and `jina` provider values.                                                                                                                                                                                                                                                                                                                                                                                                          |
| `/v1/videos`                | Rejected. The route's provider allowlist does not include `databricks`.                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `/passthrough/databricks/*` | Available through a configured [passthrough route](https://docs.api7.ai/ai-gateway/endpoints/provider-passthrough.md) for Databricks-native routes, including `/responses`, `/open-responses`, and endpoint invocations. The route forwards to its `target_url` and does not rewrite AISIX aliases. For the request shapes that record token usage, see [Envelope Detection and Usage](https://docs.api7.ai/ai-gateway/endpoints/provider-passthrough.md#envelope-detection-and-token-usage). |

## Next Steps[​](#next-steps "Direct link to Next Steps")

You have now connected AISIX to Databricks and verified the model alias. Continue with these guides:

* [Model Aliases](https://docs.api7.ai/ai-gateway/models/model-aliases.md): configure routing, retry behavior, or cost metadata for this alias.
* [Routing and Failover](https://docs.api7.ai/ai-gateway/routing/routing-and-failover.md): fail over between a Databricks endpoint and a second provider.
* [Provider-Specific Overrides](https://docs.api7.ai/ai-gateway/models/provider-keys.md#configure-provider-specific-overrides): adapt request and response shapes when an upstream API differs from its adapter.
* [Provider Compatibility](https://docs.api7.ai/ai-gateway/providers/compatibility.md): review supported proxy endpoints and provider-specific boundaries.
