AI Gateway models

Available models and how to specify them

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 FlashGoogletext, image, video, audio, pdf1MMay 2026$1.50$9
GPT-5.4 nanoOpenAItext, image400KMar 2026$0.20$1.25
GPT-5.4 miniOpenAItext, image400KMar 2026$0.75$4.50
GPT-5.4OpenAItext, image, pdf1.1MMar 2026$2.50$15
Gemini 3.1 Flash Lite PreviewGoogletext, image, video, audio, pdf1MMar 2026$0.25$1.50
Qwen3.5 122B-A10BAlibabatext262KFeb 2026$0.22$2.20Open weights
Gemini 3.1 Pro Preview Custom ToolsGoogletext, image, video, audio, pdf1MFeb 2026$2$12
GPT-5.3 CodexOpenAItext, image, pdf400KFeb 2026$1.75$14
Gemini 3 Flash PreviewGoogletext, image, video, audio, pdf1MDec 2025$0.50$3
GPT-5.2 CodexOpenAItext, image, pdf400KDec 2025$1.75$14
GPT-5.2OpenAItext, image400KDec 2025$1.75$14
Gemini 3 Pro PreviewGoogletext, image, video, audio, pdf1MNov 2025$2$12
GPT-5.1 Codex miniOpenAItext, image400KNov 2025$0.25$2
GPT-5.1 Codex MaxOpenAItext, image400KNov 2025$1.25$10
GPT-5.1OpenAItext, image400KNov 2025$1.25$10
Qwen3-Next 80B-A3B InstructAlibabatext131KSep 2025$0.15$1.20Open weights
GPT-5 NanoOpenAItext, image400KAug 2025$0.05$0.40
GPT-5 MiniOpenAItext, image400KAug 2025$0.25$2
GPT-5OpenAItext, image400KAug 2025$1.25$10
GPT OSS 20BOpenAItext131KAug 2025$0.05$0.20Open weights
GPT OSS 120BOpenAItext131KAug 2025$0.07$0.28Open weights
Gemini 2.5 ProGoogletext, image, audio, video, pdf1MJun 2025$1.25$10
Gemini 2.5 FlashGoogletext, image, audio, video, pdf1MJun 2025$0.30$2.50
Llama 4 Maverick 17B InstructMetatext, image1MApr 2025$0.50$1.50Open weights
Gemma 3 12BGoogletext, image131KMar 2025$0.15$0.50Open weights
Llama-3.3-70B-InstructMetatext128KDec 2024$0.50$1.50Open weights
Llama 3.1 8B InstructMetatext131KJul 2024$0.15$0.45Open 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:

LimitValue
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).

ProviderRecommended endpointNotes
OpenAI (most models)/v1/chat/completionsUse /openai/v1/responses for Responses API features
OpenAI (codex variants)/openai/v1/responsesThese models require the Responses API and don't work with chat/completions
Google Gemini/v1/chat/completionsUse /ai-gateway/gemini/v1beta/models/{model}:generateContent with the google-genai SDK
Google Gemma 3 12B/v1/chat/completionsChat completions only. Doesn't support the Gemini SDK endpoint
Meta, Databricks, Alibaba/v1/chat/completionsChat 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 pathEquivalent 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.

ProviderTerms
OpenAIOpenAI Usage Policies
Google GeminiGoogle Cloud Acceptable Use Policy · Google Generative AI Prohibited Use Policy
Google GemmaGemma Terms of Use · Gemma Prohibited Use Policy
MetaTerms 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.

Was this page helpful?