Provider Slug:
databricksHow It Works
By default, Portkey routes requests to Databricksβ AI Gateway endpoint (/ai-gateway/...) when no serving endpoint name is specified. This uses Databricksβ pay-per-token Foundation Model APIs.
If you specify a databricksServingEndpointName (or databricks_serving_endpoint_name) in your provider configuration, Portkey will route to /serving-endpoints/<name>/invocations instead, which is useful for provisioned throughput endpoints or custom model deployments.
Pricing in Logs: Databricks currently only supports custom pricing. Cost data will only appear in your Portkey logs if you configure custom pricing for your Databricks models in the Model Catalog.
Quick Start
Get Databricks working in 3 steps:Tip: You can also set
provider="@databricks" in Portkey() and use just model="databricks-meta-llama-3-1-70b-instruct" in the request.Add Provider in Model Catalog
- Go to Model Catalog β Add Provider
- Select Databricks
- Choose existing credentials or create new by entering your Databricks personal access token and workspace name
- Name your provider (e.g.,
databricks-prod)
Configuration Parameters
When using headers directly, pass the workspace name via the
x-portkey-databricks-workspace header and the serving endpoint name via the x-portkey-databricks-serving-endpoint-name header.
Complete Setup Guide β
See all setup options, code examples, and detailed instructions
Supported Endpoints
Supported Features
Embeddings
Generate embeddings using Databricks-hosted embedding models:Responses API
Use the OpenAI Responses API format with Databricks models:Messages API
Use the Anthropic Messages API format with Databricks-hosted Anthropic models (e.g., Claude):The
/messages endpoint is only supported for Anthropic models deployed on Databricks. It routes to Databricksβ /ai-gateway/anthropic/v1/messages endpoint.Supported Models
Databricks Model Serving supports a variety of foundation models and custom endpoints:- Meta Llama Models:
databricks-meta-llama-3-1-70b-instruct,databricks-meta-llama-3-1-405b-instruct - DBRX:
databricks-dbrx-instruct - Embedding Models:
databricks-bge-large-en,databricks-gte-large-en - Custom Endpoints: Any model deployed as a Databricks serving endpoint
Next Steps
Add Metadata
Add metadata to your Databricks requests
Gateway Configs
Add gateway configs to your Databricks requests
Tracing
Trace your Databricks requests
Fallbacks
Setup fallback strategies with Databricks
SDK Reference
Complete Portkey SDK documentation

