Compare commits

...
Author SHA1 Message Date
Aiden Cline 78e6c1a2dd fix(github-copilot): preserve model-specific limits 2026-06-01 22:46:56 -05:00
Aiden Cline 477ccffee8 Merge pull request #1948 from anomalyco/feat/anthropic-reasoning-options
feat(anthropic): add reasoning options
2026-06-01 22:41:23 -05:00
Aiden Cline 4501589a20 feat(anthropic): add reasoning options 2026-06-01 22:17:07 -05:00
Aiden Cline 0b643efd17 Merge pull request #1947 from LYY/fix/github-copilot-context-limits
fix(github-copilot): correct limits for 8 models with verified CAPI data (partial, refs #1946)
2026-06-01 22:16:07 -05:00
LYY 8a0ea15aca fix(github-copilot): correct limits for models with verified CAPI data
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
2026-06-02 11:08:51 +08:00
Aiden Cline b3676fd77d Merge pull request #1934 from yukoba/github-copilot-2026-06
June 2026 changes of GitHub Copilot
2026-06-01 16:10:45 -05:00
Aiden Cline f97a02078c Merge pull request #1932 from eliasto/ovhcloud/update-models-qwen
feat(ovhcloud): Add new Qwen models and sync mode
2026-06-01 14:27:58 -05:00
Aiden Cline 2a7153fcef Merge pull request #1943 from peculiarnewbie/fix/crof-models-update
fix: update crof.ai models to match current API
2026-06-01 13:41:23 -05:00
Aiden Cline 3396f15854 Merge pull request #1942 from anomalyco/feat/reasoning-options-schema
feat: add reasoning options schema
2026-06-01 13:41:10 -05:00
Aiden Cline ccfd99b5e9 Merge pull request #1941 from KTibow/fix-llmgateway-deepseek-v3-2-price
fix(llmgateway): update model pricing
2026-06-01 13:40:20 -05:00
bolt ef6eb88216 fix: update crof.ai models to match current API 2026-06-02 00:52:14 +07:00
Aiden Cline 94e128244a feat: add reasoning options schema 2026-06-01 12:48:11 -05:00
KTibow ec6d07d41c fix(llmgateway): use weighted pricing selection 2026-06-01 10:41:23 -07:00
KTibow 4efbe58af8 fix(llmgateway): update model pricing 2026-06-01 10:24:05 -07:00
Aiden Cline a4fe8fc36b fmt 2026-06-01 09:53:16 -05:00
Aiden Cline b24b44ca0a Merge pull request #1920 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-06-01 09:39:43 -05:00
Aiden Cline 466d664bf9 Merge pull request #1930 from dpuyosa/dev
Venice: Add MiniMax M3 model
2026-06-01 09:39:27 -05:00
Aiden Cline 340ef131e9 Merge pull request #1936 from JoshuaDietz/dev
feat(ollama-cloud): add minimax m3
2026-06-01 09:38:47 -05:00
Aiden Cline 6ce69a706a Merge pull request #1937 from KTibow/fix/hpc-ai-pricing
fix: update HPC-AI model pricing
2026-06-01 09:38:34 -05:00
KTibow 3505674a1b fix: update HPC-AI model pricing 2026-06-01 07:29:43 -07:00
github-actions[bot] cfeaef8f77 chore(sync): update OpenRouter model catalog 2026-06-01 14:25:41 +00:00
Joshua Dietz f73a5d571b feat(ollama-cloud): add minimax m3 2026-06-01 16:14:49 +02:00
Yu Kobayashi 62d31abff8 June 2026 changes of GitHub Copilot 2026-06-01 22:03:44 +09:00
Elias TOURNEUX ee71ea7181 feat(ovhcloud): Add qwen 3.6 27b 2026-06-01 11:57:58 +02:00
Elias TOURNEUX b038f40b64 feat(ovhcloud): Add OVHcloud sync mode 2026-06-01 10:28:46 +02:00
Elias TOURNEUX 4b7bdd9692 feat(ovhcloud): Add new Qwen models 2026-06-01 10:16:54 +02:00
dpuyosa b73ef1a634 [venice] Add MiniMax M3 model
- Add minimax-m3.toml with cost, limits, modalities
- Enable text/image input and text output support
- Set 500k context, 32k output, cache pricing
2026-06-01 09:38:12 +02:00
Aiden Cline c11b5bb00b Merge pull request #1927 from Jercik/codex/update-wafer-price-cuts
fix: update Wafer.ai pricing
2026-06-01 00:01:03 -05:00
Łukasz Jerciński 01bc1785b4 fix: update Wafer price cuts 2026-06-01 06:25:20 +02:00
Aiden Cline 36b5847fa4 Merge pull request #1925 from anomalyco/fix/vercel-claude-opus-4-1-symlink
fix vercel claude opus 4.1 symlink
2026-05-31 22:12:27 -05:00
Aiden Cline 040beaf818 fix vercel claude opus 4.1 symlink 2026-05-31 22:11:05 -05:00
Frank 9f8e1a3858 update zen models 2026-05-31 22:07:52 -04:00
Jack ce7a1c0218 update context limit of M3 in Go 2026-06-01 09:45:46 +08:00
Jack 55e6c7a2ee add image,video modalities to M3 2026-06-01 08:58:02 +08:00
Frank 8bacf496fe update zen models 2026-05-31 19:49:41 -04:00
Frank ac12cf1f43 update zen models 2026-05-31 19:47:33 -04:00
Frank 06c7ea2303 update zen models 2026-05-31 19:47:04 -04:00
Frank 92b6e9da53 update zen models 2026-05-31 19:43:09 -04:00
Frank 660ff026a0 update zen models 2026-05-31 19:40:57 -04:00
Aiden Cline 9a910a1fb3 Merge pull request #1917 from markgibaud/fix/eu-opus-bedrock-pricing
fix(bedrock): correct EU cross-region pricing for Claude Opus and Sonnet models
2026-05-31 17:37:45 -05:00
Aiden Cline 7dc5f787b0 Merge pull request #1915 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-31 17:10:10 -05:00
Aiden Cline c25ddce07c Merge pull request #1916 from anomalyco/automation/sync-models-cloudflare-workers-ai
chore(sync): update Cloudflare Workers AI model catalog
2026-05-31 17:05:57 -05:00
github-actions[bot] e73a82e44e chore(sync): update OpenRouter model catalog 2026-05-31 21:36:49 +00:00
github-actions[bot] 7de9710b5a chore(sync): update Cloudflare Workers AI model catalog 2026-05-31 21:36:49 +00:00
Frank d1a8dbcdde update zen models 2026-05-31 14:19:49 -04:00
markgibaud 556ef84d11 fix(bedrock): correct EU cross-region pricing for Claude Opus and Sonnet models
AWS Bedrock EU (Europe/London) cross-region inference has a 10% premium
over the base Anthropic pricing. The EU models were incorrectly using
the same pricing as the US/base models.

Affected models:
- eu.anthropic.claude-opus-4-6-v1
- eu.anthropic.claude-opus-4-7
- eu.anthropic.claude-opus-4-8
- eu.anthropic.claude-sonnet-4-5-20250929-v1:0
- eu.anthropic.claude-sonnet-4-6

Corrected Opus per 1M token prices:
- Input: $5.00 -> $5.50
- Output: $25.00 -> $27.50
- Cache read: $0.50 -> $0.55
- Cache write: $6.25 -> $6.875

Corrected Sonnet per 1M token prices:
- Input: $3.00 -> $3.30
- Output: $15.00 -> $16.50
- Cache read: $0.30 -> $0.33
- Cache write: $3.75 -> $4.125

Source: AWS Bedrock pricing page, Europe (London) region
2026-05-31 11:07:18 +01:00
Aiden Cline f2020553ea Merge pull request #1898 from Suat-B/codex/xpersona-frieren-1
Rename Xpersona Frieren display name
2026-05-30 16:44:39 -05:00
Aiden Cline ca0a7e17cb Merge pull request #1910 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-30 16:44:22 -05:00
github-actions[bot] d2468eafb2 chore(sync): update OpenRouter model catalog 2026-05-30 21:37:16 +00:00
Aiden Cline 96d0f9beff Merge pull request #1913 from orangeclk/add-glm-4.6v-zhipuai-coding-plan
feat(zhipuai-coding-plan): add glm-4.6v symlink from zai
2026-05-30 11:52:50 -05:00
Aiden Cline 7989be9f34 Merge pull request #1912 from Jercik/codex/update-wafer-provider-models
feat: update Wafer provider models
2026-05-30 11:52:41 -05:00
Łukasz Jerciński f30e44f4b5 feat: update Wafer provider models 2026-05-30 14:53:02 +02:00
OrangeCLK 1383177893 feat(zhipuai-coding-plan): add glm-4.6v symlink from zai 2026-05-30 18:42:09 +08:00
Aiden Cline 2e58165af9 Merge pull request #1902 from kameshsampath/feat/provider/snowflake-cortex
feat(snowflake-cortex): add Snowflake Cortex provider
2026-05-29 23:55:55 -05:00
Kamesh Sampath f3466affc0 feat(snowflake-cortex): add Snowflake Cortex provider
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
2026-05-30 09:04:43 +05:30
Aiden Cline 3697c99297 Merge pull request #1901 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-29 20:50:33 -05:00
Aiden Cline 796dda2fd1 Merge pull request #1904 from sdnts/dev
feat(cloudflare-ai-gateway): add opus 4.8
2026-05-29 20:50:11 -05:00
Aiden Cline 1d363cbd7f Merge pull request #1908 from anomalyco/fix/unique-provider-names
Ensure provider names are unique
2026-05-29 20:49:54 -05:00
Aiden Cline 3758725979 Ensure provider names are unique
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
2026-05-29 20:48:09 -05:00
github-actions[bot] c039e82f12 chore(sync): update OpenRouter model catalog 2026-05-30 01:16:42 +00:00
Siddhant 1e90242cdb feat(cloudflare-ai-gateway): add opus 4.8 2026-05-29 13:55:09 -04:00
Aiden Cline 277ac8577e Merge pull request #1897 from mikeyp/update-digitalocean-models
Add deepseek-4-flash and claude-opus-4.8 for DigitalOcean
2026-05-29 10:20:26 -05:00
Aiden Cline 6e5f35546d Merge pull request #1900 from ceyhanmolla/add-step-3.7-flash-v2
Add Step 3.7 Flash model to NVIDIA provider
2026-05-29 10:20:02 -05:00
ceyhanmolla aa69da14d6 Add Step 3.7 Flash model to NVIDIA provider
StepFun AI's Step 3.7 Flash - sparse MoE multimodal reasoning model:
- 198B total params, ~11B active per token
- 256K context window with sliding window attention
- Text + image input, text output
- Reasoning, tool calling, and attachment support
- Apache 2.0 license
2026-05-29 12:55:13 +02:00
Jack c7af5ba9be update model in Go 2026-05-29 16:20:16 +08:00
Suat-B d6e9e6735f Rename Xpersona Frieren model display name 2026-05-29 03:00:21 -05:00
Mike Prasuhn a987719410 Add deepseek-4-flash and claude-opus-4.8 2026-05-29 03:45:50 -04:00
Aiden Cline 9528528f69 Merge pull request #1890 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-28 23:42:03 -05:00
github-actions[bot] fbad40d863 chore(sync): update OpenRouter model catalog 2026-05-29 03:26:05 +00:00
Aiden Cline 84559b598b Merge pull request #1894 from anomalyco/add-siliconflow-cn-deepseek-v4-pro
feat(siliconflow-cn): add deepseek-ai/DeepSeek-V4-Pro
2026-05-28 19:10:18 -05:00
Aiden Cline 9d45730db9 Merge pull request #1889 from fhennerkes/dev
poe: add Claude-Opus-4.8 model
2026-05-28 19:10:06 -05:00
Aiden Cline 791089e4aa Merge pull request #1891 from ticoombs/dev
feat(copilot): update all copilot models, add claude-opus-4.8
2026-05-28 19:09:52 -05:00
Aiden Cline fcc4387187 feat(siliconflow-cn): add deepseek-ai/DeepSeek-V4-Pro 2026-05-28 19:09:15 -05:00
Tim C 6aa32ba566 fix(copilot): update all context,input,output with correct limits 2026-05-29 08:56:19 +10:00
Tim C 459a563d2b feat(copilot): add claude-opus-4.8 2026-05-29 08:52:42 +10:00
Aiden Cline 739e5a7c8e Merge pull request #1877 from aakash-gupte/add-merge-gateway-provider
Add Merge Gateway provider
2026-05-28 16:55:40 -05:00
Aiden Cline efc87afa3a Merge pull request #1888 from smakosh/add-llmgateway-opus-4-8
feat(llmgateway): add Claude Opus 4.8
2026-05-28 16:54:46 -05:00
Aiden Cline f616aa6a0b Merge pull request #1887 from dpuyosa/dev
Venice: Add Claude Opus 4.8 models
2026-05-28 16:54:35 -05:00
fhennerkesandClaude Opus 4.7 f77e75a567 poe: add Claude-Opus-4.8 model
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>
2026-05-28 14:39:52 -07:00
smakoshandClaude Opus 4.8 651bd4d91a feat(llmgateway): add Claude Opus 4.8
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>
2026-05-28 22:07:40 +01:00
dpuyosa 30b9170106 [venice] Add Claude Opus 4.8 models
- Add claude-opus-4-8.toml (standard pricing)
- Add claude-opus-4-8-fast.toml (fast variant)
- Both: 1M context, image input, Opus 4.8 family
2026-05-28 22:54:39 +02:00
Aiden Cline 81e42c653c Merge pull request #1886 from vglafirov/add-gitlab-opus-4-8
feat: add GitLab Agentic Chat Opus 4.8
2026-05-28 15:25:06 -05:00
Vladimir Glafirov 11f2a38594 feat: add GitLab Agentic Chat Opus 4.8 2026-05-28 22:12:12 +02:00
Aiden Cline 6621be978f Merge pull request #1880 from bas3line/update-routing-run-base-url
Update routing.run API base URL
2026-05-28 14:46:09 -05:00
Aiden Cline c8d72661d6 Merge pull request #1885 from alaviss/bedrock-opus-4-8
feat: add cross-region inference entries for Bedrock for Opus 4.8
2026-05-28 14:45:43 -05:00
Hiếu Lê 21b7cacc33 feat: add cross-region inference entries for Bedrock for Opus 4.8 2026-05-28 12:38:19 -07:00
Aiden Cline ac1dc14439 Merge pull request #1884 from calebboyd/update-vercel-models-latest
feat: add vercel ai gateway opus 4.8
2026-05-28 14:31:03 -05:00
Aiden Cline 63acb799da Merge pull request #1883 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-28 14:30:56 -05:00
github-actions[bot] 2e6ebb6750 chore(sync): update OpenRouter model catalog 2026-05-28 19:11:47 +00:00
calebboyd d8c2e15632 feat: add vercel ai gateway opus 4.8 2026-05-28 13:33:37 -05:00
Frank 8a70160200 update zen model 2026-05-28 14:01:35 -04:00
Aiden Cline 7ea1d4e15c Merge pull request #1882 from anomalyco/add-opus-4.8
feat: add opus 4.8
2026-05-28 12:04:51 -05:00
Aiden Cline 1c71b1bf17 feat: add opus 4.8 2026-05-28 12:04:14 -05:00
Aiden Cline acc3126194 Merge pull request #1879 from Ardakilic/chore/ci-fork-ensurance
CI Scheduled fork upstream ensurance
2026-05-28 11:27:47 -05:00
Aiden Cline 1f67addc01 Merge pull request #1878 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-28 11:27:07 -05:00
github-actions[bot] bb011e71a7 chore(sync): update OpenRouter model catalog 2026-05-28 15:28:44 +00:00
bas3line 3df181411f fix(routing-run): update API base URL 2026-05-28 08:58:33 +05:30
Arda Kilicdagi a1f588463c chore: prevent forks to run cronjobbed sync commands 2026-05-28 06:25:45 +04:00
Arda Kilicdagi cb414c6886 chore: prevent forks to run cronjobbed sync commands 2026-05-28 05:31:19 +04:00
Arda Kilicdagi 4095e819c9 chore: prevent forks to run cronjobbed sync commands
chore: prevent forks to run cronjobbed sync commands
2026-05-28 05:26:15 +04:00
Aakash GupteandClaude Opus 4.7 9367cc1825 Add Merge Gateway logo
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 17:22:44 -04:00
Aakash GupteandClaude Opus 4.7 96b9a04c4b Add Merge Gateway provider
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>
2026-05-27 14:32:21 -04:00
Jack d9de217dc4 update zen models 2026-05-28 01:46:38 +08:00
Aiden Cline 64ea80d416 Merge pull request #1869 from anomalyco/fix/xiaomi-token-plan-models
fix Xiaomi Token Plan model catalog
2026-05-27 12:02:22 -05:00
Aiden Cline d3859517d1 Merge pull request #1870 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-27 12:01:59 -05:00
Aiden Cline 985a144c5f Merge pull request #1866 from tarikko/patch-1
Update Mistral Small model details in TOML file
2026-05-27 11:43:52 -05:00
Jack 5b05070eb4 Merge pull request #1875 from anomalyco/update/opencode-go-mimo-v2-5-pricing
update opencode go MiMo V2.5 pricing
2026-05-28 00:39:53 +08:00
Aiden Cline dad245c5e1 Merge pull request #1871 from oskarkocol/chore/update-groq-cache-prices
chore: update groq cache pricing
2026-05-27 11:39:22 -05:00
Aiden Cline bcff9bd6b2 Merge pull request #1874 from Alex-yang00/codex/sync-novita-models
Sync NovitaAI models
2026-05-27 11:39:03 -05:00
Aiden Cline 561bdaa546 Merge pull request #1876 from sebastiand-cerebras/deprecate-cerebras-qwen235b-llama8b-20260527
Remove deprecated Cerebras Qwen 3 235B model
2026-05-27 11:38:26 -05:00
Jack f4f210986c fix opencode go MiMo pricing conflict resolution 2026-05-28 00:36:48 +08:00
Jack f4206f4eaa Merge branch 'dev' into update/opencode-go-mimo-v2-5-pricing 2026-05-28 00:34:02 +08:00
Seb Duerr 52e5b67bc4 Remove deprecated Cerebras Qwen 3 235B model 2026-05-27 09:13:50 -07:00
Jack d11b0e448c update opencode go MiMo V2.5 pricing 2026-05-27 23:54:58 +08:00
github-actions[bot] 591745690e chore(sync): update OpenRouter model catalog 2026-05-27 15:28:06 +00:00
Codex 5a4bc9b383 Add selected NovitaAI models 2026-05-27 21:30:38 +08:00
Tarik a14171bcd4 Update mistral-small.toml
the only difference is the price so I removed the other fields
2026-05-27 14:00:33 +01:00
oskar 0741c5a53c chore: update kimi cache rate 2026-05-27 13:09:20 +07:00
oskar 7a1ec8737b chore: update groq cache pricing 2026-05-27 13:05:24 +07:00
Aiden Cline 7c37c92c2d fix Xiaomi Token Plan model catalog 2026-05-27 00:39:17 -05:00
Aiden Cline ec4ec6d441 Merge pull request #1867 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-27 00:00:17 -05:00
Aiden Cline d96da5ece6 Merge pull request #1868 from Ardakilic/chore/sync-kilo-models-20260527-1
Sync Kilo models with upstream gateway
2026-05-26 23:59:26 -05:00
github-actions[bot] 0342c79d03 chore(sync): update OpenRouter model catalog 2026-05-27 03:26:29 +00:00
Arda Kilicdagi 37136fc2f3 chore: sync upstream kilo api gateway models 2026-05-27 02:27:53 +04:00
Tarik 131eca9c5e Update Mistral Small model configuration
use [extends] syntax
2026-05-26 20:44:22 +01:00
Tarik 3e38d46c4c Update Mistral Small model details in TOML file
The details on helicone website are false,

accurate details are pulled from deepinfra website

https://www.helicone.ai/model/mistral-small

https://deepinfra.com/mistralai/Mistral-Small-3.2-24B-Instruct-2506
2026-05-26 19:34:07 +01:00
Aiden Cline 989939773b Merge pull request #1863 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-26 13:04:26 -05:00
Frank 4f1d5c511a update go models 2026-05-26 13:54:19 -04:00
github-actions[bot] 34a21e07f2 chore(sync): update OpenRouter model catalog 2026-05-26 17:26:26 +00:00
Aiden Cline 979f5da0ca Merge pull request #1864 from oskarkocol/update/openai-cache-rates
chore: update openai cache rates
2026-05-26 12:06:15 -05:00
oskar 73b357e2ab update cache rates 2026-05-26 23:28:11 +07:00
Aiden Cline 97c71f1663 Merge pull request #1862 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-26 09:11:54 -05:00
github-actions[bot] 59c270bc85 chore(sync): update OpenRouter model catalog 2026-05-26 13:23:20 +00:00
Aiden Cline a4c18f88ed Merge pull request #1860 from bas3line/sync-routing-run-models-2
Sync routing.run model catalog
2026-05-25 23:44:24 -05:00
bas3line 3343a585ac fix(routing-run): sync model catalog 2026-05-26 09:51:14 +05:30
Aiden Cline f23db95550 Merge pull request #1858 from smakosh/fix/llmgateway-qwen3.7-max-id
fix(llmgateway): correct Qwen3.7 Max model id to qwen3.7-max
2026-05-25 17:22:56 -05:00
Aiden Cline 556d9a9045 Merge pull request #1859 from Suat-B/update-xpersona-frieren-coder-limits
Update Xpersona Frieren Coder limits
2026-05-25 17:22:46 -05:00
Frank 49991c8f8f update zen models 2026-05-25 17:56:52 -04:00
Suat-B 20c1e810ce Update Xpersona Frieren Coder limits 2026-05-25 13:23:59 -05:00
smakoshandClaude Opus 4.7 15d08b4540 fix(llmgateway): correct Qwen3.7 Max model id to qwen3.7-max
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>
2026-05-25 18:48:12 +01:00
Aiden Cline 14bbc303e5 Merge pull request #1852 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-25 09:49:26 -05:00
Aiden Cline 02da63ed48 Merge pull request #1853 from dpuyosa/chore/venice-pricing
Venice: Update pricing and limits for 4 models
2026-05-25 09:49:09 -05:00
github-actions[bot] 07daef8c54 chore(sync): update OpenRouter model catalog 2026-05-25 13:27:22 +00:00
dpuyosa b6ebe8696c [venice] Update pricing, limits, and last_updated for 4 models
- 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
2026-05-25 10:07:32 +02:00
Aiden Cline ad654e71da Merge pull request #1850 from huxeon/dev
fix: modify the deepseek v4 flash/pro price
2026-05-25 00:18:18 -05:00
Aiden Cline 508f4d48e1 Merge pull request #1847 from ceyhanmolla/poolside/laguna-direct
Add Poolside provider with Laguna M.1 and XS.2 models
2026-05-24 23:26:34 -05:00
opencode-agent[bot] cd7c70b4fe revert: remove opencode-go deepseek-v4-pro price changes
Keep only the deepseek provider price updates as intended.
2026-05-25 04:26:14 +00:00
Aiden Cline 10e752ea84 Merge pull request #1845 from yukoba/vultr
Update Vultr models
2026-05-24 23:26:12 -05:00
huxeon 4cdb4c700b fix: modify the deepseek v4 flash/pro price in provider deepseek and opencode-go 2026-05-24 13:33:56 +08:00
Aiden Cline d497a446eb Merge pull request #1849 from technoabsurdist/add-wafer-ai-qwen3.6-35b-a3b-and-kimi-k2.6
providers/wafer.ai: add Qwen3.6-35B-A3B and Kimi-K2.6
2026-05-23 16:41:24 -05:00
Emilio AndereandCursor 745cf557b3 feat(wafer.ai): add Qwen3.6-35B-A3B and Kimi-K2.6
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>
2026-05-23 13:26:18 -04:00
Yu Kobayashi db295d6842 Refactor to use the extends syntax 2026-05-24 01:20:31 +09:00
ceyhanmolla 47c0eed41e Add Poolside provider with Laguna M.1 and XS.2 models 2026-05-23 17:09:33 +02:00
Yu Kobayashi e690980857 Update Vultr models 2026-05-23 16:25:11 +09:00
Aiden Cline f5f7d1a167 Merge pull request #1840 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-22 16:58:23 -05:00
Aiden Cline cfbbb55c4d Merge pull request #1839 from anthraxx/alibaba-qwen3.7-plus
Alibaba: Add Qwen 3.7 Max and 3.6 Flash to all regions and plans
2026-05-22 16:58:08 -05:00
github-actions[bot] 1956762cdf chore(sync): update OpenRouter model catalog 2026-05-22 21:41:35 +00:00
Levente Polyak 28571433f7 feat(alibaba): add Qwen3.7 Max model configuration to all regions
Link: https://bailian.console.alibabacloud.com/cn-beijing?tab=model#/model-market/detail/qwen3.7-max?serviceSite=asia-pacific-china
2026-05-22 19:00:29 +02:00
Levente Polyak aef5e48bae feat(alibaba): add Qwen3.6 Flash model configuration to all regions
Link: https://bailian.console.alibabacloud.com/cn-beijing?tab=model#/model-market/detail/qwen3.6-flash?serviceSite=asia-pacific-china
2026-05-22 18:54:22 +02:00
Aiden Cline 8ba19639a7 Merge pull request #1825 from shzdehmd/dev
update(fireworks): sync models and pricing with current offerings
2026-05-22 11:45:45 -05:00
Aiden Cline 0f9b4c9edc Merge pull request #1834 from monotykamary/chore/update-neuralwatt-qwen3.6-pricing
fix(neuralwatt): update Qwen3.6 pricing to match API
2026-05-22 09:13:02 -05:00
Aiden Cline 2a9b6256dc Merge pull request #1836 from PierreLeGuen/nearai-provider
Add current NEAR AI Cloud models
2026-05-22 09:12:36 -05:00
Aiden Cline 51633fe106 Merge pull request #1838 from Quentinchampenois/fix/update-models-scaleway
fix: update Scaleway provider models list
2026-05-22 09:12:26 -05:00
Aiden Cline 169b5c4331 Merge pull request #1833 from NicoAvanzDev/add-copilot-gemini-3-5-flash
[GitHub Copilot] add Gemini 3.5 Flash
2026-05-22 09:09:25 -05:00
Aiden Cline 9d0f0d6d56 Merge pull request #1837 from fydrah/fix/google-vertex-gemini-3.5-flash
fix: missing google-vertex gemini 3.5 flash extend
2026-05-22 09:07:34 -05:00
Aiden Cline 1d2af0c97b Merge pull request #1835 from dpuyosa/feat/venice-models
Venice: Add Gemini 3.5 Flash and Qwen 3.7 Max, update Grok Build 0.1 pricing
2026-05-22 09:07:03 -05:00
Aiden Cline cc14ae4370 Merge pull request #1832 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-22 09:06:16 -05:00
github-actions[bot] ad9a3448d2 chore(sync): update OpenRouter model catalog 2026-05-22 14:03:32 +00:00
Quentin Champenois c6f9cf58e4 fix(scaleway): add new models gemma-4-26b-a4b-it and qwen3.6-35b-a3b 2026-05-22 15:43:11 +02:00
Quentin Champenois bba5809471 fix(scaleway): Extends existing models 2026-05-22 15:42:36 +02:00
Quentin Champenois c0852f1b4f fix(scaleway): Clear removed models from list 2026-05-22 15:11:44 +02:00
Flavien Hardy 0fc3a3f635 fix: missing google-vertex gemini 3.5 flash extend 2026-05-22 08:56:44 -04:00
Pierre LE GUEN 68936dc062 Add current NEAR AI Cloud models 2026-05-22 09:27:57 +00:00
dpuyosa ade9760060 [venice] Add Gemini 3.5 Flash and Qwen 3.7 Max, update Grok Build 0.1 pricing
- Add Gemini 3.5 Flash model (1M context, multimodal input)
- Add Qwen 3.7 Max model (1M context, text-only)
- Update Grok Build 0.1 cost tiers and pricing
2026-05-22 10:57:38 +02:00
Tom X Nguyen 2a8b90b197 fix(neuralwatt): update Qwen3.6 pricing to match API
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.
2026-05-22 15:19:51 +07:00
NicoAvanzDev 8569f0dfef [GitHub Copilot] add Gemini 3.5 Flash 2026-05-22 07:57:10 +00:00
Aiden Cline fc98ceb72e fix sync workflow force lease 2026-05-21 23:52:34 -05:00
Aiden Cline be7c5afc94 Merge pull request #1831 from anomalyco/fix-vertex-sonnet-4-6-limits
Fix Vertex Sonnet 4.6 token limits
2026-05-21 23:38:18 -05:00
Aiden Cline 57e62c43b0 fix vertex sonnet 4.6 limits 2026-05-21 23:37:30 -05:00
Aiden Cline 0898c35c9f Merge pull request #1830 from zainhas/dev
[Together AI] add Qwen3.7 max
2026-05-21 21:00:51 -05:00
Zain Hasan 46b23fb313 Merge branch 'anomalyco:dev' into dev 2026-05-21 17:47:35 -07:00
Zain Hasan 05fedc76cc [Together AI] add Qwen3.7 2026-05-21 17:47:19 -07:00
Aiden Cline 2738f81d1a Merge pull request #1828 from anomalyco/refactor/sync-core-layout
refactor: move sync implementation into core src
2026-05-21 18:10:09 -05:00
Aiden Cline 89b834086a refactor: move sync implementation into core src 2026-05-21 18:06:25 -05:00
Aiden Cline 1ab2ff8163 Merge pull request #1826 from smakosh/add-llmgateway-models
feat: add new LLM Gateway text models
2026-05-21 17:58:29 -05:00
Frank 9468676683 update zen models 2026-05-21 18:42:36 -04:00
Claude 6cdd2f054b Merge upstream/dev into add-llmgateway-models; resolve gemini-3.5-flash conflict
# Conflicts:
#	providers/google/models/gemini-3.5-flash.toml
2026-05-21 21:48:48 +00:00
Aiden Cline b13abc9141 Merge pull request #1827 from anomalyco/update-xai-pricing
fix xAI long-context pricing
2026-05-21 16:45:43 -05:00
Aiden Cline e5ba264751 fix xAI long-context pricing 2026-05-21 16:41:36 -05:00
smakoshandClaude Opus 4.7 a7811fb522 refactor: use extends for gemini and qwen models
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>
2026-05-21 23:38:57 +02:00
smakoshandClaude Opus 4.7 605fae75d9 feat: add new LLM Gateway text models
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>
2026-05-21 23:04:47 +02:00
Ahmad Shahzad bcab0885bc update(fireworks): sync models and pricing with current offerings
Removed — 11 deprecated models:
- deepseek-v3p1
- deepseek-v3p2
- glm-4p5
- glm-4p5-air
- glm-4p7
- glm-5
- kimi-k2-instruct
- kimi-k2-thinking
- minimax-m2p1
- routers/kimi-k2p5-turbo

Added — 2 new Turbo (routers) models:
- routers/glm-5p1-fast
- routers/kimi-k2p6-turbo

Modified — pricing fixes:
- deepseek-v4-pro: cache_read 0.15 → 0.145
- gpt-oss-120b: added cache_read = 0.015
- gpt-oss-20b: input 0.05 → 0.07, output 0.20 → 0.30, added cache_read = 0.035
- minimax-m2p7: cache_read 0.03 → 0.06
2026-05-22 01:55:31 +05:00
Aiden Cline 26b05268ae Merge pull request #1824 from anomalyco/fix/vercel-gemini-35-flash
Add new Vercel AI Gateway models
2026-05-21 15:30:35 -05:00
Aiden Cline 1aee13d2e5 Add new Vercel AI Gateway models 2026-05-21 13:21:25 -05:00
Aiden Cline 0a924e6bb2 Merge pull request #1822 from anomalyco/automation/sync-models-xai
chore(sync): update xAI model catalog
2026-05-21 13:05:20 -05:00
Aiden Cline 9769b2b11d Merge pull request #1823 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-05-21 13:05:13 -05:00
github-actions[bot] 1b0db099cf chore(sync): update OpenRouter model catalog 2026-05-21 17:56:13 +00:00
github-actions[bot] 16ed78587c chore(sync): update xAI model catalog 2026-05-21 17:56:11 +00:00
Frank 0b88965165 update zen models 2026-05-21 13:41:55 -04:00
Aiden Cline acc704ce39 Merge pull request #1797 from arnavchachra/add-crof-provider
add crof.ai provider with 21 models
2026-05-21 11:43:02 -05:00
Aiden Cline 51ad3b264e Merge pull request #1821 from anomalyco/sync-provider-ci
chore: automate provider sync jobs
2026-05-21 11:23:49 -05:00
Aiden Cline 146b6c7084 Merge pull request #1819 from Inceptron-Software/add_inceptron_provider
Add Inceptron provider
2026-05-21 11:21:27 -05:00
Aiden Cline 0e3cbe3c64 chore: automate provider sync jobs 2026-05-21 11:21:12 -05:00
Aiden Cline 604d4d66a4 Merge pull request #1820 from Suat-B/codex/xpersona-image-input-20260521
Add image input modality to Xpersona model
2026-05-21 11:00:49 -05:00
SuatB f5090028b8 Add image input modality to Xpersona model 2026-05-21 09:46:28 -05:00
Frank 4bad8faf29 update zen models 2026-05-21 09:05:13 -04:00
Oskar Gustafsson 0df2ccf586 Add Inceptron provider 2026-05-21 09:24:43 +02:00
Aiden Cline bafdc00b45 Merge pull request #1812 from anomalyco/openrouter-extends-sync
Sync OpenRouter models with extends
2026-05-20 21:07:21 -05:00
Aiden Cline 49840c013b Merge pull request #1814 from neonn0d/feat/stepfun-ai
feat(stepfun-ai): add international StepFun platform
2026-05-20 20:58:37 -05:00
Aiden Cline eccae0b54e sync openrouter models with extends 2026-05-20 20:32:11 -05:00
Aiden Cline 4cca29405f Merge pull request #1817 from dpuyosa/dev
Venice: Remove Grok 4.1 Fast and add Grok Build 0.1
2026-05-20 20:26:45 -05:00
Aiden Cline e40d9dd338 Merge pull request #1818 from anomalyco/cloudflare-sync-env
chore(sync): isolate cloudflare credentials
2026-05-20 20:26:22 -05:00
Aiden Cline 6a74991397 chore(sync): isolate cloudflare credentials 2026-05-20 20:19:47 -05:00
dpuyosa 035999cb58 [venice] Replace Grok 4.1 Fast with Grok Build 0.1
- Remove deprecated grok-41-fast model entry
- Add grok-build-0-1 with 200K token tiered pricing
- Update context to 256K and output limit to 65,536
2026-05-21 02:36:19 +02:00
Frank cec56bf1bc update zen models 2026-05-20 19:43:25 -04:00
Aiden Cline 85f0cdcb2f Merge pull request #1816 from anomalyco/xai-sync
Add PDF input modality to Grok models
2026-05-20 18:12:47 -05:00
Aiden Cline ef80d4df4e Infer PDF modality for xAI image models 2026-05-20 18:12:11 -05:00
Aiden Cline af0ef00109 Update xAI Grok PDF modalities 2026-05-20 18:06:33 -05:00
Aiden Cline 5fdcea6b36 Merge pull request #1815 from anomalyco/cloudflare-ai-gateway
chore(sync): add cloudflare workers ai sync
2026-05-20 18:02:28 -05:00
Aiden Cline 31e56480b4 chore(sync): add cloudflare workers ai sync 2026-05-20 16:55:29 -05:00
Aiden Cline 92a621594e Merge pull request #1813 from anomalyco/sync-xai
chore(sync): add xai model sync
2026-05-20 16:02:38 -05:00
Aiden Cline d2db353ceb chore: ignore sync reports 2026-05-20 16:01:51 -05:00
Aiden Cline 900ae509d2 Merge pull request #1808 from ajussak/scaleway
Added Mistral Medium 3.5 128B from Scaleway
2026-05-20 15:58:00 -05:00
neo 9d60164243 feat(stepfun-ai): add international StepFun platform
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.
2026-05-20 20:43:47 +02:00
Adrien Jussak cd3e99025f Update Mistral Medium 3.5 128B model configuration to extend from mistral-medium-2604 and adjust context window size. 2026-05-20 20:43:45 +02:00
Aiden Cline 1098981eb6 chore(sync): add xai model sync 2026-05-20 13:23:02 -05:00
Aiden Cline 27a151cf53 Merge pull request #1811 from anomalyco/xai-grok-build-model
Add xAI Grok Build model
2026-05-20 13:05:06 -05:00
Aiden Cline 41ff42ab7f Merge pull request #1810 from fhennerkes/dev
poe: add Gemini-3.5-Flash model
2026-05-20 13:04:47 -05:00
Aiden Cline adf1cbdecd add xai grok build model 2026-05-20 13:04:13 -05:00
Frank 10ddc78ce0 update zen models 2026-05-20 14:02:01 -04:00
fhennerkesandClaude Opus 4.7 7ae897e440 poe: add Gemini-3.5-Flash model
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>
2026-05-20 10:52:15 -07:00
Aiden Cline 02e452c2e8 Merge pull request #1805 from anomalyco/sync-google
sync google models
2026-05-20 10:53:57 -05:00
Aiden Cline f05b63fff5 Merge pull request #1807 from anomalyco/automation/sync-models-aggregators
chore(sync): update aggregator model catalogs
2026-05-20 10:34:30 -05:00
Adrien Jussak e277d60236 Add Mistral Medium 3.5 128B to Scaleway 2026-05-20 16:14:37 +02:00
github-actions[bot] b01277a737 chore(sync): update aggregator model catalogs 2026-05-20 09:25:37 +00:00
Frank a5da5aa429 update zen models 2026-05-20 04:14:28 -04:00
Aiden Cline 5ceac8a58b updates 2026-05-19 23:43:01 -05:00
Aiden Cline 11e1d5623a Merge pull request #1806 from Cahl-Dee/grid-model-updates-2026-05
Grid model updates 2026-05
2026-05-19 23:42:26 -05:00
Aiden Cline f107afc57c sync 2026-05-19 22:56:50 -05:00
Carl DiClementi e789d7c1f2 Merge branch 'anomalyco:dev' into grid-model-updates-2026-05 2026-05-19 16:06:23 -05:00
Cahl-Dee 899668ad49 added new code and agent models and updated existing text models 2026-05-19 16:04:58 -05:00
Aiden Cline 8c677f0134 sync google models 2026-05-19 15:58:06 -05:00
Aiden Cline 462c7877d9 add gemini 3.5 flash 2026-05-19 15:43:38 -05:00
Aiden Cline 55871f9dca Merge pull request #1804 from Adanlink/dev
feat: add deepseek-v4-flash to the fireworks-ai provider
2026-05-19 15:29:33 -05:00
Aiden Cline 4f7194a3c8 test 2026-05-19 15:09:11 -05:00
Aiden Cline f65f0148da add sync guide 2026-05-19 15:08:44 -05:00
Adán 14952f8855 Rename deepseek-v4-flash to deepseek-v4-flash.toml 2026-05-19 18:56:43 +02:00
Adán d7c6d3ad12 Add deepseek-v4-flash model configuration 2026-05-19 18:53:48 +02:00
Aiden Cline 356bc79d08 Merge pull request #1637 from elvexai/fix/amazon-bedrock-kimi-token-limits
fix: Token limits for Amazon Bedrock Kimi K2 models
2026-05-19 09:42:30 -05:00
Aiden Cline a89b1ed726 Merge pull request #1801 from bas3line/sync-routing-run-models
Sync routing.run model catalog
2026-05-19 09:41:38 -05:00
bas3line a998576773 fix(routing-run): match live model metadata 2026-05-19 10:38:58 +05:30
bas3line fbe842bbea fix(routing-run): expose reasoning metadata 2026-05-19 08:39:51 +05:30
bas3line 6c0c3d1b10 fix(routing-run): sync model catalog 2026-05-19 07:37:53 +05:30
Aiden Cline db0a7cf611 Merge pull request #1798 from anomalyco/rework-sync-logic
sync: centralize aggregator model updates
2026-05-18 20:12:50 -05:00
Aiden Cline d775e37e3b Merge pull request #1800 from jerome-benoit/feat/sap-ai-core-gpt-5.4
feat(sap-ai-core): add GPT-5.4
2026-05-18 20:12:21 -05:00
Jérôme Benoit 36753063d9 feat(sap-ai-core): add GPT-5.4
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).
2026-05-19 02:58:29 +02:00
Aiden Cline 5ee955297a sync: drop vercel catalog updates 2026-05-18 19:07:14 -05:00
Aiden Cline 1b77511903 Merge pull request #1799 from vglafirov/add-gitlab-gpt-5-5
feat(gitlab): add Agentic Chat (GPT-5.5) model
2026-05-18 15:24:18 -05:00
Aiden Cline 8896ead7bf sync: fix vercel pricing tiers 2026-05-18 14:52:40 -05:00
Vladimir Glafirov eb96594d47 feat(gitlab): add Agentic Chat (GPT-5.5) model
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.
2026-05-18 20:44:34 +02:00
Aiden Cline 327332efe3 Merge pull request #1794 from bas3line/add-routing-run-provider
Add routing.run provider
2026-05-18 12:32:34 -05:00
Aiden Cline 5020951745 sync: refresh openrouter after dev merge 2026-05-18 12:30:29 -05:00
Aiden Cline cb6f97774e Merge remote-tracking branch 'origin/dev' into rework-sync-logic 2026-05-18 12:29:28 -05:00
Aiden Cline 7f8b493b0c Merge pull request #1795 from delafthi/delafthi/lxxqxzktnozv
fix(providers/novita-ai): use lowercase model names
2026-05-18 12:28:32 -05:00
Aiden Cline d65a862533 sync: centralize aggregator model updates 2026-05-18 12:12:15 -05:00
arnavchachra 9420048dfe fix crof model limits and reasoning flag to match Crof API 2026-05-18 21:51:19 +05:30
arnavchachra 8db6c27634 add crof provider with 21 models 2026-05-18 21:40:11 +05:30
Victor Navarro 8e710e19ea bring back old bick-pickle
Added interleaved section with reasoning_content field and removed provider section.
2026-05-18 11:44:14 +02:00
Frank 36c6896e97 update zen models 2026-05-17 22:58:06 -04:00
Aiden Cline a8be548a5d Merge pull request #1416 from Luew2/add-lilac-provider
Add Lilac provider
2026-05-17 19:23:07 -05:00
Luew2 8c2fae4ab0 Keep exact Lilac Gemma model name 2026-05-17 17:19:53 -07:00
Luew2 5e7fad350d Align Lilac Gemma display name 2026-05-17 17:19:04 -07:00
Luew2 feb85ef2c9 Align Lilac provider with registry conventions 2026-05-17 17:15:40 -07:00
Luew2 d4161ebf24 Follow models.dev conventions for Lilac provider 2026-05-17 17:11:03 -07:00
Luew2 b91ab02e2b Add Lilac MiniMax M2.7 model 2026-05-17 17:07:44 -07:00
Luew2 dd09d07f75 Update Lilac Kimi model to K2.6 2026-05-17 17:07:44 -07:00
Luew2 4515f85d47 Add Lilac cache pricing 2026-05-17 17:07:44 -07:00
Luew2andClaude Opus 4.7 97572240e1 Add Gemma 4 31B IT model
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>
2026-05-17 17:07:44 -07:00
Luew2 80cc04e9e5 Fix Kimi K2.5 output limit to 262,144 tokens 2026-05-17 17:07:44 -07:00
Luew2 d532ebb89b Use purple gradient for Lilac logo (brand colors #6451dc → #b6a6f9) 2026-05-17 17:07:44 -07:00
Luew2 9bae3e887f Replace placeholder logo with Lilac icon mark (currentColor) 2026-05-17 17:07:44 -07:00
Luew2 0be69bf872 Add Lilac provider
Add Lilac as an OpenAI-compatible provider serving:
- z-ai/glm-5.1: Z.ai's flagship agentic model (754B MoE, 202.8K context)
- moonshotai/kimi-k2.5: Moonshot AI's multimodal reasoning model (1T MoE, 262K context)

API: https://api.getlilac.com/v1
Docs: https://docs.getlilac.com
2026-05-17 17:07:44 -07:00
Thierry Delafontaine 0ed38cbecf fix(providers/novita-ai): use lowercase model names
Mixed case naming causes conflicts on case-insensitive filesystems like macOS.
2026-05-17 21:17:46 +02:00
bas3line e65703382a feat: add routing.run provider 2026-05-17 20:27:56 +05:30
Aiden Cline 748754c99b Merge pull request #1792 from monotykamary/fix/neuralwatt-context-limits
fix(neuralwatt): sync context window and output limits with upstream API
2026-05-16 13:14:05 -05:00
Tom X Nguyen ec9c12d0fc fix(neuralwatt): sync context window and output limits with upstream API
Updates all 14 neuralwatt model TOML files with corrected context window
and max output token values as reported by the Neuralwatt API:

- Devstral-Small-2-24B-Instruct-2512: 262,144 -> 262,128
- GLM-5/GLM-5.1 variants: 200,000 -> 202,736
- GPT-OSS-20B: 16,384 -> 16,368
- Kimi-K2.5/K2.6 variants: 262,144 -> 262,128
- MiniMax-M2.5: 196,608 -> 196,592
- Qwen3.5-397B variants: 262,144 -> 262,128
- Qwen3.6-35B variants: 131,072 -> 131,056

Also fixes the README: moves kimi-k2.6-fast from 'Reasoning Models' to
'Fast Variants' and removes incorrect claim that fast variants support
reasoning.
2026-05-16 23:16:34 +07:00
Aiden Cline ac81822c89 Merge pull request #1777 from berget-ai/feat/berget-kimi-k2.6
feat: add Kimi K2.6 to berget.ai
2026-05-16 06:09:00 -05:00
Aiden Cline d32ed764bd Merge pull request #1791 from anomalyco/automation/sync-openrouter-models
Sync OpenRouter models
2026-05-16 06:08:09 -05:00
Christian Landgren 45fb951c42 feat: add Kimi K2.6 to berget.ai
Add Moonshot AI Kimi K2.6 model to berget.ai provider catalog.

- 262K context window
- 16K output tokens
- Text input/output
- Supports: reasoning, structured output, tool calling
- Pricing: /bin/zsh.83/M input, .85/M output (EUR-based)
- Open weights
2026-05-16 12:46:35 +02:00
github-actions[bot] 260d79b2d5 Sync OpenRouter models 2026-05-16 08:54:41 +00:00
Aiden Cline 746b9caf79 Merge pull request #1785 from jerome-benoit/feat/sap-ai-core-opus-4-7
feat(sap-ai-core): add Claude Opus 4.7 and sync model specs
2026-05-15 23:24:47 -05:00
Aiden Cline 8362b55503 Merge pull request #1786 from Ardakilic/chore/kilo-sync-20260516
providers(kilo): sync upstream
2026-05-15 23:24:34 -05:00
Aiden Cline dde3953a9f Merge pull request #1787 from Suat-B/codex/xpersona-www-api-url
Fix Xpersona API base URL
2026-05-15 23:24:06 -05:00
Aiden Cline 0a1695212c Merge pull request #1788 from Jaaneek/xai-may-15-2026-retirement
xai: drop models retired May 15, 2026 + add Grok Imagine models
2026-05-15 23:23:52 -05:00
Jaaneek 89fbb6bb69 xai: drop models retired May 15, 2026 + add Grok Imagine models 2026-05-16 01:57:15 +01:00
SuatB 005fe0fb5a Fix Xpersona provider API URL 2026-05-15 18:37:41 -05:00
Frank e283875ce7 update zen models 2026-05-15 17:24:53 -04:00
Arda Kilicdagi 3598019251 providers(kilo): sync upstream 2026-05-16 01:11:25 +04:00
Jérôme Benoit e9ad8b0a3f feat(sap-ai-core): add Claude Opus 4.7 and sync model specs 2026-05-15 22:16:07 +02:00
Aiden Cline 0ee78eeda5 sync: openrouter models 2026-05-15 10:20:36 -05:00
Aiden Cline 0a5b33e518 Merge pull request #1778 from zhenjunchen-png/add-orcarouter
feat: add OrcaRouter as a new provider
2026-05-15 10:16:29 -05:00
Aiden Cline 22416dda64 Merge pull request #1783 from anomalyco/sync-openrouter
add sync script for openrouter, sync openrouter models
2026-05-15 10:12:02 -05:00
zhenjun.chen 022b1b9946 feat(orcarouter): expand to 80 chat models and add brand logo
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.
2026-05-15 14:48:31 +08:00
zhenjun.chen 699284ce91 chore(orcarouter): drop oversize logo, fall back to models.dev default
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.
2026-05-14 21:37:48 +08:00
zhenjun.chen 7102978cb4 feat: add OrcaRouter provider
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.
2026-05-14 20:55:47 +08:00
Mike Sukmanowsky 2cb5a99b98 fix: add model card links for Kimi K2 and Kimi K2.5 2026-04-29 09:29:36 -04:00
Mike Sukmanowsky 0c2e47e8ba Fix token limits for Amazon Bedrock Kimi K2 models
Correct context and output limits for moonshot.kimi-k2-thinking and
moonshotai.kimi-k2.5 on Amazon Bedrock:
- context: 256_000 → 262_143
- output: 256_000 → 16_000
2026-04-28 17:45:59 -04:00
843 changed files with 6615 additions and 4339 deletions

No files matched your search

+2
View File
@@ -10,6 +10,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
deploy:
if: github.repository == 'anomalyco/models.dev'
runs-on: ubuntu-latest
steps:
- name: Checkout code
@@ -35,3 +36,4 @@ jobs:
- run: bun sst deploy --stage=dev
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_DEFAULT_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_DEFAULT_ACCOUNT_ID }}
+110
View File
@@ -0,0 +1,110 @@
name: Sync Model Catalogs
on:
schedule:
- cron: "17 * * * *"
workflow_dispatch:
permissions:
contents: write
issues: write
pull-requests: write
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
providers:
if: github.repository == 'anomalyco/models.dev'
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.providers.outputs.matrix }}
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
ref: dev
- name: Setup Bun
uses: oven-sh/setup-bun@f4d14e03ff726c06358e5557344e1da148b56cf7
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: List sync providers
id: providers
run: echo "matrix=$(bun models:sync --list-providers)" >> "$GITHUB_OUTPUT"
sync:
needs: providers
if: github.repository == 'anomalyco/models.dev'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.providers.outputs.matrix) }}
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
ref: dev
- name: Setup Bun
uses: oven-sh/setup-bun@f4d14e03ff726c06358e5557344e1da148b56cf7
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Sync model catalogs
run: bun models:sync ${{ matrix.provider }}
env:
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
GOOGLE_GENERATIVE_AI_API_KEY: ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }}
XAI_API_KEY: ${{ secrets.XAI_API_KEY }}
CLOUDFLARE_WORKERS_AI_SYNC_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_WORKERS_AI_SYNC_ACCOUNT_ID }}
CLOUDFLARE_WORKERS_AI_SYNC_API_TOKEN: ${{ secrets.CLOUDFLARE_WORKERS_AI_SYNC_API_TOKEN }}
- name: Validate models
run: bun validate
- name: Create pull request
env:
GH_TOKEN: ${{ github.token }}
BRANCH: automation/sync-models-${{ matrix.provider }}
LABELS: automation,model-sync,provider:${{ matrix.provider }}
TITLE: "chore(sync): update ${{ matrix.name }} model catalog"
run: |
if [ -z "$(git status --porcelain -- providers)" ]; then
echo "No model catalog changes found."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git fetch --no-tags --depth=1 origin "+refs/heads/$BRANCH:refs/remotes/origin/$BRANCH" || true
git checkout -B "$BRANCH"
git add providers
git commit -m "$TITLE"
git push --force-with-lease origin "$BRANCH"
label_args=()
IFS=',' read -ra labels <<< "$LABELS"
for label in "${labels[@]}"; do
gh label create "$label" --color "0E8A16" --description "Automated model catalog sync" >/dev/null 2>&1 || true
label_args+=(--label "$label")
done
pr_number="$(gh pr list --head "$BRANCH" --base dev --json number --jq '.[0].number')"
if [ -n "$pr_number" ]; then
gh pr edit "$pr_number" --title "$TITLE" --body-file .sync/model-sync-report.md
for label in "${labels[@]}"; do
gh pr edit "$pr_number" --add-label "$label"
done
else
gh pr create --base dev --head "$BRANCH" --title "$TITLE" --body-file .sync/model-sync-report.md "${label_args[@]}"
fi
+1
View File
@@ -3,6 +3,7 @@
.idea
dist
.DS_Store
.sync/
node_modules
data/tokenspeed-monitor.sqlite
data/tokenspeed-monitor.sqlite-shm
+2 -1
View File
@@ -17,6 +17,7 @@
"scripts": {
"validate": "bun ./packages/core/script/validate.ts",
"compare:migrations": "bun ./packages/core/script/compare-model-migrations.ts",
"cloudflare:sync": "bun ./packages/core/script/sync-models.ts cloudflare-workers-ai",
"chutes:generate": "bun ./packages/core/script/generate-chutes.ts",
"databricks:generate": "bun ./packages/core/script/generate-databricks.ts",
"helicone:generate": "bun ./packages/core/script/generate-helicone.ts",
@@ -25,7 +26,7 @@
"wandb:generate": "bun ./packages/core/script/generate-wandb.ts",
"digitalocean:generate": "bun ./packages/core/script/generate-digitalocean.ts",
"ambient:generate": "bun ./packages/core/script/generate-ambient.ts",
"openrouter:sync": "bun ./packages/core/script/sync-openrouter.ts"
"models:sync": "bun ./packages/core/script/sync-models.ts"
},
"dependencies": {
"@cloudflare/workers-types": "^4.20260424.1",
+1 -1
View File
@@ -138,7 +138,7 @@ function humanizeModelName(modelId: string): string {
return modelPart.replace(/-/g, " ");
}
// ── Family inference (same approach as generate-vercel.ts) ───────────
// ── Family inference ───────────
function isSubstring(target: string, family: string): boolean {
return target.toLowerCase().includes(family.toLowerCase());
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bun
import { main } from "../src/sync/index.js";
await main();
-318
View File
@@ -1,318 +0,0 @@
#!/usr/bin/env bun
import path from "node:path";
import { mkdir, rm } from "node:fs/promises";
import { z } from "zod";
import { ModelFamilyValues } from "../src/family.js";
import { AuthoredModel, AuthoredModelShape } from "../src/schema.js";
const API_ENDPOINT = "https://openrouter.ai/api/v1/models";
const OpenRouterModel = z
.object({
id: z.string(),
name: z.string(),
created: z.number(),
hugging_face_id: z.string().nullable(),
knowledge_cutoff: z.string().nullable(),
context_length: z.number(),
architecture: z.object({
input_modalities: z.array(z.string()),
output_modalities: z.array(z.string()),
}),
pricing: z
.object({
prompt: z.string(),
completion: z.string(),
internal_reasoning: z.string().optional(),
input_cache_read: z.string().optional(),
input_cache_write: z.string().optional(),
}),
top_provider: z.object({
context_length: z.number().nullable(),
max_completion_tokens: z.number().nullable(),
}),
supported_parameters: z.array(z.string()),
});
const OpenRouterResponse = z
.object({
data: z.array(OpenRouterModel),
})
.passthrough();
const ExistingModel = AuthoredModelShape.partial()
.extend({
extends: z
.object({
from: z.string(),
omit: z.array(z.string()).optional(),
})
.strict()
.optional(),
})
.strict();
type OpenRouterModel = z.infer<typeof OpenRouterModel>;
type ExistingModel = z.infer<typeof ExistingModel>;
function dateFromTimestamp(timestamp: number | undefined) {
if (timestamp === undefined) return new Date().toISOString().slice(0, 10);
return new Date(timestamp * 1000).toISOString().slice(0, 10);
}
function formatInteger(n: number) {
return String(n).replace(/\B(?=(\d{3})+(?!\d))/g, "_");
}
function quote(value: string) {
return `"${value.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
}
function price(value: string | undefined) {
if (value === undefined) return undefined;
const number = Number(value);
return Number.isFinite(number) && number >= 0
? Math.round(number * 1_000_000_000_000) / 1_000_000
: undefined;
}
function modality(value: string) {
return value === "file" ? "pdf" : value;
}
function modalities(values: string[] | undefined, fallback: string[]) {
const allowed = new Set(["text", "audio", "image", "video", "pdf"]);
const result = (values ?? fallback)
.map((value) => modality(value.toLowerCase()))
.filter((value) => allowed.has(value));
return [...new Set(result.length > 0 ? result : fallback)];
}
function inferFamily(model: OpenRouterModel, name: string) {
const target = `${model.id} ${name}`.toLowerCase();
return [...ModelFamilyValues]
.sort((a, b) => b.length - a.length)
.find((family) => {
const value = family.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
if (family === "o") {
return new RegExp(`(^|[^a-z0-9])${value}(?=\\d|$|[^a-z0-9])`).test(target);
}
return new RegExp(`(^|[^a-z0-9])${value}(?=$|[^a-z0-9])`).test(target);
});
}
function buildModel(model: OpenRouterModel, existing: ExistingModel | undefined) {
const params = new Set(model.supported_parameters ?? []);
const name = model.name.replace(/^[^:]+:\s+/, "");
const input = modalities(model.architecture?.input_modalities, ["text"]);
const output = modalities(model.architecture?.output_modalities, ["text"]);
const prompt = price(model.pricing?.prompt);
const completion = price(model.pricing?.completion);
const reasoning = params.has("reasoning") || params.has("include_reasoning");
const context = model.top_provider?.context_length ?? model.context_length ?? 0;
const maxOutput = model.top_provider?.max_completion_tokens ?? existing?.limit?.output ?? context;
const family = inferFamily(model, name);
return {
name,
family: existing?.family === "o" && family !== "o"
? family
: (existing?.family ?? family),
release_date: dateFromTimestamp(model.created),
last_updated: dateFromTimestamp(model.created),
attachment: input.some((value) => value !== "text"),
reasoning,
temperature: params.has("temperature"),
tool_call: params.has("tools") || params.has("tool_choice"),
structured_output:
params.has("structured_outputs") || params.has("response_format"),
knowledge: model.knowledge_cutoff?.slice(0, 10) ?? existing?.knowledge,
open_weights: Boolean(model.hugging_face_id),
status: existing?.status,
interleaved: existing?.interleaved,
cost:
prompt !== undefined && completion !== undefined
? {
input: prompt,
output: completion,
reasoning: reasoning ? price(model.pricing?.internal_reasoning) : undefined,
cache_read: price(model.pricing?.input_cache_read),
cache_write: price(model.pricing?.input_cache_write),
tiers: existing?.cost?.tiers,
}
: existing?.cost,
limit: {
context,
input: existing?.limit?.input,
output: maxOutput,
},
modalities: { input, output },
};
}
function formatToml(model: ReturnType<typeof buildModel>) {
const lines: string[] = [];
lines.push(`name = ${quote(model.name)}`);
if (model.family) lines.push(`family = ${quote(model.family)}`);
lines.push(`release_date = ${quote(model.release_date)}`);
lines.push(`last_updated = ${quote(model.last_updated)}`);
lines.push(`attachment = ${model.attachment}`);
lines.push(`reasoning = ${model.reasoning}`);
lines.push(`temperature = ${model.temperature}`);
lines.push(`tool_call = ${model.tool_call}`);
lines.push(`structured_output = ${model.structured_output}`);
if (model.knowledge) lines.push(`knowledge = ${quote(model.knowledge)}`);
lines.push(`open_weights = ${model.open_weights}`);
if (model.status) lines.push(`status = ${quote(model.status)}`);
if (model.interleaved !== undefined) {
lines.push("");
if (model.interleaved === true) {
lines.push("interleaved = true");
} else {
lines.push("[interleaved]");
lines.push(`field = ${quote(model.interleaved.field)}`);
}
}
if (model.cost) {
lines.push("");
lines.push("[cost]");
if (model.cost.input !== undefined) lines.push(`input = ${model.cost.input}`);
if (model.cost.output !== undefined) lines.push(`output = ${model.cost.output}`);
if (model.cost.reasoning !== undefined) {
lines.push(`reasoning = ${model.cost.reasoning}`);
}
if (model.cost.cache_read !== undefined) {
lines.push(`cache_read = ${model.cost.cache_read}`);
}
if (model.cost.cache_write !== undefined) {
lines.push(`cache_write = ${model.cost.cache_write}`);
}
for (const tier of model.cost.tiers ?? []) {
lines.push("");
lines.push("[[cost.tiers]]");
lines.push(`tier = { size = ${formatInteger(tier.tier.size)} }`);
if (tier.input !== undefined) lines.push(`input = ${tier.input}`);
if (tier.output !== undefined) lines.push(`output = ${tier.output}`);
if (tier.cache_read !== undefined) lines.push(`cache_read = ${tier.cache_read}`);
if (tier.cache_write !== undefined) lines.push(`cache_write = ${tier.cache_write}`);
}
}
lines.push("");
lines.push("[limit]");
lines.push(`context = ${formatInteger(model.limit.context)}`);
if (model.limit.input !== undefined) {
lines.push(`input = ${formatInteger(model.limit.input)}`);
}
lines.push(`output = ${formatInteger(model.limit.output)}`);
lines.push("");
lines.push("[modalities]");
lines.push(`input = [${model.modalities.input.map(quote).join(", ")}]`);
lines.push(`output = [${model.modalities.output.map(quote).join(", ")}]`);
return `${lines.join("\n")}\n`;
}
async function main() {
const dryRun = process.argv.includes("--dry-run");
const modelsDir = path.join(
import.meta.dirname,
"..",
"..",
"..",
"providers",
"openrouter",
"models",
);
const headers = process.env.OPENROUTER_API_KEY
? { Authorization: `Bearer ${process.env.OPENROUTER_API_KEY}` }
: undefined;
const response = await fetch(API_ENDPOINT, { headers });
if (!response.ok) {
throw new Error(`OpenRouter request failed: ${response.status} ${response.statusText}`);
}
const parsed = OpenRouterResponse.safeParse(await response.json());
if (!parsed.success) throw parsed.error;
const existingFiles = new Set<string>();
for await (const file of new Bun.Glob("**/*.toml").scan({ cwd: modelsDir })) {
existingFiles.add(file);
}
let created = 0;
let updated = 0;
let removed = 0;
let unchanged = 0;
const apiFiles = new Set<string>();
for (const apiModel of parsed.data.data) {
const relativePath = `${apiModel.id}.toml`;
const filePath = path.join(modelsDir, relativePath);
const file = Bun.file(filePath);
const current = await file.exists() ? await file.text() : undefined;
const existing = current === undefined
? undefined
: ExistingModel.parse(Bun.TOML.parse(current));
const model = buildModel(apiModel, existing);
const next = formatToml(model);
const valid = AuthoredModel.safeParse({
id: relativePath.slice(0, -5),
...Bun.TOML.parse(next),
});
if (!valid.success) {
valid.error.cause = { relativePath };
throw valid.error;
}
apiFiles.add(relativePath);
if (current === undefined) {
created++;
if (dryRun) {
console.log(`Would create ${relativePath}`);
} else {
await mkdir(path.dirname(filePath), { recursive: true });
await Bun.write(filePath, next);
}
continue;
}
if (current !== next) {
updated++;
if (dryRun) {
console.log(`Would update ${relativePath}`);
} else {
await Bun.write(filePath, next);
}
} else {
unchanged++;
}
}
for (const relativePath of existingFiles) {
if (apiFiles.has(relativePath)) continue;
removed++;
if (dryRun) {
console.log(`Would remove ${relativePath}`);
} else {
await rm(path.join(modelsDir, relativePath));
}
}
console.log(
`${dryRun ? "Dry run: " : ""}${created} created, ${updated} updated, ${removed} removed, ${unchanged} unchanged`,
);
}
await main();
+5
View File
@@ -49,6 +49,7 @@ export const ModelFamilyValues = [
"qwen",
"qwen3.5",
"qwen3.6",
"qwen3.7-max",
"qwen-free",
// DeepSeek
@@ -82,6 +83,7 @@ export const ModelFamilyValues = [
// xAI Grok
"grok",
"grok-build",
"grok-vision",
"grok-beta",
@@ -115,6 +117,8 @@ export const ModelFamilyValues = [
"minimax",
"minimax-m2.5",
"minimax-m2.7",
"minimax-m3",
"minimax-m3-free",
"minimax-free",
// Hunyuan
@@ -214,6 +218,7 @@ export const ModelFamilyValues = [
"mimo-v2-omni",
"mimo-v2.5-pro",
"mimo-v2.5",
"mimo-v2.5-free",
"mimo-pro-free",
"mimo-omni-free",
"mimo-flash-free",
+13
View File
@@ -81,6 +81,19 @@ export async function generate(directory: string) {
result[providerID] = provider.data;
}
const nameToProviderID = new Map<string, string>();
for (const provider of Object.values(result)) {
const nameKey = provider.name.toLowerCase();
const existingID = nameToProviderID.get(nameKey);
if (existingID !== undefined) {
throw new Error(
`Duplicate provider name "${provider.name}" used by both "${existingID}" and "${provider.id}". Provider names must be unique.`,
{ cause: { providerIDs: [existingID, provider.id], name: provider.name } },
);
}
nameToProviderID.set(nameKey, provider.id);
}
for (const pendingModel of extendsModels) {
const [providerID, modelID] = pendingModel.model.extends.from.split("/");
const baseModel = result[providerID]?.models[modelID];
+54 -27
View File
@@ -21,31 +21,53 @@ const JsonValue: z.ZodType<JsonValue> = z.lazy(() =>
]),
);
const Cost = z
.object({
input: z.number().min(0, "Input price cannot be negative"),
output: z.number().min(0, "Output price cannot be negative"),
reasoning: z
.number()
.min(0, "Reasoning price cannot be negative")
.optional(),
cache_read: z
.number()
.min(0, "Cache read price cannot be negative")
.optional(),
cache_write: z
.number()
.min(0, "Cache write price cannot be negative")
.optional(),
input_audio: z
.number()
.min(0, "Audio input price cannot be negative")
.optional(),
output_audio: z
.number()
.min(0, "Audio output price cannot be negative")
.optional(),
});
const ReasoningOption = z.discriminatedUnion("type", [
z
.object({
type: z.literal("effort"),
values: z.array(z.enum(["none", "low", "medium", "high", "xhigh", "max"])),
})
.strict(),
z
.object({
type: z.literal("budget_tokens"),
min: z.number().min(0, "Minimum reasoning budget cannot be negative").optional(),
max: z.number().min(0, "Maximum reasoning budget cannot be negative").optional(),
})
.strict(),
]).refine(
(data) =>
data.type !== "budget_tokens" ||
data.min === undefined ||
data.max === undefined ||
data.min <= data.max,
{
message: "Minimum reasoning budget cannot exceed maximum reasoning budget",
path: ["min"],
},
);
const Cost = z.object({
input: z.number().min(0, "Input price cannot be negative"),
output: z.number().min(0, "Output price cannot be negative"),
reasoning: z.number().min(0, "Reasoning price cannot be negative").optional(),
cache_read: z
.number()
.min(0, "Cache read price cannot be negative")
.optional(),
cache_write: z
.number()
.min(0, "Cache write price cannot be negative")
.optional(),
input_audio: z
.number()
.min(0, "Audio input price cannot be negative")
.optional(),
output_audio: z
.number()
.min(0, "Audio output price cannot be negative")
.optional(),
});
const CostTier = Cost.extend({
tier: z
@@ -72,6 +94,7 @@ const ModelBase = z.object({
family: ModelFamily.optional(),
attachment: z.boolean(),
reasoning: z.boolean(),
reasoning_options: z.array(ReasoningOption).optional(),
tool_call: z.boolean(),
interleaved: z
.union([
@@ -140,7 +163,9 @@ function refineModel<T extends z.ZodTypeAny>(schema: T) {
return schema
.refine(
(data) => {
return !(data.reasoning === false && data.cost?.reasoning !== undefined);
return !(
data.reasoning === false && data.cost?.reasoning !== undefined
);
},
{
message: "Cannot set cost.reasoning when reasoning is false",
@@ -152,7 +177,9 @@ function refineModel<T extends z.ZodTypeAny>(schema: T) {
const tiers = data.cost?.tiers;
if (tiers === undefined) return true;
const sizes = tiers.map((tier: { tier: { size: number } }) => tier.tier.size);
const sizes = tiers.map(
(tier: { tier: { size: number } }) => tier.tier.size,
);
return new Set(sizes).size === sizes.length;
},
{
+484
View File
@@ -0,0 +1,484 @@
import path from "node:path";
import { mkdir, readdir, rm } from "node:fs/promises";
import { z } from "zod";
import { AuthoredModel, AuthoredModelShape } from "../schema.js";
import { cloudflareWorkersAi } from "./providers/cloudflare-workers-ai.js";
import { google } from "./providers/google.js";
import { openrouter } from "./providers/openrouter.js";
import { ovhcloud } from "./providers/ovhcloud.js";
import { xai } from "./providers/xai.js";
const ExtendsConfig = z
.object({
from: z.string(),
omit: z.array(z.string()).optional(),
})
.strict();
const ExistingExtendsConfig = z
.object({
from: z.string(),
omit: z.array(z.string()).optional(),
})
.passthrough();
const ExistingModel = AuthoredModelShape.partial()
.extend({
extends: ExistingExtendsConfig.optional(),
})
.strict();
const SyncedExtendsModel = AuthoredModelShape.partial()
.extend({
id: z.string(),
extends: ExtendsConfig,
})
.strict();
const SyncedAuthoredModel = z.union([AuthoredModel, SyncedExtendsModel]);
export type ExistingModel = z.infer<typeof ExistingModel>;
export type SyncedFullModel = Omit<z.infer<typeof AuthoredModelShape>, "id">;
export type SyncedExtendsModel = Omit<z.infer<typeof SyncedExtendsModel>, "id">;
export type SyncedModel = SyncedFullModel | SyncedExtendsModel;
export interface SyncProvider<SourceModel> {
id: string;
name: string;
modelsDir: string;
skipCreates?: boolean;
sourceID?(model: SourceModel): string;
skippedNotice?(ids: string[]): string[];
fetchModels(): Promise<unknown>;
parseModels(raw: unknown): SourceModel[];
translateModel(
model: SourceModel,
context: { existing(id: string): ExistingModel | undefined },
): { id: string; model: SyncedModel } | undefined;
}
export interface SyncResult {
id: string;
name: string;
status: "changed" | "unchanged";
created: number;
updated: number;
deleted: number;
unchanged: number;
notices: string[];
files: Array<{ status: "created" | "updated" | "deleted"; path: string }>;
}
export const providers: {
"cloudflare-workers-ai": SyncProvider<any>;
google: SyncProvider<any>;
openrouter: SyncProvider<any>;
ovhcloud: SyncProvider<any>;
xai: SyncProvider<any>;
} = {
"cloudflare-workers-ai": cloudflareWorkersAi,
google,
openrouter,
ovhcloud,
xai,
};
export const groups = {
aggregators: ["openrouter"],
cloudflare: ["cloudflare-workers-ai"],
direct: ["google", "ovhcloud", "xai"],
} as const;
type ProviderID = keyof typeof providers;
interface SyncOptions {
dryRun?: boolean;
newOnly?: boolean;
}
export async function syncProviderByID(id: ProviderID, options: SyncOptions = {}) {
return syncProvider(providers[id], options);
}
export async function syncProvider<SourceModel>(
provider: SyncProvider<SourceModel>,
options: SyncOptions = {},
): Promise<SyncResult> {
console.log(`\nSyncing ${provider.name}...`);
const existing = await readExisting(provider.modelsDir);
const sourceModels = provider.parseModels(await provider.fetchModels());
const desired = new Map<string, { model: z.infer<typeof SyncedAuthoredModel>; content: string }>();
const skippedRemote: string[] = [];
for (const sourceModel of sourceModels) {
const translated = provider.translateModel(sourceModel, {
existing(id) {
return existing.get(`${id}.toml`)?.toml;
},
});
if (translated === undefined) {
if (provider.skipCreates) skippedRemote.push(provider.sourceID?.(sourceModel) ?? "unknown");
continue;
}
const relativePath = `${translated.id}.toml`;
if (provider.skipCreates && !existing.has(relativePath)) {
skippedRemote.push(translated.id);
continue;
}
if (desired.has(relativePath)) {
throw new Error(`Duplicate synced model path: ${provider.id}/${relativePath}`);
}
const parsed = SyncedAuthoredModel.safeParse({
id: translated.id,
...translated.model,
});
if (!parsed.success) {
parsed.error.cause = { provider: provider.id, path: relativePath };
throw parsed.error;
}
desired.set(relativePath, {
model: parsed.data,
content: formatToml(parsed.data),
});
}
const files: SyncResult["files"] = [];
let unchanged = 0;
for (const [relativePath, file] of desired) {
const filePath = path.join(provider.modelsDir, relativePath);
const current = existing.get(relativePath);
if (current === undefined) {
files.push({ status: "created", path: filePath });
if (options.dryRun) {
console.log(`Would create ${relativePath}`);
} else {
await mkdir(path.dirname(filePath), { recursive: true });
await Bun.write(filePath, file.content);
}
continue;
}
if (!sameModel(relativePath, current.toml, file.model)) {
if (options.newOnly) {
unchanged++;
continue;
}
files.push({ status: "updated", path: filePath });
if (options.dryRun) {
console.log(`Would update ${relativePath}`);
} else {
if (current.symlink) await rm(filePath, { force: true });
await Bun.write(filePath, file.content);
}
} else {
unchanged++;
}
}
for (const relativePath of existing.keys()) {
if (desired.has(relativePath)) continue;
if (options.newOnly) {
console.log(`Skipping removal in new-only mode: ${relativePath}`);
unchanged++;
continue;
}
const filePath = path.join(provider.modelsDir, relativePath);
files.push({ status: "deleted", path: filePath });
if (options.dryRun) {
console.log(`Would remove ${relativePath}`);
} else {
await rm(filePath, { force: true });
}
}
const result = summarize(provider, files, unchanged, provider.skippedNotice?.(skippedRemote) ?? []);
console.log(
`${options.dryRun ? "Dry run: " : ""}${result.created} created, ${result.updated} updated, ${result.deleted} removed, ${result.unchanged} unchanged`,
);
return result;
}
export async function syncTargets(target: string, options: SyncOptions = {}) {
const ids = target in groups
? groups[target as keyof typeof groups]
: target in providers
? [target as ProviderID]
: undefined;
if (ids === undefined) {
throw new Error(`Unknown sync target: ${target}`);
}
const results: SyncResult[] = [];
for (const id of ids) {
results.push(await syncProviderByID(id as ProviderID, options));
}
return results;
}
export function syncProviderMatrix() {
return {
include: Object.values(providers).map((provider) => ({
provider: provider.id,
name: provider.name,
})),
};
}
async function readExisting(modelsDir: string) {
const existing = new Map<string, { text: string; toml: ExistingModel; symlink: boolean }>();
for (const { file, symlink } of await tomlFiles(modelsDir)) {
const text = await Bun.file(path.join(modelsDir, file)).text();
const parsed = ExistingModel.safeParse(Bun.TOML.parse(text));
if (!parsed.success) {
parsed.error.cause = { path: path.join(modelsDir, file) };
throw parsed.error;
}
existing.set(file, { text, toml: parsed.data, symlink });
}
return existing;
}
async function tomlFiles(root: string, dir = "") {
const result: Array<{ file: string; symlink: boolean }> = [];
for (const entry of await readdir(path.join(root, dir), { withFileTypes: true })) {
const file = path.join(dir, entry.name);
if (entry.isDirectory()) {
result.push(...await tomlFiles(root, file));
} else if (entry.name.endsWith(".toml") && (entry.isFile() || entry.isSymbolicLink())) {
result.push({ file, symlink: entry.isSymbolicLink() });
}
}
return result;
}
function summarize(
provider: { id: string; name: string },
files: SyncResult["files"],
unchanged: number,
notices: string[],
): SyncResult {
return {
id: provider.id,
name: provider.name,
status: files.length > 0 ? "changed" : "unchanged",
created: files.filter((file) => file.status === "created").length,
updated: files.filter((file) => file.status === "updated").length,
deleted: files.filter((file) => file.status === "deleted").length,
unchanged,
notices,
files,
};
}
function sameModel(
relativePath: string,
current: ExistingModel,
desired: z.infer<typeof SyncedAuthoredModel>,
) {
const parsed = SyncedAuthoredModel.safeParse({
id: relativePath.slice(0, -5),
...current,
});
return parsed.success && stable(parsed.data) === stable(desired);
}
function stable(value: unknown): string {
if (Array.isArray(value)) {
const items = value.map(stable);
const ordered = value.every((item) => item === null || typeof item !== "object")
? items.sort()
: items;
return `[${ordered.join(",")}]`;
}
if (value !== null && typeof value === "object") {
return `{${Object.entries(value)
.filter(([, item]) => item !== undefined)
.sort(([a], [b]) => a.localeCompare(b))
.map(([key, item]) => `${JSON.stringify(key)}:${stable(item)}`)
.join(",")}}`;
}
return JSON.stringify(value);
}
async function writeReport(target: string, results: SyncResult[]) {
await mkdir(".sync", { recursive: true });
const lines = [
`Updates model TOMLs for the \`${target}\` sync target.`,
"",
"| Provider | Status | Created | Updated | Deleted |",
"| --- | --- | ---: | ---: | ---: |",
];
for (const result of results) {
lines.push(
`| ${result.name} | ${result.status} | ${result.created} | ${result.updated} | ${result.deleted} |`,
);
}
for (const result of results.filter((item) => item.files.length > 0)) {
lines.push("", `<details><summary>${result.name} changed files</summary>`, "");
for (const file of result.files) {
lines.push(`- ${file.status}: \`${file.path}\``);
}
lines.push("", "</details>");
}
const noticeResults = results.filter((item) => item.notices.length > 0);
if (noticeResults.length > 0) {
lines.push("", "## Notices");
for (const result of noticeResults) {
lines.push("", `### ${result.name}`);
for (const notice of result.notices) {
lines.push(`- ${notice}`);
}
}
}
lines.push("", "This PR was created automatically by the daily model sync workflow.");
await Bun.write(".sync/model-sync-report.md", `${lines.join("\n")}\n`);
}
function quote(value: string) {
return `"${value.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
}
function formatInteger(n: number) {
return String(n).replace(/\B(?=(\d{3})+(?!\d))/g, "_");
}
function formatNumber(n: number) {
return Number.isInteger(n) ? formatInteger(n) : String(n);
}
function formatToml(model: z.infer<typeof SyncedAuthoredModel>) {
const lines: string[] = [];
const extendsLines: string[] = [];
if ("extends" in model) {
extendsLines.push("[extends]");
extendsLines.push(`from = ${quote(model.extends.from)}`);
if (model.extends.omit !== undefined) {
extendsLines.push(`omit = [${model.extends.omit.map(quote).join(", ")}]`);
}
}
if (model.name !== undefined) lines.push(`name = ${quote(model.name)}`);
if (model.family !== undefined) lines.push(`family = ${quote(model.family)}`);
if (model.release_date !== undefined) lines.push(`release_date = ${quote(model.release_date)}`);
if (model.last_updated !== undefined) lines.push(`last_updated = ${quote(model.last_updated)}`);
if (model.attachment !== undefined) lines.push(`attachment = ${model.attachment}`);
if (model.reasoning !== undefined) lines.push(`reasoning = ${model.reasoning}`);
if (model.temperature !== undefined) lines.push(`temperature = ${model.temperature}`);
if (model.tool_call !== undefined) lines.push(`tool_call = ${model.tool_call}`);
if (model.structured_output !== undefined) {
lines.push(`structured_output = ${model.structured_output}`);
}
if (model.knowledge !== undefined) lines.push(`knowledge = ${quote(model.knowledge)}`);
if (model.open_weights !== undefined) lines.push(`open_weights = ${model.open_weights}`);
if (model.status !== undefined) lines.push(`status = ${quote(model.status)}`);
if (extendsLines.length > 0) {
if (lines.length > 0) lines.push("");
lines.push(...extendsLines);
}
if (model.interleaved !== undefined) {
lines.push("");
if (model.interleaved === true) {
lines.push("interleaved = true");
} else {
lines.push("[interleaved]");
lines.push(`field = ${quote(model.interleaved.field)}`);
}
}
if (model.cost !== undefined) {
lines.push("", "[cost]");
lines.push(`input = ${formatNumber(model.cost.input)}`);
lines.push(`output = ${formatNumber(model.cost.output)}`);
if (model.cost.reasoning !== undefined) {
lines.push(`reasoning = ${formatNumber(model.cost.reasoning)}`);
}
if (model.cost.cache_read !== undefined) {
lines.push(`cache_read = ${formatNumber(model.cost.cache_read)}`);
}
if (model.cost.cache_write !== undefined) {
lines.push(`cache_write = ${formatNumber(model.cost.cache_write)}`);
}
if (model.cost.input_audio !== undefined) {
lines.push(`input_audio = ${formatNumber(model.cost.input_audio)}`);
}
if (model.cost.output_audio !== undefined) {
lines.push(`output_audio = ${formatNumber(model.cost.output_audio)}`);
}
for (const tier of model.cost.tiers ?? []) {
lines.push("", "[[cost.tiers]]");
lines.push(`tier = { size = ${formatInteger(tier.tier.size)} }`);
lines.push(`input = ${formatNumber(tier.input)}`);
lines.push(`output = ${formatNumber(tier.output)}`);
if (tier.reasoning !== undefined) lines.push(`reasoning = ${formatNumber(tier.reasoning)}`);
if (tier.cache_read !== undefined) lines.push(`cache_read = ${formatNumber(tier.cache_read)}`);
if (tier.cache_write !== undefined) lines.push(`cache_write = ${formatNumber(tier.cache_write)}`);
}
}
if (model.limit !== undefined) {
lines.push("", "[limit]");
if (model.limit.context !== undefined) lines.push(`context = ${formatInteger(model.limit.context)}`);
if (model.limit.input !== undefined) lines.push(`input = ${formatInteger(model.limit.input)}`);
if (model.limit.output !== undefined) lines.push(`output = ${formatInteger(model.limit.output)}`);
}
if (model.modalities !== undefined) {
lines.push("", "[modalities]");
if (model.modalities.input !== undefined) {
lines.push(`input = [${model.modalities.input.map(quote).join(", ")}]`);
}
if (model.modalities.output !== undefined) {
lines.push(`output = [${model.modalities.output.map(quote).join(", ")}]`);
}
}
return `${lines.join("\n")}\n`;
}
export async function main(args = process.argv.slice(2)) {
if (args.includes("--list-providers")) {
console.log(JSON.stringify(syncProviderMatrix()));
return;
}
const target = args.find((arg) => !arg.startsWith("-")) ?? "aggregators";
const results = await syncTargets(target, {
dryRun: args.includes("--dry-run"),
newOnly: args.includes("--new-only"),
});
await writeReport(target, results);
console.log("\nSync summary");
for (const result of results) {
console.log(
`${result.name}: ${result.created} created, ${result.updated} updated, ${result.deleted} deleted`,
);
}
}
if (import.meta.main) await main();
@@ -0,0 +1,176 @@
import { z } from "zod";
import type { ExistingModel, SyncProvider } from "../index.js";
import {
buildOpenRouterModel,
OpenRouterModel,
OpenRouterResponse,
} from "./openrouter.js";
const API_BASE = "https://api.cloudflare.com/client/v4/accounts";
const CloudflareOpenRouterResponse = z.object({
result: z.union([OpenRouterResponse, z.array(OpenRouterModel)]).optional(),
result_info: z.object({
page: z.number().optional(),
total_pages: z.number().optional(),
}).passthrough().optional(),
}).passthrough();
const CloudflareModel = z.object({
id: z.string(),
name: z.string(),
created: z.number(),
hugging_face_id: z.string().nullable().optional(),
context_length: z.number(),
max_output_length: z.number().nullable().optional(),
input_modalities: z.array(z.string()).optional(),
output_modalities: z.array(z.string()).optional(),
pricing: z.object({
prompt: z.string(),
completion: z.string(),
internal_reasoning: z.string().optional(),
input_cache_read: z.string().optional(),
input_cache_write: z.string().optional(),
}),
supported_features: z.array(z.string()).optional(),
supported_sampling_parameters: z.array(z.string()).optional(),
}).passthrough();
const CloudflareResponse = z.object({
data: z.array(CloudflareModel),
}).passthrough();
type CloudflareModel = z.infer<typeof CloudflareModel>;
export const cloudflareWorkersAi = {
id: "cloudflare-workers-ai",
name: "Cloudflare Workers AI",
modelsDir: "providers/cloudflare-workers-ai/models",
async fetchModels() {
const accountID = process.env.CLOUDFLARE_WORKERS_AI_SYNC_ACCOUNT_ID;
const token = process.env.CLOUDFLARE_WORKERS_AI_SYNC_API_TOKEN;
if (accountID === undefined || token === undefined) {
throw new Error(
"Cloudflare Workers AI sync requires CLOUDFLARE_WORKERS_AI_SYNC_ACCOUNT_ID and CLOUDFLARE_WORKERS_AI_SYNC_API_TOKEN",
);
}
const first = await fetchPage(accountID, token, 1);
const models = parseCloudflareModels(first);
const pageInfo = CloudflareOpenRouterResponse.safeParse(first).success
? CloudflareOpenRouterResponse.parse(first).result_info
: undefined;
for (let page = 2; page <= (pageInfo?.total_pages ?? 1); page++) {
models.push(...parseCloudflareModels(await fetchPage(accountID, token, page)));
}
return { data: models };
},
parseModels(raw) {
return parseCloudflareModels(raw);
},
translateModel(model, context) {
const normalized = normalizeModel(model);
const id = normalized.id.replace(/^workers-ai\//, "");
return {
id,
model: buildWorkersAiModel(normalized, context.existing(id)),
};
},
} satisfies SyncProvider<CloudflareModel>;
function buildWorkersAiModel(model: z.infer<typeof OpenRouterModel>, existing: ExistingModel | undefined) {
const synced = buildOpenRouterModel(model, existing);
return {
...synced,
name: existing?.name ?? synced.name,
release_date: existing?.release_date ?? synced.release_date,
last_updated: existing?.last_updated ?? synced.last_updated,
limit: {
...synced.limit,
output: existing?.limit?.output ?? synced.limit.output,
},
};
}
async function fetchPage(accountID: string, token: string, page: number) {
const url = new URL(`${API_BASE}/${accountID}/ai/models/search`);
url.searchParams.set("format", "openrouter");
url.searchParams.set("per_page", "1000");
url.searchParams.set("page", String(page));
const response = await fetch(url, {
headers: { Authorization: `Bearer ${token}` },
});
if (!response.ok) {
throw new Error(
`Cloudflare Workers AI models request failed: ${response.status} ${response.statusText}${await responseDetails(response)}`,
);
}
return response.json();
}
function parseCloudflareModels(raw: unknown) {
const cloudflare = CloudflareResponse.safeParse(raw);
if (cloudflare.success) return cloudflare.data.data;
const direct = OpenRouterResponse.safeParse(raw);
if (direct.success) return direct.data.data;
const wrapped = CloudflareOpenRouterResponse.parse(raw);
if (wrapped.result === undefined) {
throw new Error("Cloudflare Workers AI response did not include model data");
}
return Array.isArray(wrapped.result) ? wrapped.result : wrapped.result.data;
}
function normalizeModel(model: CloudflareModel) {
if ("architecture" in model && "top_provider" in model && "supported_parameters" in model) {
return OpenRouterModel.parse(model);
}
return OpenRouterModel.parse({
id: model.id.startsWith("@cf/") ? model.id : `@cf/${model.id.replace(/^@cf\//, "")}`,
name: model.name,
created: model.created,
hugging_face_id: model.hugging_face_id ?? null,
knowledge_cutoff: null,
context_length: model.context_length,
architecture: {
input_modalities: model.input_modalities ?? ["text"],
output_modalities: model.output_modalities ?? ["text"],
},
pricing: model.pricing,
top_provider: {
context_length: model.context_length,
max_completion_tokens: model.max_output_length ?? null,
},
supported_parameters: [
...model.supported_sampling_parameters ?? [],
...model.supported_features ?? [],
],
});
}
async function responseDetails(response: Response) {
const text = await response.text();
if (text.length === 0) return "";
try {
const body = z.object({
errors: z.array(z.object({
code: z.union([z.string(), z.number()]).optional(),
message: z.string().optional(),
}).passthrough()).optional(),
}).passthrough().parse(JSON.parse(text));
const details = body.errors
?.map((error) => [error.code, error.message].filter(Boolean).join(": "))
.filter((message) => message.length > 0)
.join("; ");
return details === undefined || details.length === 0 ? "" : ` (${details})`;
} catch {
return "";
}
}
+138
View File
@@ -0,0 +1,138 @@
import { z } from "zod";
import type { ExistingModel, SyncProvider, SyncedModel } from "../index.js";
const API_ENDPOINT = "https://generativelanguage.googleapis.com/v1beta/models";
const GoogleModel = z.object({
name: z.string(),
baseModelId: z.string().optional(),
version: z.string().optional(),
displayName: z.string().optional(),
description: z.string().optional(),
inputTokenLimit: z.number().int().nonnegative(),
outputTokenLimit: z.number().int().nonnegative(),
supportedGenerationMethods: z.array(z.string()).optional(),
temperature: z.number().optional(),
topP: z.number().optional(),
topK: z.number().optional(),
maxTemperature: z.number().optional(),
thinking: z.boolean().optional(),
}).passthrough();
const GoogleResponse = z.object({
models: z.array(GoogleModel).optional(),
nextPageToken: z.string().optional(),
}).passthrough();
type GoogleModel = z.infer<typeof GoogleModel>;
export const google = {
id: "google",
name: "Google",
modelsDir: "providers/google/models",
skipCreates: true,
sourceID(model) {
return model.name.replace(/^models\//, "");
},
skippedNotice(ids) {
if (ids.length === 0) return [];
return [
`${ids.length} Google models returned by the API were not created because the Models API does not provide authoritative modalities, pricing, knowledge cutoff, release date, tool calling, or structured output metadata. Existing models are still updated from API-authoritative fields.`,
`Skipped remote IDs: ${ids.map((id) => `\`${id}\``).join(", ")}`,
];
},
async fetchModels() {
const key = process.env.GOOGLE_API_KEY
?? process.env.GEMINI_API_KEY
?? process.env.GOOGLE_GENERATIVE_AI_API_KEY;
if (key === undefined) {
throw new Error("Google sync requires GOOGLE_API_KEY, GEMINI_API_KEY, or GOOGLE_GENERATIVE_AI_API_KEY");
}
const models: GoogleModel[] = [];
let pageToken: string | undefined;
do {
const url = new URL(API_ENDPOINT);
url.searchParams.set("key", key);
url.searchParams.set("pageSize", "1000");
if (pageToken !== undefined) url.searchParams.set("pageToken", pageToken);
const response = await fetch(url);
if (!response.ok) {
throw new Error(`Google models request failed: ${response.status} ${response.statusText}`);
}
const page = GoogleResponse.parse(await response.json());
models.push(...page.models ?? []);
pageToken = page.nextPageToken;
} while (pageToken !== undefined);
return { models };
},
parseModels(raw) {
return GoogleResponse.parse(raw).models ?? [];
},
translateModel(model, context) {
const id = model.name.replace(/^models\//, "");
const existing = context.existing(id);
if (existing === undefined) return undefined;
return {
id,
model: buildModel(model, existing),
};
},
} satisfies SyncProvider<GoogleModel>;
function buildModel(model: GoogleModel, existing: ExistingModel): SyncedModel {
const name = existing.name;
const releaseDate = existing.release_date;
const lastUpdated = existing.last_updated;
const attachment = existing.attachment;
const reasoning = existing.reasoning;
const toolCall = existing.tool_call;
const openWeights = existing.open_weights;
const limit = existing.limit;
const modalities = existing.modalities;
if (
name === undefined
|| releaseDate === undefined
|| lastUpdated === undefined
|| attachment === undefined
|| reasoning === undefined
|| toolCall === undefined
|| openWeights === undefined
|| limit === undefined
|| modalities === undefined
) {
throw new Error(`Google model ${model.name} has incomplete local TOML metadata required for sync`);
}
return {
name: model.displayName ?? name,
family: existing.family,
release_date: releaseDate,
last_updated: lastUpdated,
attachment,
reasoning: model.thinking ?? reasoning,
temperature: model.temperature !== undefined || model.maxTemperature !== undefined
? true
: existing.temperature,
tool_call: toolCall,
structured_output: existing.structured_output,
knowledge: existing.knowledge,
open_weights: openWeights,
status: existing.status,
interleaved: existing.interleaved,
cost: existing.cost,
limit: {
input: limit.input,
context: model.inputTokenLimit,
output: model.outputTokenLimit,
},
modalities,
};
}
@@ -0,0 +1,334 @@
import { z } from "zod";
import { readFileSync, readdirSync } from "node:fs";
import path from "node:path";
import { ModelFamilyValues } from "../../family.js";
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
const API_ENDPOINT = "https://openrouter.ai/api/v1/models";
const PROVIDERS_DIR = path.join(import.meta.dirname, "..", "..", "..", "..", "..", "providers");
const modelFilesByProvider = new Map<string, Set<string>>();
const canonicalTomlByModel = new Map<string, Record<string, unknown>>();
const CANONICAL_PROVIDER_PREFIXES = {
anthropic: "anthropic",
cohere: "cohere",
deepseek: "deepseek",
google: "google",
meta: "llama",
"meta-llama": "llama",
minimax: "minimax",
mistralai: "mistral",
moonshotai: "moonshotai",
openai: "openai",
"x-ai": "xai",
xai: "xai",
xiaomi: "xiaomi",
zai: "zai",
"z-ai": "zai",
} as const;
export const OpenRouterModel = z.object({
id: z.string(),
name: z.string(),
created: z.number(),
hugging_face_id: z.string().nullable(),
knowledge_cutoff: z.string().nullable(),
context_length: z.number(),
architecture: z.object({
input_modalities: z.array(z.string()),
output_modalities: z.array(z.string()),
}),
pricing: z.object({
prompt: z.string(),
completion: z.string(),
internal_reasoning: z.string().optional(),
input_cache_read: z.string().optional(),
input_cache_write: z.string().optional(),
}),
top_provider: z.object({
context_length: z.number().nullable(),
max_completion_tokens: z.number().nullable(),
}),
supported_parameters: z.array(z.string()),
});
export const OpenRouterResponse = z.object({
data: z.array(OpenRouterModel),
}).passthrough();
export type OpenRouterModel = z.infer<typeof OpenRouterModel>;
export const openrouter = {
id: "openrouter",
name: "OpenRouter",
modelsDir: "providers/openrouter/models",
async fetchModels() {
const headers = process.env.OPENROUTER_API_KEY
? { Authorization: `Bearer ${process.env.OPENROUTER_API_KEY}` }
: undefined;
const response = await fetch(API_ENDPOINT, { headers });
if (!response.ok) {
throw new Error(`OpenRouter request failed: ${response.status} ${response.statusText}`);
}
return response.json();
},
parseModels(raw) {
return OpenRouterResponse.parse(raw).data;
},
translateModel(model, context) {
return {
id: model.id,
model: buildOpenRouterModel(model, context.existing(model.id)),
};
},
} satisfies SyncProvider<OpenRouterModel>;
function dateFromTimestamp(timestamp: number) {
return new Date(timestamp * 1000).toISOString().slice(0, 10);
}
function price(value: string | undefined) {
if (value === undefined) return undefined;
const number = Number(value);
return Number.isFinite(number) && number >= 0
? Math.round(number * 1_000_000_000_000) / 1_000_000
: undefined;
}
type Modality = "text" | "audio" | "image" | "video" | "pdf";
function modalities(values: string[], fallback: Modality[]): Modality[] {
const allowed = new Set<Modality>(["text", "audio", "image", "video", "pdf"]);
const result = values
.map((value) => value.toLowerCase())
.map((value) => value === "file" ? "pdf" : value)
.filter((value): value is Modality => allowed.has(value as Modality));
return [...new Set(result.length > 0 ? result : fallback)];
}
function inferFamily(model: OpenRouterModel, name: string) {
const target = `${model.id} ${name}`.toLowerCase();
return [...ModelFamilyValues]
.sort((a, b) => b.length - a.length)
.find((family) => {
const value = family.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
if (family === "o") {
return new RegExp(`(^|[^a-z0-9])${value}(?=\\d|$|[^a-z0-9])`).test(target);
}
return new RegExp(`(^|[^a-z0-9])${value}(?=$|[^a-z0-9])`).test(target);
});
}
export function buildOpenRouterModel(model: OpenRouterModel, existing: ExistingModel | undefined): SyncedModel {
const params = new Set(model.supported_parameters);
const name = model.name.replace(/^[^:]+:\s+/, "");
const input = modalities(model.architecture.input_modalities, ["text"]);
const output = modalities(model.architecture.output_modalities, ["text"]);
const prompt = price(model.pricing.prompt);
const completion = price(model.pricing.completion);
const reasoning = params.has("reasoning") || params.has("include_reasoning");
const context = model.top_provider.context_length ?? model.context_length;
const family = inferFamily(model, name);
const releaseDate = dateFromTimestamp(model.created);
const familyValue = existing?.family === "o" && family !== "o"
? family
: (existing?.family ?? family);
const attachment = input.some((value) => value !== "text");
const toolCall = params.has("tools") || params.has("tool_choice");
const structuredOutput = params.has("structured_outputs");
const knowledge = model.knowledge_cutoff?.slice(0, 10) ?? existing?.knowledge;
const openWeights = Boolean(model.hugging_face_id);
const cost = prompt !== undefined && completion !== undefined
? {
input: prompt,
output: completion,
reasoning: reasoning ? price(model.pricing.internal_reasoning) : undefined,
cache_read: price(model.pricing.input_cache_read),
cache_write: price(model.pricing.input_cache_write),
tiers: existing?.cost?.tiers,
}
: existing?.cost;
const limit = {
context,
input: existing?.limit?.input,
output: model.top_provider.max_completion_tokens ?? existing?.limit?.output ?? context,
};
const canonical = resolveCanonicalModel(model.id);
if (canonical !== undefined) {
return {
extends: {
from: canonical.from,
omit: canonicalOmit(canonical.provider, canonical.modelID, cost, limit),
},
...canonicalRuntimeOverrides(canonical.provider, canonical.modelID, {
name: model.id.endsWith(":free") ? name : undefined,
attachment,
reasoning,
}),
temperature: params.has("temperature"),
tool_call: toolCall,
structured_output: structuredOutput,
status: existing?.status,
interleaved: existing?.interleaved,
cost,
limit,
modalities: { input, output },
};
}
return {
name,
family: familyValue,
release_date: releaseDate,
last_updated: releaseDate,
attachment,
reasoning,
temperature: params.has("temperature"),
tool_call: toolCall,
structured_output: structuredOutput,
knowledge,
open_weights: openWeights,
status: existing?.status,
interleaved: existing?.interleaved,
cost,
limit,
modalities: { input, output },
} satisfies SyncedFullModel;
}
function resolveCanonicalModel(openrouterID: string) {
const [prefix, ...modelParts] = openrouterID.split("/");
if (prefix === undefined || modelParts.length === 0) return undefined;
if (openrouterID.startsWith("~/") || prefix.startsWith("~")) return undefined;
const provider = CANONICAL_PROVIDER_PREFIXES[prefix as keyof typeof CANONICAL_PROVIDER_PREFIXES];
if (provider === undefined) return undefined;
const modelID = modelParts.join("/").replace(/:free$/, "");
const candidates = canonicalCandidates(provider, modelID);
const match = candidates.find((candidate) => {
return canonicalModelExists(provider, candidate);
});
return match === undefined
? undefined
: {
from: `${provider}/${match}`,
provider,
modelID: match,
};
}
function canonicalModelExists(provider: string, modelID: string) {
let files = modelFilesByProvider.get(provider);
if (files === undefined) {
try {
files = new Set(readdirSync(path.join(PROVIDERS_DIR, provider, "models")));
} catch {
files = new Set();
}
modelFilesByProvider.set(provider, files);
}
return files.has(`${modelID}.toml`);
}
function canonicalOmit(
provider: string,
modelID: string,
cost: SyncedFullModel["cost"],
limit: SyncedFullModel["limit"],
) {
const toml = canonicalToml(provider, modelID);
const omit = ["provider", "experimental"].filter((key) => toml[key] !== undefined);
const baseCost = toml.cost;
if (baseCost !== undefined && baseCost !== null && typeof baseCost === "object" && !Array.isArray(baseCost)) {
if (cost === undefined) {
omit.push("cost");
} else {
for (const key of ["reasoning", "cache_read", "cache_write", "input_audio", "output_audio", "tiers"] as const) {
if ((baseCost as Record<string, unknown>)[key] !== undefined && cost[key] === undefined) {
omit.push(`cost.${key}`);
}
}
if (hasLegacyContextOver200k(baseCost) && cost.tiers === undefined) {
omit.push("cost.context_over_200k");
}
}
}
const baseLimit = toml.limit;
if (
baseLimit !== undefined &&
baseLimit !== null &&
typeof baseLimit === "object" &&
!Array.isArray(baseLimit) &&
(baseLimit as Record<string, unknown>).input !== undefined &&
limit.input === undefined
) {
omit.push("limit.input");
}
return omit.length > 0 ? omit : undefined;
}
function hasLegacyContextOver200k(cost: object) {
const tiers = (cost as { tiers?: unknown }).tiers;
if (!Array.isArray(tiers) || tiers.length !== 1) return false;
const tier = tiers[0];
if (tier === null || typeof tier !== "object" || Array.isArray(tier)) return false;
const tierConfig = (tier as { tier?: unknown }).tier;
if (tierConfig === null || typeof tierConfig !== "object" || Array.isArray(tierConfig)) return false;
const size = (tierConfig as { size?: unknown }).size;
return typeof size === "number" && size >= 200_000;
}
function canonicalRuntimeOverrides(
provider: string,
modelID: string,
values: Pick<SyncedFullModel, "name" | "attachment" | "reasoning">,
) {
const toml = canonicalToml(provider, modelID);
return Object.fromEntries(
Object.entries(values).filter(([key, value]) => value !== undefined && toml[key] !== value),
);
}
function canonicalToml(provider: string, modelID: string) {
const key = `${provider}/${modelID}`;
let toml = canonicalTomlByModel.get(key);
if (toml === undefined) {
const filePath = path.join(PROVIDERS_DIR, provider, "models", `${modelID}.toml`);
toml = Bun.TOML.parse(readFileSync(filePath, "utf8")) as Record<string, unknown>;
canonicalTomlByModel.set(key, toml);
}
return toml;
}
function canonicalCandidates(provider: string, modelID: string) {
const candidates = [modelID];
if (provider === "anthropic") {
candidates.push(modelID.replace(/(claude-(?:opus|sonnet|haiku)-\d+)\.(\d+)/, "$1-$2"));
candidates.push(modelID.replace(/^claude-3\.5-/, "claude-3-5-"));
}
if (provider === "llama") {
candidates.push(modelID.replace(/^llama-(\d+)-(\d+)/, "llama-$1.$2"));
candidates.push(modelID.replace(/^llama-(4)-(maverick|scout)$/, "llama-$1-$2-17b"));
}
if (provider === "mistral") {
candidates.push(modelID.replace(/-latest$/, ""));
}
if (provider === "minimax") {
candidates.push(modelID.replace(/^minimax-m/, "MiniMax-M"));
}
return [...new Set(candidates)];
}
@@ -0,0 +1,137 @@
import { z } from "zod";
import type { ExistingModel, SyncedFullModel, SyncProvider, SyncedModel } from "../index.js";
const API_ENDPOINT = "https://catalog.endpoints.ai.ovh.net/rest/v2/openrouter";
export const OvhcloudModel = z
.object({
id: z.string(),
name: z.string(),
created: z.number(),
hugging_face_id: z.string().nullable().optional(),
context_length: z.number(),
max_output_length: z.number().optional(),
input_modalities: z.array(z.string()).optional(),
output_modalities: z.array(z.string()).optional(),
pricing: z
.object({
prompt: z.string().optional(),
completion: z.string().optional(),
input_cache_reads: z.string().optional(),
input_cache_writes: z.string().optional(),
})
.passthrough()
.optional(),
supported_features: z.array(z.string()).optional(),
supported_sampling_parameters: z.array(z.string()).optional(),
})
.passthrough();
export const OvhcloudResponse = z
.object({
data: z.array(OvhcloudModel),
})
.passthrough();
export type OvhcloudModel = z.infer<typeof OvhcloudModel>;
export const ovhcloud = {
id: "ovhcloud",
name: "OVHcloud AI Endpoints",
modelsDir: "providers/ovhcloud/models",
async fetchModels() {
const response = await fetch(API_ENDPOINT);
if (!response.ok) {
throw new Error(`OVHcloud request failed: ${response.status} ${response.statusText}`);
}
return response.json();
},
parseModels(raw) {
return OvhcloudResponse.parse(raw).data;
},
translateModel(model, context) {
return {
id: model.id.toLowerCase(),
model: buildOvhcloudModel(model, context.existing(model.id.toLowerCase())),
};
},
} satisfies SyncProvider<OvhcloudModel>;
function dateFromTimestamp(timestamp: number) {
return new Date(timestamp * 1000).toISOString().slice(0, 10);
}
function price(value: string | undefined) {
if (value === undefined) return undefined;
const number = Number(value);
return Number.isFinite(number) && number >= 0
? Math.round(number * 1_000_000_000_000) / 1_000_000
: undefined;
}
type Modality = "text" | "audio" | "image" | "video" | "pdf";
function modalities(values: string[], fallback: Modality[]): Modality[] {
const allowed = new Set<Modality>(["text", "audio", "image", "video", "pdf"]);
const result = values
.map((value) => value.toLowerCase())
.map((value) => (value === "file" ? "pdf" : value))
.filter((value): value is Modality => allowed.has(value as Modality));
return [...new Set(result.length > 0 ? result : fallback)];
}
export function buildOvhcloudModel(
model: OvhcloudModel,
existing: ExistingModel | undefined,
): SyncedModel {
const features = new Set(model.supported_features ?? []);
const samplingParameters = new Set(model.supported_sampling_parameters ?? []);
const input = modalities(model.input_modalities ?? ["text"], ["text"]);
const output = modalities(model.output_modalities ?? ["text"], ["text"]);
const attachment = input.some((value) => value !== "text");
const reasoning = features.has("reasoning");
const toolCall = features.has("tools");
const structuredOutput = features.has("structured_outputs");
const temperature = samplingParameters.has("temperature");
const openWeights = Boolean(model.hugging_face_id);
const releaseDate = existing?.release_date ?? dateFromTimestamp(model.created);
const lastUpdated = existing?.last_updated ?? releaseDate;
const inputCost = price(model.pricing?.prompt);
const outputCost = price(model.pricing?.completion);
const cacheRead = price(model.pricing?.input_cache_reads);
const cacheWrite = price(model.pricing?.input_cache_writes);
const cost =
(inputCost ?? 0) > 0 || (outputCost ?? 0) > 0
? {
input: inputCost ?? 0,
output: outputCost ?? 0,
cache_read: cacheRead !== undefined && cacheRead > 0 ? cacheRead : undefined,
cache_write: cacheWrite !== undefined && cacheWrite > 0 ? cacheWrite : undefined,
}
: undefined;
return {
name: model.name,
family: existing?.family,
release_date: releaseDate,
last_updated: lastUpdated,
attachment,
reasoning,
temperature: temperature || undefined,
tool_call: toolCall,
structured_output: structuredOutput || undefined,
knowledge: existing?.knowledge,
open_weights: openWeights,
status: existing?.status,
interleaved: existing?.interleaved,
cost,
limit: {
context: model.context_length,
input: existing?.limit?.input,
output: model.max_output_length ?? existing?.limit?.output ?? model.context_length,
},
modalities: { input, output },
} satisfies SyncedFullModel;
}
+211
View File
@@ -0,0 +1,211 @@
import { z } from "zod";
import type { ExistingModel, SyncProvider, SyncedModel } from "../index.js";
const API_BASE = "https://api.x.ai/v1";
const XAIModel = z.object({
id: z.string(),
canonical_id: z.string().optional(),
created: z.number().int().nonnegative(),
aliases: z.array(z.string()).optional(),
input_modalities: z.array(z.string()).optional(),
output_modalities: z.array(z.string()).optional(),
prompt_text_token_price: z.number().int().nonnegative().optional(),
cached_prompt_text_token_price: z.number().int().nonnegative().optional(),
completion_text_token_price: z.number().int().nonnegative().optional(),
max_prompt_length: z.number().int().nonnegative().optional(),
}).passthrough();
const XAIModelList = z.object({
models: z.array(XAIModel),
}).passthrough();
const XAIResponse = z.object({
models: z.array(XAIModel),
});
const XAIAPIKey = z.object({
acls: z.array(z.string()),
}).passthrough();
type XAIModel = z.infer<typeof XAIModel>;
export const xai = {
id: "xai",
name: "xAI",
modelsDir: "providers/xai/models",
skipCreates: true,
sourceID(model) {
return model.id;
},
skippedNotice(ids) {
if (ids.length === 0) return [];
return [
`${ids.length} xAI models returned by the API were not created because the Models API does not provide enough authoritative metadata for the catalog, especially output token limits and some feature/capability flags. Existing models are still updated from API-authoritative fields.`,
`Skipped remote IDs: ${ids.map((id) => `\`${id}\``).join(", ")}`,
];
},
async fetchModels() {
const key = process.env.XAI_API_KEY;
if (key === undefined) throw new Error("xAI sync requires XAI_API_KEY");
await assertFullModelAccess(key);
const models = await Promise.all([
fetchTypedModels(key, "language-models"),
fetchTypedModels(key, "image-generation-models"),
fetchTypedModels(key, "video-generation-models"),
]);
return { models: models.flat() };
},
parseModels(raw) {
const models = XAIResponse.parse(raw).models;
const seen = new Set<string>();
const expanded: XAIModel[] = [];
for (const model of models) {
if (!seen.has(model.id)) {
seen.add(model.id);
expanded.push(model);
}
}
for (const model of models) {
for (const alias of model.aliases ?? []) {
if (seen.has(alias)) continue;
seen.add(alias);
expanded.push({ ...model, id: alias, canonical_id: model.id });
}
}
return expanded;
},
translateModel(model, context) {
const existing = context.existing(model.id);
if (existing === undefined) return undefined;
return {
id: model.id,
model: buildModel(model, existing),
};
},
} satisfies SyncProvider<XAIModel>;
async function assertFullModelAccess(key: string) {
const response = await fetch(`${API_BASE}/api-key`, {
headers: { Authorization: `Bearer ${key}` },
});
if (!response.ok) {
throw new Error(`xAI API key metadata request failed: ${response.status} ${response.statusText}`);
}
const apiKey = XAIAPIKey.parse(await response.json());
if (!apiKey.acls.includes("api-key:model:*")) {
throw new Error("xAI sync requires XAI_API_KEY to include api-key:model:* so the model list is not ACL-filtered");
}
}
async function fetchTypedModels(key: string, endpoint: string) {
const response = await fetch(`${API_BASE}/${endpoint}`, {
headers: { Authorization: `Bearer ${key}` },
});
if (!response.ok) {
throw new Error(`xAI ${endpoint} request failed: ${response.status} ${response.statusText}`);
}
return XAIModelList.parse(await response.json()).models;
}
function dateFromTimestamp(timestamp: number) {
return new Date(timestamp * 1000).toISOString().slice(0, 10);
}
type Modality = "text" | "audio" | "image" | "video" | "pdf";
function modalities(values: string[] | undefined, fallback: Modality[]) {
const allowed = new Set<Modality>(["text", "audio", "image", "video", "pdf"]);
const result = (values ?? [])
.map((value) => value.toLowerCase())
.filter((value): value is Modality => allowed.has(value as Modality));
if (result.includes("image")) result.push("pdf");
return [...new Set(result.length > 0 ? result : fallback)];
}
function tokenPrice(value: number | undefined) {
if (value === undefined) return undefined;
return value / 10_000;
}
function preservedCostTiers(existing: ExistingModel) {
// The xAI models API exposes base pricing only; long-context tiers are curated from xAI docs/console.
return existing.cost?.tiers;
}
function cost(model: XAIModel, existing: ExistingModel) {
const input = tokenPrice(model.prompt_text_token_price);
const output = tokenPrice(model.completion_text_token_price);
if (input === undefined || output === undefined) return existing.cost;
return {
input,
output,
reasoning: existing.cost?.reasoning,
cache_read: tokenPrice(model.cached_prompt_text_token_price),
cache_write: existing.cost?.cache_write,
input_audio: existing.cost?.input_audio,
output_audio: existing.cost?.output_audio,
tiers: preservedCostTiers(existing),
};
}
function buildModel(model: XAIModel, existing: ExistingModel): SyncedModel {
const name = existing.name;
const attachment = existing.attachment;
const reasoning = existing.reasoning;
const toolCall = existing.tool_call;
const openWeights = existing.open_weights;
const limit = existing.limit;
const releaseDate = existing.release_date;
const lastUpdated = existing.last_updated;
if (
name === undefined
|| attachment === undefined
|| reasoning === undefined
|| toolCall === undefined
|| openWeights === undefined
|| limit === undefined
|| (model.canonical_id !== undefined && releaseDate === undefined)
|| (model.canonical_id !== undefined && lastUpdated === undefined)
) {
throw new Error(`xAI model ${model.id} has incomplete local TOML metadata required for sync`);
}
const input = modalities(model.input_modalities, existing.modalities?.input ?? ["text"]);
const output = modalities(model.output_modalities, existing.modalities?.output ?? ["text"]);
const created = dateFromTimestamp(model.created);
return {
name,
family: existing.family,
release_date: model.canonical_id === undefined ? created : releaseDate!,
last_updated: model.canonical_id === undefined ? created : lastUpdated!,
attachment: input.some((value) => value !== "text"),
reasoning,
temperature: existing.temperature,
tool_call: toolCall,
structured_output: existing.structured_output,
knowledge: existing.knowledge,
open_weights: openWeights,
status: existing.status,
interleaved: existing.interleaved,
cost: cost(model, existing),
limit: {
input: limit.input,
context: model.max_prompt_length ?? limit.context,
output: limit.output,
},
modalities: { input, output },
};
}
@@ -0,0 +1,2 @@
[extends]
from = "alibaba/qwen3.6-flash"
@@ -0,0 +1,2 @@
[extends]
from = "alibaba/qwen3.7-max"
@@ -0,0 +1,2 @@
[extends]
from = "alibaba/qwen3.6-flash"
@@ -0,0 +1,2 @@
[extends]
from = "alibaba/qwen3.7-max"
@@ -0,0 +1,2 @@
[extends]
from = "alibaba/qwen3.6-flash"
@@ -0,0 +1,2 @@
[extends]
from = "alibaba/qwen3.7-max"
@@ -0,0 +1,23 @@
name = "Qwen3.6 Flash"
family = "qwen3.6"
release_date = "2026-04-27"
last_updated = "2026-04-27"
attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = false
[cost]
input = 0.1875
output = 1.125
cache_write = 0.234375
[limit]
context = 1_000_000
output = 65_536
[modalities]
input = ["text", "image", "video"]
output = ["text"]
+23
View File
@@ -0,0 +1,23 @@
name = "Qwen3.7 Max"
family = "qwen"
release_date = "2026-05-21"
last_updated = "2026-05-21"
attachment = false
reasoning = true
temperature = true
tool_call = true
open_weights = false
[cost]
input = 2.50
output = 7.50
cache_read = 0.50
cache_write = 3.125
[limit]
context = 1_000_000
output = 65_536
[modalities]
input = ["text"]
output = ["text"]
@@ -0,0 +1,3 @@
[extends]
from = "anthropic/claude-opus-4-8"
omit = ["experimental.modes.fast"]
@@ -0,0 +1,5 @@
name = "Claude Opus 4.8 (AU)"
[extends]
from = "anthropic/claude-opus-4-8"
omit = ["experimental.modes.fast"]
@@ -4,3 +4,9 @@ structured_output = true
[extends]
from = "anthropic/claude-opus-4-6"
omit = ["experimental.modes.fast"]
[cost]
input = 5.50
output = 27.50
cache_read = 0.55
cache_write = 6.875
@@ -10,10 +10,10 @@ knowledge = "2026-01-31"
open_weights = false
[cost]
input = 5.00
output = 25.00
cache_read = 0.50
cache_write = 6.25
input = 5.50
output = 27.50
cache_read = 0.55
cache_write = 6.875
[limit]
context = 1_000_000
@@ -0,0 +1,11 @@
name = "Claude Opus 4.8 (EU)"
[extends]
from = "anthropic/claude-opus-4-8"
omit = ["experimental.modes.fast"]
[cost]
input = 5.50
output = 27.50
cache_read = 0.55
cache_write = 6.875
@@ -11,10 +11,10 @@ knowledge = "2025-07-31"
open_weights = false
[cost]
input = 3.00
output = 15.00
cache_read = 0.30
cache_write = 3.75
input = 3.30
output = 16.50
cache_read = 0.33
cache_write = 4.125
[limit]
context = 200_000
@@ -3,3 +3,9 @@ structured_output = true
[extends]
from = "anthropic/claude-sonnet-4-6"
[cost]
input = 3.30
output = 16.50
cache_read = 0.33
cache_write = 4.125
@@ -0,0 +1,5 @@
name = "Claude Opus 4.8 (Global)"
[extends]
from = "anthropic/claude-opus-4-8"
omit = ["experimental.modes.fast"]
@@ -0,0 +1,5 @@
name = "Claude Opus 4.8 (JP)"
[extends]
from = "anthropic/claude-opus-4-8"
omit = ["experimental.modes.fast"]
@@ -1,3 +1,4 @@
# See https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-moonshot-ai-kimi-k2-thinking.html
name = "Kimi K2 Thinking"
release_date = "2025-12-02"
family = "kimi-thinking"
@@ -15,8 +16,8 @@ input = 0.6
output = 2.5
[limit]
context = 256_000
output = 256_000
context = 262_143
output = 16_000
[modalities]
input = ["text"]
@@ -1,3 +1,4 @@
# See https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-moonshot-ai-kimi-k2-5.html
name = "Kimi K2.5"
family = "kimi"
release_date = "2026-02-06"
@@ -15,8 +16,8 @@ input = 0.6
output = 3
[limit]
context = 256_000
output = 256_000
context = 262_143
output = 16_000
[modalities]
input = ["text", "image"]
@@ -0,0 +1,5 @@
name = "Claude Opus 4.8 (US)"
[extends]
from = "anthropic/claude-opus-4-8"
omit = ["experimental.modes.fast"]
@@ -9,6 +9,10 @@ tool_call = true
knowledge = "2024-10-31"
open_weights = false
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 3.00
output = 15.00
@@ -9,6 +9,10 @@ tool_call = true
knowledge = "2025-02-28"
open_weights = false
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 1.00
output = 5.00
@@ -9,6 +9,10 @@ tool_call = true
knowledge = "2025-02-28"
open_weights = false
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 1.00
output = 5.00
@@ -9,6 +9,10 @@ tool_call = true
knowledge = "2025-03-31"
open_weights = false
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 15.00
output = 75.00
@@ -9,6 +9,10 @@ tool_call = true
knowledge = "2025-03-31"
open_weights = false
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 15.00
output = 75.00
@@ -9,6 +9,10 @@ tool_call = true
knowledge = "2025-03-31"
open_weights = false
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 15.00
output = 75.00
@@ -9,6 +9,10 @@ tool_call = true
knowledge = "2025-03-31"
open_weights = false
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 15.00
output = 75.00
@@ -9,6 +9,14 @@ tool_call = true
knowledge = "2025-03-31"
open_weights = false
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "high"]
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 5.00
output = 25.00
@@ -9,6 +9,14 @@ tool_call = true
knowledge = "2025-03-31"
open_weights = false
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "high"]
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 5.00
output = 25.00
@@ -9,6 +9,14 @@ tool_call = true
knowledge = "2025-05-31"
open_weights = false
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "high", "max"]
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 5.00
output = 25.00
@@ -9,6 +9,10 @@ tool_call = true
knowledge = "2026-01-31"
open_weights = false
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "high", "xhigh", "max"]
[cost]
input = 5.00
output = 25.00
@@ -0,0 +1,31 @@
name = "Claude Opus 4.8"
family = "claude-opus"
release_date = "2026-05-28"
last_updated = "2026-05-28"
attachment = true
reasoning = true
temperature = false
tool_call = true
open_weights = false
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "high", "xhigh", "max"]
[cost]
input = 5.00
output = 25.00
cache_read = 0.50
cache_write = 6.25
[limit]
context = 1_000_000
output = 128_000
[modalities]
input = ["text", "image", "pdf"]
output = ["text"]
[experimental.modes.fast]
cost = { input = 10.00, output = 50.00, cache_read = 1.00, cache_write = 12.50 }
provider = { body = { speed = "fast" }, headers = { anthropic-beta = "fast-mode-2026-02-01" } }
@@ -9,6 +9,10 @@ tool_call = true
knowledge = "2025-03-31"
open_weights = false
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 3.00
output = 15.00
@@ -9,6 +9,10 @@ tool_call = true
knowledge = "2025-03-31"
open_weights = false
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 3.00
output = 15.00
@@ -9,6 +9,10 @@ tool_call = true
knowledge = "2025-07-31"
open_weights = false
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 3.00
output = 15.00
@@ -9,6 +9,10 @@ tool_call = true
knowledge = "2025-07-31"
open_weights = false
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 3.00
output = 15.00
@@ -9,6 +9,14 @@ tool_call = true
knowledge = "2025-08-31"
open_weights = false
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "high", "max"]
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[cost]
input = 3.00
output = 15.00
-2
View File
@@ -1,2 +0,0 @@
[extends]
from = "xai/grok-3-mini"
-2
View File
@@ -1,2 +0,0 @@
[extends]
from = "xai/grok-3"
@@ -1,2 +0,0 @@
[extends]
from = "xai/grok-4-fast-non-reasoning"
-2
View File
@@ -1,2 +0,0 @@
[extends]
from = "xai/grok-4"
@@ -1,2 +0,0 @@
[extends]
from = "xai/grok-code-fast-1"
@@ -0,0 +1,9 @@
release_date = "2026-05-07"
last_updated = "2026-05-07"
[extends]
from = "moonshotai/kimi-k2.6"
[cost]
input = 0.83
output = 3.85
@@ -0,0 +1,3 @@
[extends]
from = "anthropic/claude-opus-4-8"
omit = ["experimental.modes.fast"]
@@ -0,0 +1,22 @@
name = "Gemma Sea Lion V4 27B It"
family = "gemma"
release_date = "2025-09-23"
last_updated = "2025-09-23"
attachment = false
reasoning = false
temperature = true
tool_call = false
structured_output = false
open_weights = true
[cost]
input = 0.351
output = 0.555
[limit]
context = 128_000
output = 128_000
[modalities]
input = ["text"]
output = ["text"]
@@ -0,0 +1,22 @@
name = "Deepseek R1 Distill Qwen 32B"
family = "deepseek"
release_date = "2025-01-22"
last_updated = "2025-01-22"
attachment = false
reasoning = true
temperature = true
tool_call = false
structured_output = false
open_weights = true
[cost]
input = 0.497
output = 4.881
[limit]
context = 80_000
output = 80_000
[modalities]
input = ["text"]
output = ["text"]
@@ -6,15 +6,16 @@ attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = true
[cost]
input = 0.10
output = 0.30
input = 0.1
output = 0.3
[limit]
context = 256000
output = 16384
context = 256_000
output = 16_384
[modalities]
input = ["text", "image"]
@@ -1,17 +1,17 @@
name = "Trinity Large Preview"
family = "trinity"
release_date = "2026-01-27"
last_updated = "2026-01-27"
name = "Granite 4.0 H Micro"
family = "granite"
release_date = "2025-10-07"
last_updated = "2025-10-07"
attachment = false
reasoning = false
temperature = true
tool_call = true
structured_output = true
structured_output = false
open_weights = true
[cost]
input = 0.15
output = 0.45
input = 0.017
output = 0.112
[limit]
context = 131_000
@@ -1,22 +1,21 @@
name = "CodeLLaMa 7B Instruct Solidity"
name = "Llama 3.1 8B Instruct fp8"
family = "llama"
release_date = "2025-04-14"
last_updated = "2025-04-14"
release_date = "2024-07-25"
last_updated = "2024-07-25"
attachment = false
reasoning = false
temperature = true
tool_call = false
structured_output = false
knowledge = "2023-06-30"
open_weights = true
[cost]
input = 0.8
output = 1.2
input = 0.152
output = 0.287
[limit]
context = 4_096
output = 4_096
context = 32_000
output = 32_000
[modalities]
input = ["text"]
@@ -0,0 +1,22 @@
name = "Llama 3.2 11B Vision Instruct"
family = "llama"
release_date = "2024-09-25"
last_updated = "2024-09-25"
attachment = true
reasoning = false
temperature = true
tool_call = false
structured_output = false
open_weights = true
[cost]
input = 0.0485
output = 0.676
[limit]
context = 128_000
output = 128_000
[modalities]
input = ["text", "image"]
output = ["text"]
@@ -0,0 +1,22 @@
name = "Llama 3.2 1B Instruct"
family = "llama"
release_date = "2024-09-25"
last_updated = "2024-09-25"
attachment = false
reasoning = false
temperature = true
tool_call = false
structured_output = false
open_weights = true
[cost]
input = 0.027
output = 0.201
[limit]
context = 60_000
output = 60_000
[modalities]
input = ["text"]
output = ["text"]
@@ -0,0 +1,22 @@
name = "Llama 3.2 3B Instruct"
family = "llama"
release_date = "2024-09-25"
last_updated = "2024-09-25"
attachment = false
reasoning = false
temperature = true
tool_call = false
structured_output = false
open_weights = true
[cost]
input = 0.0509
output = 0.335
[limit]
context = 80_000
output = 80_000
[modalities]
input = ["text"]
output = ["text"]
@@ -1,22 +1,21 @@
name = "ERNIE 4.5 21B A3B"
family = "ernie"
release_date = "2025-08-12"
last_updated = "2025-08-12"
name = "Llama 3.3 70B Instruct fp8 Fast"
family = "llama"
release_date = "2024-12-06"
last_updated = "2024-12-06"
attachment = false
reasoning = false
temperature = true
tool_call = true
structured_output = false
knowledge = "2025-03-31"
open_weights = true
[cost]
input = 0.07
output = 0.28
input = 0.293
output = 2.253
[limit]
context = 120_000
output = 8_000
context = 24_000
output = 24_000
[modalities]
input = ["text"]
@@ -6,6 +6,7 @@ attachment = true
reasoning = false
temperature = true
tool_call = true
structured_output = false
open_weights = true
[cost]
@@ -13,8 +14,8 @@ input = 0.27
output = 0.85
[limit]
context = 128000
output = 16384
context = 131_000
output = 16_384
[modalities]
input = ["text", "image"]
@@ -0,0 +1,22 @@
name = "Llama Guard 3 8B"
family = "llama"
release_date = "2025-01-22"
last_updated = "2025-01-22"
attachment = false
reasoning = false
temperature = true
tool_call = false
structured_output = false
open_weights = true
[cost]
input = 0.484
output = 0.03
[limit]
context = 131_072
output = 131_072
[modalities]
input = ["text"]
output = ["text"]
@@ -0,0 +1,22 @@
name = "Mistral Small 3.1 24B Instruct"
family = "mistral-small"
release_date = "2025-03-18"
last_updated = "2025-03-18"
attachment = false
reasoning = false
temperature = true
tool_call = true
structured_output = false
open_weights = true
[cost]
input = 0.351
output = 0.555
[limit]
context = 128_000
output = 128_000
[modalities]
input = ["text"]
output = ["text"]
@@ -1,27 +0,0 @@
name = "Kimi K2.5"
family = "kimi"
release_date = "2026-01-27"
last_updated = "2026-01-27"
attachment = true
reasoning = true
structured_output = true
temperature = true
tool_call = true
knowledge = "2025-01"
open_weights = true
[interleaved]
field = "reasoning_content"
[cost]
input = 0.60
output = 3.00
cache_read = 0.10
[limit]
context = 256_000
output = 256_000
[modalities]
input = ["text", "image"]
output = ["text"]
@@ -4,9 +4,9 @@ release_date = "2026-04-20"
last_updated = "2026-04-20"
attachment = true
reasoning = true
structured_output = true
temperature = true
tool_call = true
structured_output = true
knowledge = "2025-01"
open_weights = true
@@ -15,11 +15,11 @@ field = "reasoning_content"
[cost]
input = 0.95
output = 4.00
output = 4
cache_read = 0.16
[limit]
context = 256_000
context = 262_144
output = 256_000
[modalities]
@@ -6,14 +6,15 @@ attachment = false
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = true
[interleaved]
field = "reasoning_content"
[cost]
input = 0.50
output = 1.50
input = 0.5
output = 1.5
[limit]
context = 256_000
@@ -1,10 +1,12 @@
name = "GPT OSS 120B"
family = "gpt-oss"
release_date = "2025-08-05"
last_updated = "2025-08-05"
attachment = false
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = true
[cost]
@@ -12,8 +14,8 @@ input = 0.35
output = 0.75
[limit]
context = 128000
output = 16384
context = 128_000
output = 16_384
[modalities]
input = ["text"]
@@ -1,10 +1,12 @@
name = "GPT OSS 20B"
family = "gpt-oss"
release_date = "2025-08-05"
last_updated = "2025-08-05"
attachment = false
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = true
[cost]
@@ -12,8 +14,8 @@ input = 0.2
output = 0.3
[limit]
context = 128000
output = 16384
context = 128_000
output = 16_384
[modalities]
input = ["text"]
@@ -0,0 +1,22 @@
name = "Qwen2.5 Coder 32B Instruct"
family = "qwen"
release_date = "2025-02-27"
last_updated = "2025-02-27"
attachment = false
reasoning = false
temperature = true
tool_call = false
structured_output = false
open_weights = true
[cost]
input = 0.66
output = 1
[limit]
context = 32_768
output = 32_768
[modalities]
input = ["text"]
output = ["text"]
@@ -1,7 +1,7 @@
name = "Trinity Large Thinking (free)"
family = "trinity"
release_date = "2026-04-01"
last_updated = "2026-04-01"
name = "Qwen3 30B A3b fp8"
family = "qwen"
release_date = "2025-04-30"
last_updated = "2025-04-30"
attachment = false
reasoning = true
temperature = true
@@ -10,12 +10,12 @@ structured_output = false
open_weights = true
[cost]
input = 0
output = 0
input = 0.0509
output = 0.335
[limit]
context = 262_144
output = 80_000
context = 32_768
output = 32_768
[modalities]
input = ["text"]
@@ -0,0 +1,22 @@
name = "Qwq 32B"
family = "qwen"
release_date = "2025-03-05"
last_updated = "2025-03-05"
attachment = false
reasoning = true
temperature = true
tool_call = false
structured_output = false
open_weights = true
[cost]
input = 0.66
output = 1
[limit]
context = 24_000
output = 24_000
[modalities]
input = ["text"]
output = ["text"]
@@ -6,12 +6,13 @@ attachment = false
reasoning = true
temperature = true
tool_call = true
structured_output = true
knowledge = "2025-04"
open_weights = true
[cost]
input = 0.06
output = 0.40
input = 0.0605
output = 0.4
[limit]
context = 131_072
@@ -1,22 +1,22 @@
name = "Qwen 3 235B Instruct"
family = "qwen"
name = "DeepSeek V3.2"
family = "deepseek"
release_date = "2025-07-22"
last_updated = "2025-07-22"
attachment = false
reasoning = false
temperature = true
knowledge = "2025-04"
tool_call = true
open_weights = true
open_weights = false
[cost]
input = 0.6
output = 1.2
input = 0.18
output = 0.35
cache_read = 0.04
[limit]
context = 131_000
output = 32_000
context = 163_840
output = 163_840
[modalities]
input = ["text"]
output = ["text"]
output = ["text"]
@@ -0,0 +1,14 @@
[extends]
from = "deepseek/deepseek-v4-flash"
[cost]
input = 0.12
output = 0.21
cache_read = 0.003
[limit]
context = 1_000_000
output = 131_072
[provider]
npm = "@ai-sdk/openai-compatible"
@@ -0,0 +1,14 @@
[extends]
from = "deepseek/deepseek-v4-pro"
[cost]
input = 0.80
output = 1.60
cache_read = 0.02
[limit]
context = 1_000_000
output = 131_072
[provider]
npm = "@ai-sdk/openai-compatible"
@@ -0,0 +1,14 @@
[extends]
from = "deepseek/deepseek-v4-pro"
[cost]
input = 0.35
output = 0.80
cache_read = 0.003
[limit]
context = 1_000_000
output = 131_072
[provider]
npm = "@ai-sdk/openai-compatible"
+14
View File
@@ -0,0 +1,14 @@
[extends]
from = "google/gemma-4-31b-it"
[cost]
input = 0.10
output = 0.30
cache_read = 0.02
[limit]
context = 262_144
output = 262_144
[provider]
npm = "@ai-sdk/openai-compatible"
+14
View File
@@ -0,0 +1,14 @@
[extends]
from = "zhipuai/glm-4.7-flash"
[cost]
input = 0.04
output = 0.30
cache_read = 0.008
[limit]
context = 202_752
output = 131_072
[provider]
npm = "@ai-sdk/openai-compatible"
+14
View File
@@ -0,0 +1,14 @@
[extends]
from = "zhipuai/glm-4.7"
[cost]
input = 0.25
output = 1.10
cache_read = 0.05
[limit]
context = 202_752
output = 202_752
[provider]
npm = "@ai-sdk/openai-compatible"
+14
View File
@@ -0,0 +1,14 @@
[extends]
from = "zhipuai/glm-5.1"
[cost]
input = 0.45
output = 2.15
cache_read = 0.08
[limit]
context = 202_752
output = 202_752
[provider]
npm = "@ai-sdk/openai-compatible"
+14
View File
@@ -0,0 +1,14 @@
[extends]
from = "zhipuai/glm-5"
[cost]
input = 0.48
output = 1.90
cache_read = 0.10
[limit]
context = 202_752
output = 202_752
[provider]
npm = "@ai-sdk/openai-compatible"
@@ -1,20 +1,20 @@
name = "Qwen: Qwen-Turbo"
release_date = "2024-11-01"
last_updated = "2026-03-15"
name = "Greg 1 Mini"
release_date = "2026-01-27"
last_updated = "2026-01-27"
attachment = false
reasoning = false
temperature = true
tool_call = true
tool_call = false
open_weights = false
[cost]
input = 0.0325
output = 0.13
input = 0.07
output = 0.15
cache_read = 0.01
[limit]
context = 131072
output = 8192
context = 229_376
output = 229_376
[modalities]
input = ["text"]
+21
View File
@@ -0,0 +1,21 @@
name = "Greg 1 Super"
release_date = "2026-01-27"
last_updated = "2026-01-27"
attachment = false
reasoning = false
temperature = true
tool_call = false
open_weights = false
[cost]
input = 1.00
output = 5.00
cache_read = 0.20
[limit]
context = 229_376
output = 229_376
[modalities]
input = ["text"]
output = ["text"]
@@ -1,21 +1,20 @@
name = "Kimi K2 Instruct"
family = "kimi"
attachment = false
reasoning = false
tool_call = true
temperature = true
open_weights = true
knowledge = "2024-04"
name = "Greg 1 Normal"
release_date = "2026-01-27"
last_updated = "2026-01-27"
attachment = false
reasoning = false
temperature = true
tool_call = false
open_weights = false
[cost]
input = 0.55
output = 2.75
input = 0.10
output = 0.30
cache_read = 0.02
[limit]
context = 254_000
output = 32_768
context = 229_376
output = 229_376
[modalities]
input = ["text"]
+21
View File
@@ -0,0 +1,21 @@
name = "Greg (Roleplay)"
release_date = "2026-01-27"
last_updated = "2026-01-27"
attachment = false
reasoning = false
temperature = true
tool_call = false
open_weights = false
[cost]
input = 0.10
output = 0.30
cache_read = 0.02
[limit]
context = 229_376
output = 229_376
[modalities]
input = ["text"]
output = ["text"]
@@ -0,0 +1,26 @@
name = "Kimi K2.5 (Lightning)"
family = "kimi-k2.5"
release_date = "2026-02-06"
last_updated = "2026-02-06"
attachment = false
reasoning = true
temperature = false
tool_call = true
structured_output = true
open_weights = true
[interleaved]
field = "reasoning_content"
[cost]
input = 1.00
output = 3.00
cache_read = 0.20
[limit]
context = 131_072
output = 32_768
[modalities]
input = ["text", "image", "video"]
output = ["text"]
+14
View File
@@ -0,0 +1,14 @@
[extends]
from = "moonshotai/kimi-k2.5"
[cost]
input = 0.35
output = 1.70
cache_read = 0.07
[limit]
context = 262_144
output = 262_144
[provider]
npm = "@ai-sdk/openai-compatible"
+10
View File
@@ -0,0 +1,10 @@
[extends]
from = "moonshotai/kimi-k2.6"
[cost]
input = 0.50
output = 1.99
cache_read = 0.05
[provider]
npm = "@ai-sdk/openai-compatible"
+10
View File
@@ -0,0 +1,10 @@
[extends]
from = "xiaomi/mimo-v2.5-pro"
[cost]
input = 0.40
output = 0.80
cache_read = 0.003
[provider]
npm = "@ai-sdk/openai-compatible"
+16
View File
@@ -0,0 +1,16 @@
reasoning = false
[extends]
from = "minimax/MiniMax-M2.5"
[cost]
input = 0.11
output = 0.95
cache_read = 0.02
[limit]
context = 204_800
output = 131_072
[provider]
npm = "@ai-sdk/openai-compatible"
@@ -0,0 +1,14 @@
[extends]
from = "alibaba/qwen3.5-397b-a17b"
[cost]
input = 0.35
output = 1.75
cache_read = 0.07
[limit]
context = 262_144
output = 262_144
[provider]
npm = "@ai-sdk/openai-compatible"
Loaded 100 of 843 files, more files were not shown because too many files have changed in this diff. Show more