Autoscaling Report: Production databases on Neon use 2.4x less compute and 50% less cost than if they were running on a provisioned platform.
/AI Gateway/Models

AI Gateway models

Available models and how to specify them

Private Preview

This feature is in private preview: it's not ready for production use, and it may be briefly unavailable as we deploy updates. To get access, sign up here.

Neon AI Gateway serves models hosted by Databricks. Use short model IDs in the model field — for example, claude-sonnet-4-6, gpt-5-mini, gemini-2-5-flash. The databricks- prefixed form is also accepted. The Neon Console and most examples use the short form.

important

Models are hosted by Databricks and served through Neon AI Gateway. By using these models, you are responsible for complying with each provider's applicable terms of use. See Provider terms below.

note

Model availability may vary by region. The catalog expands over time, so check back for new additions.

Quick picks

Not sure which model to use? Start here.

I want to...Recommended modelOpen-weight alternative
Build a general chat or reasoning appclaude-sonnet-4-6llama-4-maverick
Understand imagesclaude-sonnet-4-6 or gemini-2-5-flashllama-4-maverick
Process audio or videogemini-3-5-flash
Generate or review codegpt-5-3-codexgpt-oss-120b
Run extended or deep reasoningclaude-opus-4-7 or gpt-5-1qwen3-next-80b-a3b-instruct
Handle very long documents (1M+ tokens)gemini-3-1-pro or claude-opus-4-7qwen35-122b-a10b
Keep costs low for lightweight tasksclaude-haiku-4-5 or gpt-5-4-nanometa-llama-3-1-8b-instruct

Rate limits

During the private preview, the following limits apply:

LimitValue
Per model (tokens per minute)200,000 TPM
All models combined (tokens per minute)1,100,000 TPM

If you hit a limit, you'll receive a 429 Too Many Requests response. Requests resume when the rate limit window resets.

These limits apply to input tokens. Upstream output token limits (20,000 OTPM for most models) apply independently, so you can hit a 429 on output tokens without reaching the input limit. See Databricks Foundation Model API limits for details.

Pricing

Inference is free during the private preview. When billing begins, prices will match each provider's published list prices.

Available models

Endpoints are shown in short form. See Which endpoint to use for full paths and when to prefer each one.

Anthropic

Model IDInputsContextEndpointsNotes
claude-opus-4-8text, imagechat/completions · anthropic/messagesMost capable Claude model
claude-opus-4-7text, image1Mchat/completions · anthropic/messagesExtended thinking available
claude-opus-4-6text, image1Mchat/completions · anthropic/messagesAdaptive thinking with max effort level
claude-opus-4-5text, image200Kchat/completions · anthropic/messagesExtended thinking available
claude-opus-4-1text, image200Kchat/completions · anthropic/messages
claude-sonnet-4-6text, imagechat/completions · anthropic/messagesRecommended. Instant + extended thinking
claude-sonnet-4-5text, imagechat/completions · anthropic/messagesInstant + extended thinking
claude-sonnet-4text, imagechat/completions · anthropic/messagesInstant + extended thinking
claude-haiku-4-5text, imagechat/completions · anthropic/messagesFast and cost-effective

Google

Model IDInputsContextEndpointsNotes
gemini-3-5-flashtext, image, video, audiochat/completions · gemini
gemini-3-1-protext, image, video, audio1Mchat/completions · gemini
gemini-3-1-flash-litetext, image, video, audiochat/completions · gemini
gemini-3-protext, image, video, audio1Mchat/completions · gemini
gemini-3-flashtext, image, video, audiochat/completions · gemini
gemini-2-5-protext, image, video, audio1Mchat/completions · geminiDeep Think Mode
gemini-2-5-flashtext, image, video, audio1Mchat/completions · gemini
gemma-3-12btext, image128Kchat/completionsChat completions only

Databricks

Open-weight models hosted by Databricks. Text input only. Chat completions only.

Model IDContextEndpointsNotes
databricks-gpt-oss-120b128Kchat/completionsRecommended. Adjustable reasoning effort
databricks-gpt-oss-20b128Kchat/completions

Meta

Model IDInputsContextEndpointsNotes
databricks-llama-4-mavericktext, imagechat/completionsRecommended. Llama 4 Community License · Acceptable Use
databricks-meta-llama-3-3-70b-instructtext128Kchat/completionsLlama 3.3 Community License · Acceptable Use
databricks-meta-llama-3-1-8b-instructtext128Kchat/completionsLlama 3.1 Community License · Acceptable Use

Alibaba

Text input only. Chat completions only.

Model IDContextEndpointsNotes
databricks-qwen3-next-80b-a3b-instructchat/completions
databricks-qwen35-122b-a10b256Kchat/completionsAlways reasons before responding

OpenAI

All OpenAI models have a 400K token context window and accept text and image inputs.

Model IDEndpointsNotes
gpt-5-4chat/completions · openai/responses
gpt-5-4-minichat/completions · openai/responses
gpt-5-4-nanochat/completions · openai/responses
gpt-5-3-codexopenai/responsesRequires OpenAI Responses API
gpt-5-2-codexopenai/responsesRequires OpenAI Responses API
gpt-5-2chat/completions · openai/responses
gpt-5-1-codex-maxopenai/responsesRequires OpenAI Responses API
gpt-5-1-codex-miniopenai/responsesRequires OpenAI Responses API
gpt-5-1chat/completions · openai/responsesInstant + Thinking modes
gpt-5chat/completions · openai/responses
gpt-5-minichat/completions · openai/responses
gpt-5-nanochat/completions · openai/responses

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:

ProviderRecommended endpointNotes
Anthropic/ai-gateway/mlflow/v1/chat/completionsUse /ai-gateway/anthropic/v1/messages for extended thinking and prompt caching
OpenAI (most models)/ai-gateway/mlflow/v1/chat/completionsUse /ai-gateway/openai/v1/responses for Responses API features
OpenAI (codex variants)/ai-gateway/openai/v1/responsesThese models require the Responses API and don't work with chat/completions
Google Gemini/ai-gateway/mlflow/v1/chat/completionsUse /ai-gateway/gemini/v1beta/models/{model}:generateContent with the google-genai SDK
Google Gemma 3 12B/ai-gateway/mlflow/v1/chat/completionsChat completions only. Doesn't support the Gemini SDK endpoint
Meta, Databricks, Alibaba/ai-gateway/mlflow/v1/chat/completionsChat completions only

Provider terms

Models are hosted by Databricks and served through Neon AI Gateway. You are responsible for complying with each provider's applicable terms of use.

ProviderTerms
AnthropicAnthropic Usage Policy
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 Neon. For paid plan support options, see Support.

Was this page helpful?
Edit on GitHub