Beta
The OptiTech AI Gateway is in Beta. Share your feedback on Discord or via the OptiTech Console.
OptiTech AI Gateway serves models hosted by Databricks. Use short model IDs in the model field, for example gpt-5-mini or gemini-2-5-flash. The databricks- prefixed form is also accepted. The OptiTech Console and most examples use the short form.
important
Models are hosted by Databricks and served through OptiTech AI Gateway. By using these models, you are responsible for complying with each provider's applicable terms of use. See Provider terms below.
Model availability may vary by region, and the catalog expands over time, so check back for new additions.
The full catalog is published as the optitech provider on models.dev, the machine-readable source of truth, and served as JSON at optitech.com/models.json.
Model access
OptiTech AI Gateway serves frontier models like GPT (gpt-5) and Gemini (gemini-2-5-flash) alongside open-weight models like Qwen and gpt-oss. See the full list in the catalog below.
Open-weight models are available to every project right away. Frontier models from OpenAI and Google are rolling out gradually. Don't see them in your project yet? Request early access.
Available models
Browse the full catalog below. Switch between the Text and Image tabs, filter by provider or open weights, sort any column, and click a model for a copy-paste quickstart (AI SDK, Mastra, Python, TypeScript, or cURL). The endpoint each snippet targets is baked into its base URL: /v1 for chat completions, /openai/v1 for the Responses API (image generation).
| Inputs | ||||||||
|---|---|---|---|---|---|---|---|---|
| Gemini 3.5 Flash | text, image, video, audio, pdf | 1M | May 2026 | $1.50 | $9 | — | ||
| GPT-5.4 nano | OpenAI | text, image | 400K | Mar 2026 | $0.20 | $1.25 | — | |
| GPT-5.4 mini | OpenAI | text, image | 400K | Mar 2026 | $0.75 | $4.50 | — | |
| GPT-5.4 | OpenAI | text, image, pdf | 1.1M | Mar 2026 | $2.50 | $15 | — | |
| Gemini 3.1 Flash Lite Preview | text, image, video, audio, pdf | 1M | Mar 2026 | $0.25 | $1.50 | — | ||
| Qwen3.5 122B-A10B | Alibaba | text | 262K | Feb 2026 | $0.22 | $2.20 | Open weights | |
| Gemini 3.1 Pro Preview Custom Tools | text, image, video, audio, pdf | 1M | Feb 2026 | $2 | $12 | — | ||
| GPT-5.3 Codex | OpenAI | text, image, pdf | 400K | Feb 2026 | $1.75 | $14 | — | |
| Gemini 3 Flash Preview | text, image, video, audio, pdf | 1M | Dec 2025 | $0.50 | $3 | — | ||
| GPT-5.2 Codex | OpenAI | text, image, pdf | 400K | Dec 2025 | $1.75 | $14 | — | |
| GPT-5.2 | OpenAI | text, image | 400K | Dec 2025 | $1.75 | $14 | — | |
| Gemini 3 Pro Preview | text, image, video, audio, pdf | 1M | Nov 2025 | $2 | $12 | — | ||
| GPT-5.1 Codex mini | OpenAI | text, image | 400K | Nov 2025 | $0.25 | $2 | — | |
| GPT-5.1 Codex Max | OpenAI | text, image | 400K | Nov 2025 | $1.25 | $10 | — | |
| GPT-5.1 | OpenAI | text, image | 400K | Nov 2025 | $1.25 | $10 | — | |
| Qwen3-Next 80B-A3B Instruct | Alibaba | text | 131K | Sep 2025 | $0.15 | $1.20 | Open weights | |
| GPT-5 Nano | OpenAI | text, image | 400K | Aug 2025 | $0.05 | $0.40 | — | |
| GPT-5 Mini | OpenAI | text, image | 400K | Aug 2025 | $0.25 | $2 | — | |
| GPT-5 | OpenAI | text, image | 400K | Aug 2025 | $1.25 | $10 | — | |
| GPT OSS 20B | OpenAI | text | 131K | Aug 2025 | $0.05 | $0.20 | Open weights | |
| GPT OSS 120B | OpenAI | text | 131K | Aug 2025 | $0.07 | $0.28 | Open weights | |
| Gemini 2.5 Pro | text, image, audio, video, pdf | 1M | Jun 2025 | $1.25 | $10 | — | ||
| Gemini 2.5 Flash | text, image, audio, video, pdf | 1M | Jun 2025 | $0.30 | $2.50 | — | ||
| Llama 4 Maverick 17B Instruct | Meta | text, image | 1M | Apr 2025 | $0.50 | $1.50 | Open weights | |
| Gemma 3 12B | text, image | 131K | Mar 2025 | $0.15 | $0.50 | Open weights | ||
| Llama-3.3-70B-Instruct | Meta | text | 128K | Dec 2024 | $0.50 | $1.50 | Open weights | |
| Llama 3.1 8B Instruct | Meta | text | 131K | Jul 2024 | $0.15 | $0.45 | Open weights |
Prices are provider list prices per million tokens. Inference is free during the private preview. Click a model for a copy-paste quickstart.
For full request paths and when to prefer each endpoint, see Which endpoint to use.
Rate limits
During the beta, the following limit applies per account:
| Limit | Value |
|---|---|
| Tokens per minute (TPM) | 200,000 |
If you hit the limit, you'll receive a 429 Too Many Requests response with a message like ai gateway TPM limit exceeded for model "<model-id>". Requests resume when the rate limit window resets.
The TPM limit is counted against total tokens (input and output combined), not input alone. Upstream output token limits (20,000 OTPM for most models) apply independently, so you can hit a 429 on output tokens without reaching the gateway's TPM limit. See Databricks Foundation Model API limits for details.
Once billing begins, usage will also be capped by your prepaid credit balance. See Pricing below.
Pricing
Inference is free during the beta. See Pricing for what to expect when billing begins.
Independent of billing, OptiTech enforces an account-level daily spend cap on AI Gateway usage, separate from the per-minute rate limits above. If your account exceeds it, every AI Gateway endpoint returns 429 Too Many Requests with error code REQUEST_LIMIT_EXCEEDED until the cap resets or the block is lifted. This can happen even though inference itself isn't billed yet. OptiTech hasn't published a fixed cap value; it isn't a flat number and can vary by account. See Troubleshooting if you hit this.
Which endpoint to use
Most models work with the Chat completions endpoint. It is the recommended starting point and works with all providers. Use a provider-specific endpoint when required:
All paths below are appended to your branch's bare AI Gateway host (OPTITECH_AI_GATEWAY_BASE_URL).
| Provider | Recommended endpoint | Notes |
|---|---|---|
| OpenAI (most models) | /v1/chat/completions | Use /openai/v1/responses for Responses API features |
| OpenAI (codex variants) | /openai/v1/responses | These models require the Responses API and don't work with chat/completions |
| Google Gemini | /v1/chat/completions | Use /ai-gateway/gemini/v1beta/models/{model}:generateContent with the google-genai SDK |
| Google Gemma 3 12B | /v1/chat/completions | Chat completions only. Doesn't support the Gemini SDK endpoint |
| Meta, Databricks, Alibaba | /v1/chat/completions | Chat completions only |
Content shape varies by model
For most models, message.content in a chat completions response is a plain string. For some models, confirmed on Gemini 3.x (gemini-3-5-flash, gemini-3-1-pro), gpt-oss-120b, and qwen35-122b-a10b, it's an array of typed content blocks instead ({ type: 'reasoning', ... }, { type: 'text', text: ... }), matching how those models represent output natively. A low max_tokens value can also cut a response off before the text block appears, leaving only a reasoning block. Handle both shapes:
const { content } = response.choices[0].message;
const text = typeof content === 'string'
? content
: content.find((block) => block.type === 'text')?.text ?? '';Shorter /v1 paths
Most dialects above are also reachable at a shorter path with no /ai-gateway/<dialect> prefix. These are additive aliases: the /ai-gateway/... paths documented throughout this page keep working and aren't deprecated. Both forms use the same branch host, bearer token, request body, response body, model routing, rate limits, and quota behavior. Only chat completions and Gemini use a top-level /v1/... prefix; OpenAI Responses has its own shorter prefix instead of a bare /v1/.
Use the shorter paths when you want OpenAI/OpenRouter-style URLs. Use the /ai-gateway/... paths when a framework or existing OptiTech example expects the older dialect-specific route.
| Shorter path | Equivalent to |
|---|---|
POST /v1/chat/completions | /ai-gateway/mlflow/v1/chat/completions |
POST /openai/v1/responses | /ai-gateway/openai/v1/responses |
POST /v1/gemini/v1beta/models/{model}:generateContent | /ai-gateway/gemini/v1beta/models/{model}:generateContent |
List available models
GET /v1/models lists the model catalog in an OpenRouter-shaped response, authenticated the same way as the endpoints above:
curl "$OPTITECH_AI_GATEWAY_BASE_URL/v1/models" \
-H "Authorization: Bearer $OPTITECH_AI_GATEWAY_TOKEN"{
"object": "list",
"data": [
{
"id": "gpt-5-mini",
"canonical_slug": "gpt-5-mini",
"pricing": null,
"per_request_limits": null,
"context_length": null
}
]
}canonical_slug, pricing, per_request_limits, and context_length are reserved OpenRouter-compatible fields. pricing, per_request_limits, and context_length are currently always null; use the tables earlier on this page for context window and model details in the meantime.
Provider terms
Models are hosted by Databricks and served through OptiTech AI Gateway. You are responsible for complying with each provider's applicable terms of use.
| Provider | Terms |
|---|---|
| OpenAI | OpenAI Usage Policies |
| Google Gemini | Google Cloud Acceptable Use Policy · Google Generative AI Prohibited Use Policy |
| Google Gemma | Gemma Terms of Use · Gemma Prohibited Use Policy |
| Meta | Terms differ by Llama version. See the Notes column in the Meta models table. |
Need help?
Join our Discord Server to ask questions or see what others are doing with OptiTech. For paid plan support options, see Support.