Databricks
Databricks is available on the Spanway gateway through the databricks/ model prefix. You register a Databricks model once in the gateway's config.yaml (or through the Admin UI), and every application then calls it through the gateway's OpenAI-compatible API with a Spanway virtual key. The provider credential stays on the gateway, and every request is authenticated, rate limited, logged and costed in the same way as any other provider.
The gateway translates requests and responses for Databricks natively, so provider specific parameters and errors are mapped to the OpenAI format for you.
Supported endpoints
The gateway's endpoint support matrix lists the following endpoints for Databricks. Each link explains the request shape and the gateway features that apply to that endpoint.
- OpenAI Chat Completions API (
/chat/completions) - Anthropic Messages API (
/messages) - OpenAI Responses API (
/responses) - A2A (Agent-to-Agent) protocol for agent communication (
/a2a) - Google Interactions API (
/interactions)
Model types
The bundled price map lists 64 Databricks models across these modes: Embedding, Chat, Responses, Evaluation. The mode decides which gateway endpoint a model is meant for, and it is also used by the gateway's health checks to send the right kind of test request.
Environment variables
The Databricks integration reads the following environment variables. Variables marked as required are the ones the gateway's environment validation checks for this provider. You can also pass any of these values directly in spanway_params (for example api_key or api_base), and the per-model value wins over the environment.
| Variable | Required | Purpose |
|---|---|---|
DATABRICKS_API_BASE | No | Overrides the provider base URL |
DATABRICKS_API_KEY | No | Credential the gateway sends to the provider |
DATABRICKS_USER_AGENT | No | Read by the provider integration |
DATABRICKS_CLIENT_ID | No | Used for token based authentication |
DATABRICKS_CLIENT_SECRET | No | Credential the gateway sends to the provider |
Reference a variable from config.yaml with the os.environ/ prefix so that the secret never appears in the file itself. Secrets can also come from a secret manager, see secret managers.
Register a model on the gateway
Add an entry to model_list in config.yaml. The model_name is the public name your applications send, and spanway_params.model tells the gateway which provider and upstream model to call.
model_list:
- model_name: databricks-gemini-3-pro
spanway_params:
model: databricks/databricks-gemini-3-pro
api_key: os.environ/DATABRICKS_API_KEY
api_base: os.environ/DATABRICKS_API_BASE
Start the gateway with this file:
spanway --config config.yaml
Spanway is in private preview. The container images and Helm charts will be published soon. To request access, write to sales@spanway.ai, and preview customers receive download instructions in their onboarding pack.
To add the model without a restart, call POST /model/new with the same model_name and spanway_params, or use the Models + Endpoints page in the Admin UI. See model management for details.
Call the model through the gateway
Send requests to the gateway's /v1/chat/completions endpoint with a virtual key. The gateway maps the public model name to the Databricks deployment, translates the request, and returns the response in the OpenAI format.
curl -X POST http://localhost:4000/v1/chat/completions \
-H "Authorization: Bearer $SPANWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "databricks-gemini-3-pro",
"messages": [{"role": "user", "content": "Summarize what an AI gateway does in two sentences."}]
}'
The same request works from any OpenAI SDK by setting the base URL to http://localhost:4000 and the API key to a Spanway virtual key. Create keys with POST /key/generate as described in virtual keys.
Models and pricing
The table lists every Databricks model in the gateway's bundled price map. Prices are shown in US dollars per 1 million tokens, computed from the per-token values the gateway uses for spend tracking. Context window sizes are the provider limits recorded in the same file. Capabilities are the supports_* flags set for each model.
Prices come from the price map bundled with this Spanway build. They are used to calculate the spend recorded for each request, key, team and user. Your negotiated rates may differ, and you can override them per deployment with custom pricing.
Model (model value) | Mode | Max input tokens | Max output tokens | Input per 1M tokens | Output per 1M tokens | Other pricing | Capabilities |
|---|---|---|---|---|---|---|---|
databricks/ai_decide | Evaluation | $0 | $0 | ||||
databricks/databricks-bge-large-en | Embedding | 512 | $0.1 | $0 | |||
databricks/databricks-claude-fable-5 | Chat | 1,000,000 | 128,000 | $10.00 | $50.00 | tools, reasoning, prompt caching | |
databricks/databricks-claude-fable-5-1 | Chat | 1,000,000 | 128,000 | $10.00 | $50.00 | tools, vision, reasoning, prompt caching | |
databricks/databricks-claude-haiku-4-5 | Chat | 200,000 | 64,000 | $1.00 | $5.00 | tools, reasoning, prompt caching | |
databricks/databricks-claude-opus-4 | Chat | 200,000 | 32,000 | $15.00 | $75.00 | tools, reasoning, prompt caching | |
databricks/databricks-claude-opus-4-1 | Chat | 200,000 | 32,000 | $15.00 | $75.00 | tools, reasoning, prompt caching | |
databricks/databricks-claude-opus-4-5 | Chat | 200,000 | 64,000 | $5.00 | $25.00 | tools, reasoning, prompt caching | |
databricks/databricks-claude-opus-4-6 | Chat | 1,000,000 | 128,000 | $5.00 | $25.00 | tools, reasoning, prompt caching | |
databricks/databricks-claude-opus-4-7 | Chat | 1,000,000 | 128,000 | $5.00 | $25.00 | tools, vision, reasoning, prompt caching | |
databricks/databricks-claude-opus-4-8 | Chat | 1,000,000 | 128,000 | $5.00 | $25.00 | tools, vision, reasoning, prompt caching | |
databricks/databricks-claude-opus-5 | Chat | 1,000,000 | 128,000 | $5.00 | $25.00 | tools, vision, reasoning, prompt caching | |
databricks/databricks-claude-opus-5-5 | Chat | 1,000,000 | 128,000 | $4.00 | $20.00 | tools, vision, reasoning, prompt caching | |
databricks/databricks-claude-sonnet-4 | Chat | 200,000 | 64,000 | $3.00 | $15.00 | tools, reasoning, prompt caching | |
databricks/databricks-claude-sonnet-4-1 | Chat | 200,000 | 64,000 | $3.00 | $15.00 | tools, reasoning, prompt caching | |
databricks/databricks-claude-sonnet-4-5 | Chat | 200,000 | 64,000 | $3.00 | $15.00 | tools, reasoning, prompt caching | |
databricks/databricks-claude-sonnet-4-6 | Chat | 1,000,000 | 64,000 | $3.00 | $15.00 | tools, reasoning, prompt caching | |
databricks/databricks-claude-sonnet-5 | Chat | 1,000,000 | 128,000 | $3.00 | $15.00 | tools, vision, reasoning, prompt caching | |
databricks/databricks-deepseek-v4-flash-0731 | Chat | 1,000,000 | 393,216 | $0.14 | $0.28 | tools, reasoning, prompt caching | |
databricks/databricks-deepseek-v4-pro-0813 | Chat | 1,000,000 | 393,216 | $1.32 | $3.96 | tools, reasoning, prompt caching | |
databricks/databricks-gemini-2-5-flash | Chat | 1,048,576 | 65,535 | $0.3 | $2.50 | tools, vision, reasoning, prompt caching, audio in, video in | |
databricks/databricks-gemini-2-5-pro | Chat | 1,048,576 | 65,536 | $1.25 | $10.00 | tools, vision, reasoning, prompt caching, audio in, video in | |
databricks/databricks-gemini-3-1-flash-image | Chat | 131,072 | 32,768 | vision | |||
databricks/databricks-gemini-3-1-flash-lite | Chat | 1,048,576 | 65,536 | $0.312 | $1.88 | tools, vision, prompt caching, audio in, video in | |
databricks/databricks-gemini-3-1-pro | Chat | 1,048,576 | 65,536 | $2.50 | $15.00 | tools, vision, reasoning, prompt caching, audio in, video in | |
databricks/databricks-gemini-3-5-flash | Chat | 1,048,576 | 65,536 | $1.88 | $11.25 | tools, vision, reasoning, prompt caching | |
databricks/databricks-gemini-3-5-flash-lite | Chat | 1,048,576 | 65,536 | $0.375 | $3.13 | tools, vision, reasoning, prompt caching, structured output | |
databricks/databricks-gemini-3-6-flash | Chat | 1,048,576 | 65,536 | $1.88 | $9.38 | tools, vision, reasoning, prompt caching | |
databricks/databricks-gemini-3-7-flash | Chat | 1,048,576 | 65,536 | tools, vision, reasoning | |||
databricks/databricks-gemini-3-8-flash | Chat | 1,048,576 | 65,536 | tools, vision, reasoning | |||
databricks/databricks-gemini-3-flash | Chat | 1,048,576 | 65,536 | $0.625 | $3.75 | tools, vision, prompt caching, audio in, video in | |
databricks/databricks-gemini-3-pro | Chat | 1,048,576 | 65,536 | $2.50 | $15.00 | tools, prompt caching | |
databricks/databricks-gemini-3-pro-image | Chat | 65,536 | 32,768 | vision | |||
databricks/databricks-gemma-3-12b | Chat | 128,000 | 32,000 | $0.15 | $0.5 | ||
databricks/databricks-glm-5-2 | Chat | 1,000,000 | 131,072 | $1.40 | $4.40 | tools, reasoning, prompt caching | |
databricks/databricks-glm-5-3 | Chat | 1,048,576 | 65,536 | $1.40 | $4.40 | tools, reasoning, prompt caching, structured output | |
databricks/databricks-glm-5-3-flash | Chat | 1,048,576 | 131,072 | $0.15 | $0.5 | tools, vision, reasoning, prompt caching | |
databricks/databricks-gpt-5 | Chat | 272,000 | 128,000 | $1.25 | $10.00 | tools, prompt caching | |
databricks/databricks-gpt-5-1 | Chat | 272,000 | 128,000 | $1.25 | $10.00 | tools, prompt caching | |
databricks/databricks-gpt-5-2 | Chat | 272,000 | 128,000 | $1.75 | $14.00 | tools, prompt caching | |
databricks/databricks-gpt-5-3-codex | Responses | 272,000 | 128,000 | $1.75 | $14.00 | tools, prompt caching | |
databricks/databricks-gpt-5-4 | Chat | 922,000 | 128,000 | $2.50 | $15.00 | tools, vision, reasoning, prompt caching | |
databricks/databricks-gpt-5-4-mini | Chat | 272,000 | 128,000 | $0.75 | $4.50 | tools, vision, reasoning, prompt caching | |
databricks/databricks-gpt-5-4-nano | Chat | 272,000 | 128,000 | $0.2 | $1.25 | tools, vision, reasoning, prompt caching | |
databricks/databricks-gpt-5-5 | Responses | 922,000 | 128,000 | $5.00 | $30.00 | tools, vision, reasoning, prompt caching | |
databricks/databricks-gpt-5-5-pro | Responses | 922,000 | 128,000 | $30.00 | $180.00 | tools, vision, reasoning, prompt caching | |
databricks/databricks-gpt-5-6-luna | Chat | 922,000 | 128,000 | $1.00 | $6.00 | tools, vision, reasoning, prompt caching | |
databricks/databricks-gpt-5-6-sol | Chat | 922,000 | 128,000 | $4.00 | $20.00 | tools, vision, reasoning, prompt caching | |
databricks/databricks-gpt-5-6-terra | Chat | 922,000 | 128,000 | $2.50 | $15.00 | tools, vision, reasoning, prompt caching | |
databricks/databricks-gpt-5-mini | Chat | 272,000 | 128,000 | $0.25 | $2.00 | tools, prompt caching | |
databricks/databricks-gpt-5-nano | Chat | 272,000 | 128,000 | $0.05 | $0.4 | tools, prompt caching | |
databricks/databricks-gpt-oss-20b | Chat | 131,072 | 131,072 | $0.07 | $0.3 | ||
databricks/databricks-gpt-oss-120b | Chat | 131,072 | 131,072 | $0.15 | $0.6 | ||
databricks/databricks-grok-4-6 | Chat | 500,000 | $2.50 | $7.50 | tools, reasoning, prompt caching | ||
databricks/databricks-gte-large-en | Embedding | 8,192 | $0.13 | $0 | |||
databricks/databricks-inkling | Chat | 1,000,000 | $1.00 | $4.05 | tools, vision, reasoning, prompt caching | ||
databricks/databricks-kimi-k3 | Chat | 1,000,000 | 1,048,576 | $3.00 | $15.00 | tools, vision, reasoning, prompt caching | |
databricks/databricks-llama-4-maverick | Chat | 128,000 | 128,000 | $0.5 | $1.50 | ||
databricks/databricks-meta-llama-3-1-8b-instruct | Chat | 200,000 | 128,000 | $0.15 | $0.45 | ||
databricks/databricks-meta-llama-3-3-70b-instruct | Chat | 128,000 | 128,000 | $0.5 | $1.50 | ||
databricks/databricks-openjev-qwen35-4b | Evaluation | $0 | $0 | ||||
databricks/databricks-qwen3-embedding-0-6b | Embedding | 32,768 | $0.02 | $0 | |||
databricks/databricks-qwen3-next-80b-a3b-instruct | Chat | $0.15 | $1.20 | tools | |||
databricks/databricks-qwen35-122b-a10b | Chat | 262,144 | 25,000 | $0.22 | $2.20 | tools, reasoning |