SAP AI Core routes to OpenAI gpt-5.4; release_date should reflect
the actual model release (2026-03-05) rather than the SAP catalog
availability date (2026-04-27).
SAP AI Core routes to OpenAI gpt-5.5; specs mirror the canonical
provider/openai/gpt-5.5 with the established sap-ai-core wrapper
adjustments (lowercase name, drop [[cost.tiers]], drop
[experimental.modes.fast]).
The M3 entries added in #1940 copied M2.7's cost values. Correct them to
the official M3 pricing and limits:
- minimax / minimax-cn (pay-as-you-go): input 0.30 -> 0.60,
output 1.20 -> 2.40, cache_read 0.06 -> 0.12, and remove cache_write
(M3 has no active prompt-cache-write tier).
- max output 131072 -> 128000 across all four providers.
- coding-plan variants keep their subscription-plan zero pricing; only
max output is corrected.
Context (512K), modalities, and the other flags are unchanged.
MiniMax-M3 is MiniMax's new frontier multimodal coding model: 1M context
window (512K minimum on ollama-cloud), native text/image/video input,
tool calling, reasoning, and open weights.
Adds the model to all five providers where it should be available:
- minimax (pay-as-you-go)
- minimax-cn (pay-as-you-go, China)
- minimax-coding-plan (token plan subscription)
- minimax-cn-coding-plan (token plan subscription, China)
- ollama-cloud
Closes#1933.
Notes for reviewers:
- Cost fields on minimax/minimax-cn match M2.7; M3 docs state the
pricing is unchanged from M2.7.
- The 1M/512K context divergence on ollama-cloud is intentional —
ollama advertises 1M with a 512K minimum, so 512K is the safe floor
that won't surprise opencode users with mid-request rejections.
- output = 131072 is inherited from the existing M2.7 files; MiniMax's
published M3 docs only advertise the 1M input context, not a separate
output cap.
- The minimax-coding-plan variant has been verified end-to-end in
opencode against the MiniMax token plan API.
The github-copilot model stubs use [extends] and inherit the upstream
base model's context/input/output limits (~1M), which do not match the
limits GitHub Copilot actually enforces via api.githubcopilot.com/models.
Override the limit fields for the 8 models whose live CAPI values were
verified first-hand. Models that were not enabled on the test account
(no CAPI data available) are intentionally left unchanged.
Refs anomalyco/models.dev#1946
Adds the snowflake-cortex provider which exposes Snowflake's Cortex
REST API (OpenAI Chat Completions-compatible endpoint) to opencode.
Provider details:
- npm: @ai-sdk/openai-compatible
- API: https://${SNOWFLAKE_ACCOUNT}.snowflakecomputing.com/api/v2/cortex/v1
- Auth: SNOWFLAKE_ACCOUNT + SNOWFLAKE_CORTEX_PAT (Programmatic Access Token)
Models (11, all with tool_call support):
- Anthropic: claude-opus-4-7 (beta/preview), claude-sonnet-4-6,
claude-sonnet-4-5, claude-haiku-4-5
- OpenAI: openai-gpt-5.4 (beta), openai-gpt-5.2, openai-gpt-5.1,
openai-gpt-5 (beta), openai-gpt-5-mini (beta), openai-gpt-5-nano (beta),
openai-gpt-4.1
Models without tool_call support (deepseek-r1, llama3.1-70b,
snowflake-llama-3.3-70b, mistral-large2) are excluded per Snowflake docs:
"Tool calling is supported for OpenAI and Claude models only."
Preview/not-GA models are marked with status = "beta".
Cost fields are intentionally omitted on all models. The Cortex REST API
is billed in USD (AI_INFERENCE service type) at rates defined in the
Snowflake Service Consumption Table.
Closes#1895
Rename the China StepFun provider to "StepFun (China)" so it no longer
collides with the international "StepFun" provider, following the existing
Alibaba / Alibaba (China) naming convention.
Add a validation check in generate() that throws when two providers share
a (case-insensitive) name, preventing future duplicates.
Fixes#1906
Add new Anthropic model from Poe API (released 2026-05-28).
Uses extends format inheriting from anthropic/claude-opus-4-8
with Poe-specific overrides (name format, markup pricing,
slightly different context limit).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Extends anthropic/claude-opus-4-8, omitting the fast mode which LLM
Gateway does not expose, matching the existing 4.6/4.7 entries.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Merge Gateway (https://merge.dev) is an LLM gateway exposing an
OpenAI/Anthropic-compatible API across many providers, using the
published `merge-gateway-ai-sdk-provider` npm package. Models are
defined via `extends` from existing canonical entries.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Rename qwen37-max.toml to qwen3.7-max.toml so the model id matches
the canonical alibaba/qwen3.7-max definition (name: Qwen3.7 Max).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Reduce input/output/cache prices for gemini-3-5-flash, google-gemma-4-31b-it, and qwen-3-7-max
- Lower max output tokens from 65,536 to 16,384 for qwen3-5-35b-a3b
- Bump last_updated to 2026-05-25 for all 4 models
Both models are public serverless on pass.wafer.ai/v1/models but were
missing from the wafer.ai provider in models.dev, so OpenCode and other
tools that pull from the registry could not discover them.
- Qwen3.6 35B A3B: compact MoE, 32K context, vision-capable, $0.19/M in,
$1.25/M out (NVFP4 on AMD MI355X — see wafer.ai/blog/qwen36-mi355x).
- Kimi K2.6: 1T sparse MoE, 262K context, vision-capable, $1.10/M in,
$4.80/M out (NVFP4 on Blackwell — see wafer.ai/blog/kimi-k26-nvfp4).
Co-authored-by: Cursor <cursoragent@cursor.com>
Updates the per-token cost for Qwen3.6-35B-A3B and qwen3.6-35b-fast from /bin/bash.05//bin/bash.10 to /bin/bash.29/.15 (input/output per million tokens), matching the actual Neuralwatt API pricing as reflected in pi-neuralwatt-provider commit f634286.
Add canonical google/gemini-3.5-flash and alibaba/qwen3.7-max defs and
have the llmgateway entries extend them, per PR review.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Add Grok 4.20 (reasoning/non-reasoning), Gemini 3.5 Flash, and Qwen3.7 Max to the llmgateway provider.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
StepFun runs two separate platforms with distinct accounts/keys:
platform.stepfun.com (China, already covered by providers/stepfun) and
platform.stepfun.ai (international). Keys are not interchangeable
across the two — .ai keys are rejected by api.stepfun.com as
invalid_api_key.
Stepfun's own opencode integration guide instructs users to point at
https://api.stepfun.ai/step_plan/v1. This adds providers/stepfun-ai
for that endpoint, symlinking the shared chat models. Follows the
moonshotai / moonshotai-cn pattern.
Add new Google model from Poe API (released 2026-05-19).
Uses extends format inheriting from google/gemini-3.5-flash with
Poe-specific overrides (name format, no temperature, markup pricing,
limited input modalities).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add gpt-5.4 with availability date from official SAP source.
Drop [[cost.tiers]] from gemini-2.5-pro pending SAP-side tiered
pricing confirmation; sap-ai-core now declares no per-model tiers
(SAP Note 3437766 is login-gated and authoritative for capacity
unit conversion rates).
Adds duo-chat-gpt-5-5 to the GitLab provider. The GitLab AI Gateway
proxies this model to OpenAI's gpt-5.5-2026-04-23 backend with a
1.05M token context window (922k input + 128k output).
Source: gitlab-org/modelops/applied-ml/code-suggestions/ai-assist
models.yml (gpt_5_5 entry with proxy_provider: openai).
The gitlab-ai-provider npm package exposes this model id starting in
v6.7.0.
Adds google/gemma-4-31b-it to the Lilac provider ($0.11/M input,
$0.35/M output, 262K context, native multimodal with image/video).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds 55 additional upstream-mirrored models alongside the existing 25,
covering the full OrcaRouter chat catalog as exposed by
https://www.orcarouter.ai/api/pricing (text-only chat — TTS, embeddings,
video, and image generation are filtered out).
Per-namespace upstream mappings used by [extends]:
OrcaRouter ns -> models.dev provider
---------------- + ---------------
openai -> openai
anthropic -> anthropic (dot version -> dash, e.g. opus-4.7 -> opus-4-7)
google -> google
deepseek -> deepseek
qwen -> alibaba
grok -> xai
kimi -> moonshotai
minimax -> minimax (minimax-m2.7 -> MiniMax-M2.7)
z-ai -> zai
OrcaRouter-specific aliases (dated snapshots like gpt-5-2025-08-07,
search-preview variants, qwen3-vl-* visual variants) are excluded from
v1 because their upstream canonical files do not yet exist in models.dev.
Also adds providers/orcarouter/logo.svg.
The previously committed logo is ~100KB; existing wrapper-provider logos
(openrouter, llmgateway, kilo, aihubmix, ambient) are all 0.3-6KB and use
`currentColor`. Falling back to the default logo per README:
> If we don't have a provider's logo, a default logo is served instead.
A properly-sized currentColor logo will follow in a separate PR.
OrcaRouter is an OpenAI-compatible meta-router aggregating 150+ LLMs
(OpenAI, Anthropic, Google, xAI, DeepSeek, Qwen, Kimi, MiniMax, ...)
behind a single API key, with a virtual orcarouter/auto smart-routing
entry that picks an upstream per request.
This initial scope covers 26 models (1 AUTO router + 25 upstream mirrors
using [extends]). Pricing computed from https://www.orcarouter.ai/api/pricing
on 2026-05-14: input = model_ratio * $2, output = model_ratio *
completion_ratio * $2 (USD per 1M tokens).
Disclosure: I'm an engineer on the OrcaRouter team.
- Model `id` is **auto-injected** from filename (minus `.toml`) — never put `id` in TOML files
-Models may reuse another model's definition via `extends` (see below); otherwise the full definition must be present in the file
-Provider models may reuse provider-agnostic facts from `models/` via `base_model`; otherwise the full provider model definition must be present in the file
- Schema uses `.strict()` — extra fields cause validation errors
### `[extends]` (inheritance between models)
-Syntax — a table at the top of the TOML:
### Model metadata and `base_model`
-Provider-agnostic model facts live under `models/<provider>/<model>.toml`
- Plain objects from metadata and provider TOML (`[limit]`, `[modalities]`, …) are **deep-merged**
- Arrays (e.g. `modalities.input`) and primitives are **replaced** wholesale by the child
- Any field the child omits is inherited verbatim from the base
- `omit` runs **after** the merge and deletes each dot-path from the result (used when the child needs to *remove* something the base defines, e.g. a provider-specific experimental mode). Every listed path must exist in the merged model, else an error is thrown. Ancestor tables that become empty as a result are also pruned, so `omit = ["experimental.modes.fast"]` yields no `experimental` key in the final JSON when `fast` was the only mode.
- Chains are allowed (A extends B extends C); cycles throw
- The base model must exist; `[extends.from]` pointing at a missing provider/model is an error
- The `extends` table is stripped before schema validation, so the merged result must still satisfy the strict `Model` schema
- Any provider field omitted is inherited verbatim from model metadata
- `cost`, `provider`, `experimental`, `reasoning_options`, `interleaved`, and `status` are provider-specific and must be declared in provider TOMLs when needed
- `base_model_omit` runs **after** the merge and deletes each dot-path from the result. Missing paths are ignored. Ancestor tables that become empty as a result are also pruned.
- The base model metadata file must exist; `base_model` pointing at a missing `models/` entry is an error
Use the **Model ID** field to do a lookup on any model; it's the identifier used by [AI SDK](https://ai-sdk.dev/).
Provider-agnostic model metadata is available separately:
```bash
curl https://models.dev/models.json
```
Use this for facts about the model itself, independent of where it is served. If you need both provider endpoints and model-only metadata in one response:
```bash
curl https://models.dev/catalog.json
```
### Logos
Provider logos are available as SVG files:
@@ -40,7 +52,71 @@ The data is stored in the repo as TOML files; organized by provider and model. T
We need your help keeping the data up to date.
### Adding a New Model
### Adding Model Metadata
Model-only facts live in `models/`, using the same path-style IDs as provider models. For example, `models/openai/gpt-5.toml` defines metadata for the underlying GPT-5 model, while `providers/openai/models/gpt-5.toml` defines OpenAI-specific serving details such as pricing.
-`[limit]` defaults like context, input, and output token limits
-`[modalities]` defaults
-`open_weights`, `license`, `links`, `weights`, and `benchmarks`
Example:
```toml
name="GPT-5"
family="gpt"
release_date="2025-08-07"
last_updated="2025-08-07"
attachment=true
reasoning=true
temperature=false
tool_call=true
structured_output=true
open_weights=false
[limit]
context=400_000
input=272_000
output=128_000
[modalities]
input=["text","image"]
output=["text"]
[[benchmarks]]
name="Benchmark Name"
score=72.5
metric="accuracy"
source="https://example.com/results"
[[weights]]
label="Model weights"
url="https://huggingface.co/example/model"
format="safetensors"
```
Provider TOMLs can inherit these facts with `base_model` and then keep only provider-specific fields or overrides:
```toml
base_model="openai/gpt-5"
[cost]
input=1.25
output=10.00
cache_read=0.125
[limit]
context=200_000# optional provider override
output=32_000
```
Provider fields win over model metadata during generation. Use this when the underlying model is the same but a provider serves it with different context limits, modalities, features, or pricing.
### Adding a New Provider Model
To add a new model, start by checking if the provider already exists in the `providers/` directory. If not, then:
field = "reasoning_content" # Name of the interleaved field "reasoning_content" or "reasoning_details"
```
#### 3a. Reuse an Existing Model with `extends`
#### 3a. Reuse Model Metadata with `base_model`
For wrapper providers that mirror a model from another provider, prefer reusing the canonical model definition instead of duplicating the whole file.
For wrapper providers that mirror an existing model, prefer referencing the model-only metadata instead of duplicating provider-agnostic fields.
Use `extends` only for non-first-party wrappers and mirrors. Do not use it inside the actual lab provider directories that act as the canonical source for a model family, for example `providers/anthropic/`, `providers/openai/`, `providers/google/`, `providers/xai/`, `providers/minimax/`, or `providers/moonshot/`.
Use `base_model` when the provider serves the same underlying model and only provider-specific fields differ.
```toml
[extends]
from = "anthropic/claude-opus-4-6"
omit = ["experimental.modes.fast"]
base_model = "anthropic/claude-opus-4-6"
[provider]
npm = "@ai-sdk/anthropic"
[cost]
input = 5.00
output = 25.00
```
Rules:
- `from` must point to another model using `<provider>/<model-id>`.
- `omit` is optional and removes fields after the inherited model and local overrides are merged.
- `base_model` must point to a TOML file in `models/` using `<provider>/<model-id>`.
- You can override any top-level model field locally.
- If you override a nested table like `[cost]`, `[limit]`, or `[modalities]`, include the full values needed for that table.
- `base_model_omit` is optional and removes inherited model metadata fields after local overrides are merged. Use dot-path strings, for example `base_model_omit = ["limit.input"]`.
- `id` still comes from the filename; do not add it to the TOML.
Use `extends` when the wrapper model is materially the same as the source model and only differs by a small set of overrides or omitted fields.
Use `base_model` when the wrapper model is materially the same as the source model and only differs by provider-specific pricing, limits, modalities, provider request shape, or lifecycle flags.
Sync and generator scripts should preserve existing `base_model` / `base_model_omit` fields when updating provider TOMLs. Do not use legacy `[extends]` tables.
#### 4. Submit a Pull Request
@@ -161,7 +238,7 @@ There's a GitHub Action that will automatically validate your submission against
- Values are within acceptable ranges
- TOML syntax is valid
When converting existing wrapper models to `extends`, compare generated output before and after the change:
When moving existing provider fields into model metadata, compare generated output before and after the change:
Loaded 100 of 1816 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.