Compare commits

...
Author SHA1 Message Date
Dax Raad f96f94b8cb fix: move models site to opencode domain 2026-07-30 13:56:24 +00:00
Aiden Cline c837f4d34e fix: add OpenCode models domain (#3849)
* fix: add OpenCode models domain

* fix: remove computed custom domain field
2026-07-29 22:51:31 -05:00
Asmae_ELAZRAKandAiden Cline 762d7feef9 feat: add kimi K3 to cortecs (#3835)
* feat: add kimi K3 to cortecs

* fix: correct Cortecs Kimi K3 metadata

---------

Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-29 22:09:54 -05:00
Cas BurggraafandClaude Opus 4.8 b424381291 Add GreenPT provider (#3726)
* Add GreenPT provider (26 models)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Add GreenPT provider logo

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Use base_model for Mistral Small 3.2 / Medium 3.5 and Green L (review)

Reference existing models/ metadata via base_model instead of
re-declaring provider-agnostic facts inline, per review feedback.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Add required description field to full-def models

Upstream schema now requires a non-empty description on models;
base_model entries inherit it, so add it to the self-contained ones.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Refresh GreenPT catalog against production

Reconciles every GreenPT entry with the live production catalog and addresses
the data-accuracy review:

- Context limits: add provider-specific limit.context where GreenPT serves a
  smaller window than the base metadata (gemma-3-27b-it 40k, devstral-2 200k,
  llama-3.3-70b 100k, qwen3-coder-30b 128k).
- Speech-to-text: reprice green-s / green-s-pro to the current EUR 0.12/hour
  pre-recorded rate, with the standard EUR 0.23/hour noted inline.
- Modalities: override attachment and modalities.input so each entry advertises
  exactly what GreenPT serves. Adds image input to gpt-oss-120b, green-r,
  green-r-raw, green-l, green-l-raw and mistral-small-3.2; drops the inherited
  video/audio modalities from qwen3.6-35b-a3b, qwen3.5-397b-a17b and the Kimi
  entries.
- Reasoning controls: reasoning_options now lists the full accepted effort set
  (none, minimal, low, medium, high) on every reasoning model.
- Token costs: refresh prices, including glm-5.2, glm-5.1, minimax-m2.5 and the
  three Kimi entries.

* Rename gemma-4-26b-a4b-it to gemma4

The GreenPT API serves this model under the id `gemma4`; the previous filename
did not resolve against the live endpoint. The upstream weights are still
referenced through base_model.

* Address automated review feedback

- Add the required top-of-file cost-conversion comment (rate 1.14 USD/EUR,
  captured 2026-07-24, with sources) to every EUR-sourced file, per the
  AGENTS.md cost schema rule.
- Scope reasoning_options to the GreenPT-hosted models whose reasoning control
  is documented first-party (gemma4, green-r, green-r-raw). The third-party
  pass-through endpoints forward reasoning_effort upstream unchanged and their
  per-model accepted values are not verified, so they now declare [] rather
  than an assumed effort enum.
- Publish the standard EUR 0.23/hour speech-to-text rate (USD 0.00437/minute)
  instead of the temporary promotional rate, so the catalog stays correct after
  the promotion ends on 2026-08-31. The promotion is documented in the header.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-29 22:02:09 -05:00
e6d37bdcae feat(sync): add Merge Gateway model sync (#3249)
* feat(sync): add Merge Gateway model sync

* fix(merge-gateway): document reasoning controls

* fix(sync): preserve partial Merge Gateway metadata

* fix(merge-gateway): align route metadata sync

* fix(merge-gateway): treat supports_reasoning as a positive-only signal

The public /v1/models schema does not document supports_reasoning, and the
live catalog populates it inconsistently across vendor routes: the same
model reports true on one route and false on another (claude-opus-4-6 is
false via anthropic, true via bedrock), and reasoning-only models such as
deepseek-r1 report false on their sole route. Flipping reasoning = false
from that field erased curated reasoning metadata on 42 models.

- only confirm reasoning when an available route reports
  supports_reasoning = true (always accompanied by route reasoning
  metadata), defaulting reasoning_options to [] when none are curated
- preserve curated reasoning metadata when routes report false or omit
  the field
- restore the 42 erased reasoning entries (claude, deepseek-r1, gpt-oss,
  gemma, qwen, glm, nemotron, fugu) from curated values
- re-sync against the live catalog: gemini-embedding-001 added, route
  cache_read prices and display names ingested, qwen3.5-27b limits and
  modalities updated

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* chore(merge-gateway): refresh model catalog

* fix(merge-gateway): align synced model metadata

* docs(sync): trim Merge Gateway notes

* fix(merge-gateway): remove stale Qwen aliases

* test(merge-gateway): document sync coverage

* fix(merge-gateway): mark chat models as non-reasoning

---------

Co-authored-by: Matthew Feroz <matt.feroz@merge.dev>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-29 21:58:24 -05:00
Kassie Povinelli bebd608155 feat(llmgateway): add reasoning effort levels for kimi-k3 (#3843)
* feat(llmgateway): add reasoning effort levels for kimi-k3

The kimi-k3 entry declared no reasoning options. Verified against the
live gateway that reasoning_effort accepts
minimal|low|medium|high|xhigh|max and returns thinking traces in
message.reasoning, with depth scaling low < medium < high ~= max.
There is no working off switch ('none', reasoning.enabled=false,
thinking.type=disabled, and reasoning.exclude=true all still reason),
so 'none' is omitted and no toggle is declared.

* refactor(llmgateway): move kimi-k3 API mapping note into header comment

Inline comments on TOML entries are dropped by the sync re-serializer;
keep the reasoning_effort/reasoning.effort mapping note in the leading
comment block per repo convention.
2026-07-29 12:58:18 -05:00
github-actions[bot] 6a308dfbf7 chore(sync): update Venice model catalog (#3827)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:17:35 -05:00
github-actions[bot] 6455db8f76 chore(sync): update Chutes model catalog (#3802)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:17:25 -05:00
github-actions[bot] ebcf1c5136 chore(sync): update Baseten model catalog (#3821)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:09:49 -05:00
github-actions[bot] 6f4163d814 chore(sync): update CrossModel model catalog (#3819)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:09:42 -05:00
github-actions[bot] 05c55247fa chore(sync): update EmpirioLabs AI model catalog (#3803)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:09:34 -05:00
github-actions[bot] 83b4abd291 chore(sync): update OpenRouter model catalog (#3796)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:09:13 -05:00
github-actions[bot] 5a66940016 chore(sync): update Deep Infra model catalog (#3825)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:08:57 -05:00
github-actions[bot] 3516638e90 chore(sync): update Vercel AI Gateway model catalog (#3828)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:08:47 -05:00
github-actions[bot] 214e4198af chore(sync): update Weights & Biases model catalog (#3829)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:00:50 -05:00
github-actions[bot] f4ecada627 chore(sync): update LLM Gateway model catalog (#3838)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 10:27:48 -05:00
github-actions[bot] fe06f6b0b8 chore(sync): update Charm Hyper model catalog (#3837)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 10:27:37 -05:00
huggix bddb089b85 feat(sync): add safe NanoGPT model catalog sync (#3342)
* Add safe NanoGPT model sync provider

* Address NanoGPT canonical model review

* Fix remaining NanoGPT canonical variants

* Harden NanoGPT canonical model sync

* Preserve NanoGPT overrides during factoring
2026-07-29 10:24:57 -05:00
github-actions[bot] 2605c54574 fix: dev CI failure (#3839)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:24:03 -04:00
Dax Raad f412635d8c Add models.opencode.ai domain 2026-07-29 11:13:33 -04:00
Deven Navani b6a79f21e5 Add Modal as an inference provider (#3760)
* Add Modal as an inference provider

* Use Modal inference gateway
2026-07-28 17:29:14 -05:00
Aiden Cline 814f7e04e0 fix(openrouter): temporarily skip :batch model routes (#3822)
Batch endpoints are not catalog targets; filter them out during sync.
2026-07-28 13:54:24 -05:00
Fenil Modi 3e74f55316 fix(aiand): fix logo.svg not rendering in provider catalog (#3800)
* fix(aiand): rescale logo.svg to 24x24 icon format

The previous logo used a 1280x1280 viewBox with a translate(0 430)
transform, causing it to render blank/broken at small icon sizes in
OpenCode's provider catalog. Rescaled to 24x24 following the convention
used by fireworks-ai, nebius, and other providers.

* fix(aiand): fix logo.svg rendering at icon sizes

Crop viewBox to the actual content bounding box (0 471 1280 430)
and add explicit width/height="24" so the logo renders correctly
at small icon sizes in OpenCode's provider catalog.
Original paths are unchanged.

* fix(aiand): fix logo.svg not rendering in provider catalog

Add width/height="24" and crop viewBox to "0 471 1280 430" —
the exact bounding box of the logo content after translate(0 430).
No path data changed.
2026-07-28 13:42:28 -05:00
github-actions[bot] 185a4f4cc1 chore(sync): update Vercel AI Gateway model catalog (#3807)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-28 12:02:06 -05:00
github-actions[bot] b209b33ce1 chore(sync): update Charm Hyper model catalog (#3801)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-28 12:01:55 -05:00
Fenil Modi 3e72fc6374 fix(aiand): remove glm-5.1 and kimi-k2.6 — not in live catalog (#3806)
* fix(aiand): remove glm-5.1 — not in live catalog (superseded by glm-5.2)

* fix(aiand): remove kimi-k2.6 — not in live catalog (superseded by kimi-k2.7-code and kimi-k3)
2026-07-28 12:01:34 -05:00
Suat-B adfe923c2c Add Xpersona premium model lineup (#3817)
* Add Xpersona premium model lineup

* Fix GPT-5.4 Mini limit inheritance

* Fix GPT-5.4 and GPT-5.5 input limit inheritance

* Align Xpersona serving limits and reasoning metadata

* Restore inherited context field for GPT-5.4 Mini
2026-07-28 11:59:50 -05:00
7343d8b35c feat(berget): add Kimi K3 (#3810)
* feat(berget): add Kimi K3

Moonshot AI's 2.8T-parameter open-weights model, served on Berget AI's
Swedish infrastructure (NVIDIA B300, SGLang with DSpark speculative
decoding).

- reasoning_effort none/low/medium/high/max mapped to K3's native
  low/high/max; reasoning returned in message.reasoning_content
- 320k context window, 32k max output
- Multimodal input (text + image)
- Pricing: $3 input / $15 output per 1M tokens, $0.30 cache read

* fix(berget): drop cache_read price, tidy reasoning comment

- Remove cache_read: no separate cache-read price on Berget
- Move reasoning comment to file top and drop xhigh mention
  (Copilot review)

* fix(berget): Kimi K3 reasoning_effort to native low/high/max

K3 only has three native reasoning levels (low/high/max, default max) and
cannot disable thinking. The previous list (none/low/medium/high/max) mixed
in clamped OpenAI-compat values and implied a granularity the model does not
have — and 'none' is misleading since K3 always thinks. The Berget API still
accepts the full OpenAI effort set and clamps it, but only the three distinct
levels are advertised. Matches the 'distinct functional levels' convention
used by our other models.

---------

Co-authored-by: berget-code <noreply@berget.ai>
Co-authored-by: berget <dev@berget.ai>
2026-07-28 11:59:23 -05:00
github-actions[bot] 69a5617db0 chore(sync): update Venice model catalog (#3818)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-28 11:57:33 -05:00
David Knaack 42f0d9ff3f chore(sap-ai-core): add gemini-embedding (version: 001/latest) (#3811) 2026-07-28 11:57:24 -05:00
Billy CaoandClaude Fable 5 52d5045ee7 feat(synthetic): Add Kimi K3 model (#3794)
* Add Synthetic's Kimi K3 offering

* Update cache read price

* fix(synthetic): declare effort-only reasoning for Kimi K3 per Synthetic API docs

Synthetic's OpenAI-compatible chat completions API documents reasoning_effort
with values low | medium | high and no reasoning on/off toggle, so drop the
toggle option and align effort values with the documented surface (matching
the existing Synthetic Kimi K2.6 / K2.7-Code entries).

https://dev.synthetic.new/docs/openai/chat-completions

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Remove unnecessary comment

* Retrigger transient actions failure

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-27 23:36:15 -05:00
github-actions[bot] 4faf76317a chore(sync): update Venice model catalog (#3791)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 23:36:01 -05:00
github-actions[bot] efb5d8ea0d chore(sync): update Baseten model catalog (#3798)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 23:35:53 -05:00
Fenil Modi 0273194a65 feat(aiand): add Kimi K3 (#3799)
* feat(aiand): add Kimi K3

* fix(aiand): remove pdf from kimi-k3 modalities, text+image only

* fix(aiand): restore pdf modality for kimi-k3 based on /v1/models evidence

PDF was removed to match fireworks/ollama-cloud, but that is not valid
evidence for aiand. Sibling aiand entries (kimi-k2.6, kimi-k2.7-code)
keep pdf after catalog/probe evidence. Restoring pdf per original
GET /v1/models data which showed document support.
2026-07-27 23:35:42 -05:00
Abliteration AI a034112075 Add abliterated-model-large (#3793)
* Add abliterated-model-large

* Fix reasoning abliterated-model-large.toml

* fix provider

* Update abliterated-model-large.toml

* removed interleaved reasoning

* fixed docs and effort

* Address review: verified reasoning controls, citations, provider docs

- abliterated-model: reasoning = true with effort ladder and toggle,
  per docs.abliteration.ai/capabilities/thinking
- abliterated-model-large: replace unverified effort values with the
  documented ladder (none..max via reasoning_effort) plus thinking
  toggle; add API-syntax comments; move all source citations into the
  leading header block; align max output with docs (999,990)
- provider.toml: restore reasoning notes with the current verified
  per-endpoint request fields

* Narrow abliterated-model-large effort values to distinct modes

The API maps minimal-high -> high and xhigh-max -> max, so only none,
high, and max are distinct outcomes. Alias mapping kept as a comment.
2026-07-27 23:27:01 -05:00
Oskar b91080aa0e feat(hyper): add Charm Hyper provider and sync module (#3352)
* feat(hyper): add Charm Hyper provider and sync module

* feat: resync models

* fix: remove references to /provider endpoint

* feat: simplify model resolution

* fix logo

* feat: add base model resolution

* update models

* feat: add reasoning_options with base model fallback

* fix: undo env relaxation

* feat: round prices

* fix(hyper): sync modalities from vision

* .

* fix(hyper): remove base model reasoning fallback
2026-07-27 23:23:43 -05:00
Aiden Cline 6fda2e07c2 fix(nvidia): add missing NIM chat models and correct API ids (#3744)
* fix(nvidia): add missing NIM chat models and correct API ids

Add high-demand NVIDIA NIM models used by OpenCode (Nemotron Super/Ultra/Nano,
Inkling, Laguna XS, Mistral Medium 3.5, Ministral 14B, Gemma 3, Cosmos Reason2)
and rename catalog ids that used underscores so they match integrate.api.nvidia.com.

Fixes anomalyco/opencode#38865

* fix(nvidia): audit NIM reasoning_options against infer docs

Keep only verified controls (mistral-medium-3.5-128b reasoning_effort
none|high). Set reasoning_options=[] and drop interleaved where NIM OpenAPI
does not document a control. Narrow inkling modalities to text+image and cite
max_tokens bounds for Super/Laguna output limits.

* fix(nvidia): restore verified Nemotron prompt toggles and Inkling audio

First-party NIM model cards document reasoning ON/OFF via system prompts for
Super v1/v1.5, Ultra 253B, and Nano 8B. NVIDIA's Inkling card lists text/image/audio
inputs. Keep empty reasoning_options only where no control is documented (Laguna,
VL models). Align max_tokens with infer OpenAPI bounds.
2026-07-27 20:45:13 -05:00
github-actions[bot] 24b7a2aa4c chore(sync): update OpenRouter model catalog (#3758)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 20:44:47 -05:00
Vladimir Glafirov d1d08289ac feat: add gitlab duo-chat-opus-5 model (#3765) 2026-07-27 20:44:27 -05:00
rakshith1928 9875219078 feat(kimi-k3): add Kimi K3 model configuration with pricing and modalities (#3789) 2026-07-27 20:43:33 -05:00
amrrsandClaude Sonnet 5 ec23529c0c fix(nebius): fix Kimi K3 reasoning_options for Nebius Token Factory (#3792)
* fix(nebius): curate Kimi K3 reasoning_options from verified API behavior

PR #3780 merged Kimi K3 for Nebius with reasoning_options = [] (no
verified control surface). Live testing against
api.tokenfactory.nebius.com/v1/chat/completions shows reasoning_effort
is a real, validated parameter: invalid values 422, and valid values
visibly change reasoning_content length. Curate the accepted literal
list instead of leaving it empty.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* fix(nebius): narrow Kimi K3 reasoning_options to backend-verified values

Live testing invoking each literal (not just triggering the generic
gateway validator) shows the sglang model backend itself rejects
"minimal" and "xhigh" with a 400: "Input should be 'none', 'low',
'medium', 'high' or 'max'". Those two were only accepted by the
gateway's shared schema, not by this model. Narrow the list to the
5 values that actually work end-to-end.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-27 20:43:18 -05:00
KiKaraage 62ef55a446 feat(crof): add Kimi K3 (#3795)
* feat(crof): add Kimi K3

* fix(crof): change reasoning levels to low-high-max

* fix(crof): add "none" reasoning back for Kimi K3
2026-07-27 20:42:40 -05:00
github-actions[bot] 6eaf975918 chore(sync): update Venice model catalog (#3786)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 16:06:11 -05:00
rakshith1928 f8ac4b4fb1 feat(ollama-cloud): add kimi k3 model (#3787)
* feat(ollama-cloud): add kimi k3 model

* update ollama reasoning

* Revise Kimi K3 model documentation and sources
2026-07-27 16:06:00 -05:00
github-actions[bot] 03e2178662 chore(sync): update Baseten model catalog (#3770)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 14:50:15 -05:00
github-actions[bot] 03e495d946 chore(sync): update Ambient model catalog (#3771)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 14:46:40 -05:00
github-actions[bot]andAiden Cline 1f5a03df40 chore(sync): update Vercel AI Gateway model catalog (#3772)
* chore(sync): update Vercel AI Gateway model catalog

* fix(vercel): set Kimi K3 Fast reasoning effort options

K3 always reasons; expose verified low/high/max via reasoning_effort.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-27 14:46:30 -05:00
github-actions[bot] 0968fea09f chore(sync): update LLM Gateway model catalog (#3779)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 14:43:34 -05:00
github-actions[bot]andAiden Cline 1fb770040a chore(sync): update Deep Infra model catalog (#3782)
* chore(sync): update Deep Infra model catalog

* fix(deepinfra): set Kimi-K3 reasoning effort options

K3 always reasons; expose verified low/high/max via reasoning_effort.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-27 14:43:20 -05:00
Kevin 1efc768ae5 Add Kimi K3 to Nebius Token Factory (#3780)
Register moonshotai/Kimi-K3 with Nebius pricing and limits from
https://tokenfactory.nebius.com/api/public/models_info.
2026-07-27 14:42:37 -05:00
github-actions[bot]andAiden Cline c3aab14477 chore(sync): update Hugging Face model catalog (#3784)
* chore(sync): update Hugging Face model catalog

* fix(huggingface): set Kimi-K3 reasoning effort options

K3 always reasons; expose verified low/high/max via reasoning_effort.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-27 14:42:20 -05:00
Zain Hasan 236d2dd99a add kimi k3 (#3783) 2026-07-27 14:37:56 -05:00
github-actions[bot] ad211c8f8f chore(sync): update Venice model catalog (#3781)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 14:37:42 -05:00
Jack 38ccccc20d add kimi k3 to Zen 2026-07-28 01:08:00 +08:00
github-actions[bot] cce20188e5 chore(sync): update Venice model catalog (#3775)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 11:33:49 -05:00
Ahmad Shahzad 2acddd4818 feat(fireworks-ai): add Kimi K3 and Kimi K3 Fast (#3777) 2026-07-27 11:33:33 -05:00
Ahmad Shahzad c67dbc2e02 fix(fireworks-ai): remove deprecated GLM 5.1 and GLM 5.1 Fast (#3730)
Fireworks AI will decommission GLM 5.1 and GLM 5.1 Fast serverless
endpoints on 2026-07-26, with GLM 5.2 and GLM 5.2 Fast serving as
their recommended replacements:

  GLM 5.1      -> GLM 5.2      (accounts/fireworks/models/glm-5p2)
  GLM 5.1 Fast -> GLM 5.2 Fast (accounts/fireworks/routers/glm-5p2-fast)

Remove the two model files ahead of the decommission date. Dedicated
deployments are unaffected.
2026-07-26 22:48:41 -05:00
github-actions[bot] 790e5cb842 chore(sync): update Ambient model catalog (#3747)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-26 22:48:00 -05:00
github-actions[bot] 73160c42bd chore(sync): update OpenRouter model catalog (#3748)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-26 22:47:50 -05:00
Carlo Francisco ff9bc91921 fix(thinkingmachines): name 256K variant "Inkling (256K)" (#3755)
Both Tinker Inkling tiers rendered with the same display name "Inkling"
because the :peft:262144 variant inherits it via base_model. Downstream
consumers (e.g. opencode) show two indistinguishable entries despite
different context windows and pricing. Override the name to match
the "Inkling (256K)" label used on Tinker's pricing page.
2026-07-26 22:47:35 -05:00
Nathan Nguyen 9c249c78cb feat(cloudflare-ai-gateway): add Claude Opus 5 (#3736) 2026-07-26 15:33:34 -05:00
342 changed files with 5272 additions and 535 deletions

No files matched your search

+1
View File
@@ -74,6 +74,7 @@ jobs:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
VENICE_API_KEY: ${{ secrets.VENICE_API_KEY }}
LLMGATEWAY_API_KEY: ${{ secrets.LLMGATEWAY_API_KEY }}
MERGE_GATEWAY_API_KEY: ${{ secrets.MERGE_GATEWAY_API_KEY }}
KILO_API_KEY: ${{ secrets.KILO_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
+2
View File
@@ -28,6 +28,8 @@
"huggingface:sync": "bun ./packages/core/script/sync-models.ts huggingface",
"kilo:sync": "bun ./packages/core/script/sync-models.ts kilo",
"llmgateway:sync": "bun ./packages/core/script/sync-models.ts llmgateway",
"merge-gateway:sync": "bun ./packages/core/script/sync-models.ts merge-gateway",
"nano-gpt:sync": "bun ./packages/core/script/sync-models.ts nano-gpt",
"venice:sync": "bun ./packages/core/script/sync-models.ts venice",
"vercel:generate": "bun ./packages/core/script/sync-models.ts vercel",
"wandb:generate": "bun ./packages/core/script/sync-models.ts wandb",
+33 -12
View File
@@ -15,9 +15,12 @@ import { deepinfra } from "./providers/deepinfra.js";
import { digitalocean } from "./providers/digitalocean.js";
import { empiriolabs } from "./providers/empiriolabs.js";
import { google } from "./providers/google.js";
import { hyper } from "./providers/hyper.js";
import { huggingface } from "./providers/huggingface.js";
import { kilo } from "./providers/kilo.js";
import { llmgateway } from "./providers/llmgateway.js";
import { mergeGateway } from "./providers/merge-gateway.js";
import { nanoGpt } from "./providers/nano-gpt.js";
import { openai } from "./providers/openai.js";
import { openrouter } from "./providers/openrouter.js";
import { ovhcloud } from "./providers/ovhcloud.js";
@@ -72,6 +75,7 @@ export interface SyncProvider<SourceModel> {
deleteMissing?: boolean;
preserveSymlinks?: boolean;
preserveBaseModels?: boolean;
preserveDescriptions?: boolean;
sameModel?(current: ExistingModel, desired: SyncedModel): boolean;
missingNotice?(paths: string[]): string[];
/**
@@ -114,9 +118,12 @@ export const providers: {
digitalocean: SyncProvider<any>;
empiriolabs: SyncProvider<any>;
google: SyncProvider<any>;
kilo: SyncProvider<any>;
hyper: SyncProvider<any>;
huggingface: SyncProvider<any>;
kilo: SyncProvider<any>;
llmgateway: SyncProvider<any>;
"merge-gateway": SyncProvider<any>;
"nano-gpt": SyncProvider<any>;
openai: SyncProvider<any>;
openrouter: SyncProvider<any>;
ovhcloud: SyncProvider<any>;
@@ -136,9 +143,12 @@ export const providers: {
digitalocean,
empiriolabs,
google,
kilo,
hyper,
huggingface,
kilo,
llmgateway,
"merge-gateway": mergeGateway,
"nano-gpt": nanoGpt,
openai,
openrouter,
ovhcloud,
@@ -150,9 +160,19 @@ export const providers: {
};
export const groups = {
aggregators: ["crossmodel", "empiriolabs", "huggingface", "kilo", "llmgateway", "openrouter", "vercel"],
aggregators: [
"crossmodel",
"empiriolabs",
"huggingface",
"kilo",
"llmgateway",
"merge-gateway",
"nano-gpt",
"openrouter",
"vercel",
],
cloudflare: ["cloudflare-workers-ai"],
direct: ["ambient", "anthropic", "baseten", "chutes", "deepinfra", "digitalocean", "google", "openai", "ovhcloud", "pioneer", "venice", "wandb", "xai"],
direct: ["ambient", "anthropic", "baseten", "chutes", "deepinfra", "digitalocean", "google", "hyper", "openai", "ovhcloud", "pioneer", "venice", "wandb", "xai"],
} as const;
type ProviderID = keyof typeof providers;
@@ -239,16 +259,17 @@ export async function syncProvider<SourceModel>(
} else {
resolvedReasoning = existing.get(relativePath)?.toml.reasoning;
}
const withReasoningOptions = preserveReasoningOptions(
translatedModel,
existing.get(relativePath)?.authored,
resolvedReasoning,
);
const withDescription = provider.preserveDescriptions === false
? withReasoningOptions
: preserveDescription(withReasoningOptions, existing.get(relativePath)?.authored);
const parsed = SyncedAuthoredModel.safeParse(stripUndefined({
id: translated.id,
...preserveDescription(
preserveReasoningOptions(
translatedModel,
existing.get(relativePath)?.authored,
resolvedReasoning,
),
existing.get(relativePath)?.authored,
),
...withDescription,
}));
if (!parsed.success) {
parsed.error.cause = { provider: provider.id, path: relativePath };
+156
View File
@@ -0,0 +1,156 @@
import { existsSync } from "node:fs";
import path from "node:path";
import { z } from "zod";
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
import { factorBaseModel } from "./openrouter.js";
const API_ENDPOINT = "https://hyper.charm.land/v1/models";
const MODELS_DIR = path.join(import.meta.dirname, "..", "..", "..", "..", "..", "models");
function baseModelExists(modelID: string) {
return existsSync(path.join(MODELS_DIR, `${modelID}.toml`));
}
const ReasoningEffort = z.enum([
"default",
"max",
"low",
"high",
"none",
"medium",
"minimal",
"xhigh",
]);
export const HyperModel = z.object({
id: z.string(),
created: z.number(),
display_name: z.string(),
context_window: z.number(),
max_output_tokens: z.number(),
capabilities: z.object({
vision: z.boolean().optional(),
}).optional(),
reasoning: z.object({
effort_levels: z.array(z.object({
value: z.string(),
display: z.string().optional(),
})).optional(),
}).optional(),
pricing: z.object({
input: z.number().optional(),
output: z.number().optional(),
cache_hit: z.number().optional(),
cache_create: z.number().optional(),
}).optional(),
}).passthrough();
const HyperResponse = z.object({
data: z.array(HyperModel),
}).passthrough();
export type HyperModel = z.infer<typeof HyperModel>;
export const hyper = {
id: "hyper",
name: "Charm Hyper",
modelsDir: "providers/hyper/models",
preserveBaseModels: false,
async fetchModels() {
const key = process.env.HYPER_API_KEY;
const response = await fetch(API_ENDPOINT, key
? { headers: { Authorization: `Bearer ${key}` } }
: undefined);
if (!response.ok) {
throw new Error(`Hyper models request failed: ${response.status} ${response.statusText}`);
}
return response.json();
},
parseModels(raw) {
return HyperResponse.parse(raw).data;
},
translateModel(model, context) {
const existing = context.existing(model.id);
const baseModel = existing?.base_model;
if (baseModel === undefined || !baseModelExists(baseModel)) return undefined;
return {
id: model.id,
model: buildHyperModel(model, existing, baseModel),
};
},
} satisfies SyncProvider<HyperModel>;
function dateFromTimestamp(timestamp: number) {
return new Date(timestamp * 1000).toISOString().slice(0, 10);
}
function reasoningOptions(model: HyperModel) {
const effortLevels = model.reasoning?.effort_levels?.map((level) => level.value) ?? [];
if (effortLevels.length === 0) return [];
const values = effortLevels.filter(isReasoningEffort);
if (values.length === 0) return [{ type: "toggle" as const }];
return [{ type: "effort" as const, values }];
}
function isReasoningEffort(value: string): value is z.infer<typeof ReasoningEffort> {
return ReasoningEffort.safeParse(value).success;
}
function price(value: number) {
return Math.round(value * 1_000_000) / 1_000_000;
}
function positivePrice(value: number | undefined) {
return value !== undefined && value > 0 ? price(value) : undefined;
}
function buildCost(model: HyperModel, existing: ExistingModel["cost"] | undefined) {
const pricing = model.pricing;
if (pricing?.input === undefined || pricing.output === undefined) return existing;
return {
input: price(pricing.input),
output: price(pricing.output),
cache_read: positivePrice(pricing.cache_hit)
?? (pricing.cache_hit === undefined ? existing?.cache_read : undefined),
cache_write: positivePrice(pricing.cache_create)
?? (pricing.cache_create === undefined ? existing?.cache_write : undefined),
reasoning: existing?.reasoning,
};
}
function hyperModalities(vision: boolean) {
const input = vision ? ["text" as const, "image" as const] : ["text" as const];
return {
input,
output: ["text" as const],
};
}
export function buildHyperModel(
model: HyperModel,
existing: ExistingModel | undefined,
baseModel: string,
today = new Date().toISOString().slice(0, 10),
): SyncedModel {
const limit = {
context: model.context_window,
input: existing?.limit?.input,
output: model.max_output_tokens,
};
const modalities = hyperModalities(model.capabilities?.vision ?? false);
const values: Partial<SyncedFullModel> = {
attachment: modalities.input.some((value) => value !== "text"),
modalities,
reasoning: model.reasoning != null,
reasoning_options: model.reasoning != null ? reasoningOptions(model) : undefined,
release_date: existing?.release_date ?? dateFromTimestamp(model.created),
last_updated: existing?.last_updated ?? today,
interleaved: existing?.interleaved,
cost: buildCost(model, existing?.cost),
limit,
};
return factorBaseModel(baseModel, values, limit, existing?.base_model_omit);
}
@@ -0,0 +1,337 @@
import { z } from "zod";
import { describeModel } from "../../describe.js";
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
import { factorBaseModel, resolveCanonicalBaseModel } from "./openrouter.js";
const API_ENDPOINT = "https://api-gateway.merge.dev/v1/models";
const AvailabilityStatus = z.enum(["available", "deprecated"]);
const VendorReasoning = z.object({
configurable: z.boolean().optional(),
disable_supported: z.boolean().optional(),
default_enabled: z.boolean().optional(),
controls: z.array(z.string()).optional(),
output_style: z.string().nullable().optional(),
}).passthrough();
const VendorCapabilities = z.object({
input: z.array(z.enum(["text", "audio", "image", "document", "embedding"])),
output: z.array(z.enum(["text", "audio", "tool_use", "embedding"])),
supports_tool_calling: z.boolean(),
supports_tool_choice: z.boolean().default(false),
supports_structured_outputs: z.boolean(),
supports_reasoning: z.boolean().optional(),
reasoning: VendorReasoning.nullable().optional(),
streaming: z.boolean(),
}).passthrough();
const PromptCaching = z.object({
mode: z.enum(["automatic", "explicit", "none"]).optional(),
cache_read_cost_per_million: z.number().nonnegative().nullable().optional(),
cache_write_cost_per_million: z.number().nonnegative().nullable().optional(),
}).passthrough();
const VendorInfo = z.object({
launch_date: z.string().nullable().optional(),
context_window: z.number().int().nonnegative(),
max_output_tokens: z.number().int().nonnegative(),
availability_status: AvailabilityStatus,
capabilities: VendorCapabilities,
pricing: z.object({
currency: z.literal("USD").default("USD"),
input_per_million: z.number().nonnegative(),
output_per_million: z.number().nonnegative(),
cache_read_per_million: z.number().nonnegative().nullable().optional(),
cache_write_per_million: z.number().nonnegative().nullable().optional(),
}).passthrough(),
prompt_caching: PromptCaching.nullable().optional(),
}).passthrough();
export const MergeGatewayModel = z.object({
model: z.string().min(1),
provider: z.string().min(1),
display_name: z.string().min(1),
vendors: z.record(VendorInfo),
availability_status: AvailabilityStatus,
created_at: z.string().nullable().optional(),
updated_at: z.string().nullable().optional(),
}).passthrough().superRefine((model, context) => {
const namespace = model.model.split("/")[0];
if (namespace !== model.provider) {
context.addIssue({
code: z.ZodIssueCode.custom,
path: ["provider"],
message: `Model namespace ${namespace} does not match provider ${model.provider}`,
});
}
});
export const MergeGatewayResponse = z.object({
object: z.literal("list").default("list"),
data: z.array(MergeGatewayModel),
has_more: z.boolean().default(false),
next_cursor: z.string().nullable().optional(),
}).passthrough();
export type MergeGatewayModel = z.infer<typeof MergeGatewayModel>;
export type MergeGatewayVendor = z.infer<typeof VendorInfo>;
export async function fetchMergeGatewayModels(
fetcher: typeof fetch = fetch,
apiKey = process.env.MERGE_GATEWAY_API_KEY,
) {
if (!apiKey) throw new Error("MERGE_GATEWAY_API_KEY is required to sync Merge Gateway models");
const models = new Map<string, MergeGatewayModel>();
const cursors = new Set<string>();
let cursor: string | undefined;
do {
const url = new URL(API_ENDPOINT);
url.searchParams.set("limit", "500");
if (cursor !== undefined) url.searchParams.set("cursor", cursor);
const response = await fetcher(url, {
headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) {
throw new Error(`Merge Gateway request failed: ${response.status} ${response.statusText}`);
}
const page = MergeGatewayResponse.parse(await response.json());
for (const model of page.data) {
if (models.has(model.model)) {
throw new Error(`Merge Gateway returned duplicate model ID: ${model.model}`);
}
models.set(model.model, model);
}
if (!page.has_more) break;
if (!page.next_cursor) throw new Error("Merge Gateway returned has_more=true without next_cursor");
if (cursors.has(page.next_cursor)) throw new Error(`Merge Gateway repeated cursor: ${page.next_cursor}`);
cursors.add(page.next_cursor);
cursor = page.next_cursor;
} while (true);
return {
object: "list" as const,
data: [...models.values()],
has_more: false,
next_cursor: null,
};
}
export const mergeGateway = {
id: "merge-gateway",
name: "Merge Gateway",
modelsDir: "providers/merge-gateway/models",
// API-key policy can affect catalog visibility. Retain missing local models
// until Merge exposes an account-independent catalog response.
deleteMissing: false,
sourceID(model) {
return model.model;
},
skippedNotice(ids) {
if (ids.length === 0) return [];
return [
`${ids.length} Merge Gateway models were skipped because they are not text models or lack canonical metadata.`,
`Skipped remote IDs: ${ids.map((id) => `\`${id}\``).join(", ")}`,
];
},
missingNotice(paths) {
if (paths.length === 0) return [];
return [
`${paths.length} local Merge Gateway models were absent from the API response and retained for manual lifecycle review.`,
`Retained local paths: ${paths.map((item) => `\`${item}\``).join(", ")}`,
];
},
fetchModels() {
return fetchMergeGatewayModels();
},
parseModels(raw) {
return MergeGatewayResponse.parse(raw).data;
},
translateModel(model, context) {
const existing = context.existing(model.model);
const translated = buildMergeGatewayModel(model, existing, context.authored(model.model));
return translated === undefined ? undefined : { id: model.model, model: translated };
},
} satisfies SyncProvider<MergeGatewayModel>;
export function selectMergeGatewayVendor(model: MergeGatewayModel) {
const canonical = model.vendors[model.provider];
if (canonical?.availability_status === "available") {
return { id: model.provider, info: canonical };
}
// Match Gateway's default resolver: when the model author's native route is
// unavailable, use the cheapest active route by combined input + output
// price. Object order is preserved for equal prices; the public API emits
// vendors in CMS-priority order, which is Gateway's own tiebreaker.
const available = Object.entries(model.vendors)
.filter(([, info]) => info.availability_status === "available");
const selected = available.reduce<typeof available[number] | undefined>((best, candidate) => {
if (best === undefined) return candidate;
const bestCost = best[1].pricing.input_per_million + best[1].pricing.output_per_million;
const candidateCost = candidate[1].pricing.input_per_million + candidate[1].pricing.output_per_million;
return candidateCost < bestCost ? candidate : best;
}, undefined);
if (selected !== undefined) return { id: selected[0], info: selected[1] };
if (canonical !== undefined) return { id: model.provider, info: canonical };
const fallback = Object.entries(model.vendors)[0];
return fallback === undefined ? undefined : { id: fallback[0], info: fallback[1] };
}
export function buildMergeGatewayModel(
model: MergeGatewayModel,
existing: ExistingModel | undefined,
authored: ExistingModel | undefined = existing,
): SyncedModel | undefined {
const selected = selectMergeGatewayVendor(model);
if (selected === undefined || !selected.info.capabilities.output.includes("text")) return undefined;
const input = modalities(selected.info.capabilities.input);
const output = modalities(selected.info.capabilities.output);
const limit = {
context: selected.info.context_window || existing?.limit?.context || 0,
// Preserve only a provider-authored input cap. `existing` is resolved
// against base-model metadata, so using its inherited input value here
// can keep an impossible cap when the gateway reports a smaller context.
input: authored?.limit?.input,
output: selected.info.max_output_tokens || existing?.limit?.output || selected.info.context_window,
};
const cachePricing = mergeGatewayCachePricing(selected.info, existing);
const cost = {
input: selected.info.pricing.input_per_million,
output: selected.info.pricing.output_per_million,
reasoning: existing?.cost?.reasoning,
cache_read: cachePricing.read,
cache_write: cachePricing.write,
input_audio: existing?.cost?.input_audio,
output_audio: existing?.cost?.output_audio,
tiers: existing?.cost?.tiers,
};
const status = model.availability_status === "deprecated" || selected.info.availability_status === "deprecated"
? "deprecated" as const
: undefined;
const baseModel = existing?.base_model ?? resolveCanonicalBaseModel(model.model);
// `supports_reasoning` is not part of the documented public schema
// (PublicVendorModelCapabilities) and is inconsistently populated across
// vendor routes: the same model can report `true` on one route and `false`
// on another (e.g. anthropic/claude-opus-4-6 reports `false` via `anthropic`
// and `true` via `bedrock`), and reasoning-only models such as
// deepseek/deepseek-r1 report `false` on their sole route. Treat it as a
// positive-only signal: `true` (always accompanied by route `reasoning`
// metadata) confirms the model reasons on the gateway, while `false`/absent
// means unknown and preserves curated reasoning metadata.
const routeConfirmsReasoning = Object.values(model.vendors).some(
(vendor) => vendor.availability_status === "available" && vendor.capabilities.supports_reasoning === true,
);
const reasoning = routeConfirmsReasoning ? true : existing?.reasoning;
const existingReasoningOptions = existing?.reasoning_options ?? [];
const reasoningOptions = reasoning === true && existingReasoningOptions.length === 0
&& selected.info.capabilities.reasoning?.disable_supported === true
? [{ type: "toggle" as const }]
: reasoning === true
? existingReasoningOptions
: existing?.reasoning_options;
const modelSlug = model.model.split("/").at(-1)?.toLowerCase();
const displayNameIsID = model.display_name.includes("/")
|| model.display_name.toLowerCase() === modelSlug;
const authoritative = {
// Some catalog rows use an upstream org/model ID as display_name. Let
// canonical metadata provide the human-readable name for factored models.
name: baseModel !== undefined && displayNameIsID ? undefined : model.display_name,
attachment: input.some((value) => value !== "text"),
tool_call: selected.info.capabilities.supports_tool_calling,
structured_output: selected.info.capabilities.supports_structured_outputs,
status,
cost,
limit,
modalities: { input, output },
};
if (baseModel !== undefined) {
return factorBaseModel(
baseModel,
{
...authoritative,
description: existing?.description,
reasoning,
reasoning_options: reasoningOptions,
temperature: existing?.temperature,
interleaved: existing?.interleaved,
provider: existing?.provider,
experimental: existing?.experimental,
},
limit,
existing?.base_model_omit,
);
}
if (existing === undefined) return undefined;
const releaseDate = selected.info.launch_date
?? model.created_at?.slice(0, 10)
?? existing.release_date;
if (releaseDate === undefined) return undefined;
const lastUpdated = model.updated_at?.slice(0, 10)
?? existing.last_updated
?? releaseDate;
return {
...authoritative,
description: existing.description ?? describeModel({
id: model.model,
name: model.display_name,
family: existing.family,
reasoning,
tool_call: selected.info.capabilities.supports_tool_calling,
structured_output: selected.info.capabilities.supports_structured_outputs,
open_weights: existing.open_weights,
limit,
modalities: { input, output },
}),
family: existing.family,
release_date: releaseDate,
last_updated: lastUpdated,
reasoning: reasoning ?? false,
reasoning_options: reasoningOptions,
temperature: existing.temperature,
knowledge: existing.knowledge,
open_weights: existing.open_weights ?? false,
interleaved: existing.interleaved,
provider: existing.provider,
experimental: existing.experimental,
} satisfies SyncedFullModel;
}
function mergeGatewayCachePricing(
vendor: MergeGatewayVendor,
existing: ExistingModel | undefined,
) {
const promptCaching = vendor.prompt_caching;
const pricing = vendor.pricing;
if (promptCaching?.mode === "none") {
return { read: undefined, write: undefined };
}
return {
read: promptCaching?.cache_read_cost_per_million
?? pricing.cache_read_per_million
?? existing?.cost?.cache_read,
write: promptCaching?.cache_write_cost_per_million
?? pricing.cache_write_per_million
?? existing?.cost?.cache_write,
};
}
type Modality = "text" | "audio" | "image" | "video" | "pdf";
function modalities(values: string[]): Modality[] {
const allowed = new Set<Modality>(["text", "audio", "image", "video", "pdf"]);
return [...new Set(values
.map((value) => value === "document" ? "pdf" : value)
.filter((value): value is Modality => allowed.has(value as Modality))
)];
}
@@ -0,0 +1,348 @@
import { z } from "zod";
import { inferKimiFamily, ModelFamilyValues } from "../../family.js";
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
import { factorBaseModel, resolveModelMetadataBaseModel } from "./openrouter.js";
const API_ENDPOINT = "https://nano-gpt.com/api/v1/models?detailed=true";
// NanoGPT accepts these exact request values, including `max`:
// https://github.com/Nano-GPT-com/nanogpt/blob/073b25b07e9af619333c679e694de664bf1ceb30/lib/utils/reasoningInput.ts#L12-L28
const ReasoningEffort = z.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]);
const Pricing = z.object({
prompt: z.number().nullish(),
completion: z.number().nullish(),
input: z.number().nullish(),
output: z.number().nullish(),
cacheReadInputPer1kTokens: z.number().nullish(),
cacheWriteInputPer1kTokens: z.number().nullish(),
note: z.string().optional(),
}).passthrough();
const Architecture = z.object({
input_modalities: z.array(z.string()).optional(),
output_modalities: z.array(z.string()).optional(),
}).passthrough();
const Capabilities = z.object({
vision: z.boolean().optional(),
video_input: z.boolean().optional(),
audio_input: z.boolean().optional(),
reasoning: z.boolean().optional(),
tool_calling: z.boolean().optional(),
structured_output: z.boolean().optional(),
pdf_upload: z.boolean().optional(),
}).passthrough();
export const NanoGptModel = z.object({
id: z.string().min(1),
name: z.string().nullish(),
description: z.string().nullish(),
created: z.number().nullish(),
owned_by: z.string().nullish(),
context_length: z.number().int().nonnegative().nullish(),
max_output_tokens: z.number().int().nonnegative().nullish(),
architecture: Architecture.optional(),
capabilities: Capabilities.optional(),
reasoning_efforts: z.array(ReasoningEffort).nullish(),
open_weights: z.boolean().nullish(),
pricing: Pricing.optional(),
}).passthrough();
export const NanoGptResponse = z.object({
data: z.array(NanoGptModel),
}).passthrough();
export type NanoGptModel = z.infer<typeof NanoGptModel>;
type Modality = "text" | "audio" | "image" | "video" | "pdf";
export const nanoGpt = {
id: "nano-gpt",
name: "NanoGPT",
modelsDir: "providers/nano-gpt/models",
preserveDescriptions: false,
async fetchModels() {
const response = await fetch(process.env.NANO_GPT_MODELS_URL ?? API_ENDPOINT);
if (!response.ok) {
throw new Error(`NanoGPT models request failed: ${response.status} ${response.statusText}`);
}
return response.json();
},
parseModels(raw) {
return NanoGptResponse.parse(raw).data;
},
translateModel(model, context) {
const id = normalizeModelID(model.id);
const existing = context.existing(id);
const baseModel = existing?.base_model ?? resolveNanoGptBaseModel(model.id);
const translated = buildNanoGptModel(model, existing, baseModel);
if (translated === undefined) return undefined;
return {
id,
model: translated,
};
},
} satisfies SyncProvider<NanoGptModel>;
const ORG_ID_NORMALIZATION: Record<string, string | undefined> = {
nousresearch: "NousResearch",
qwen: "qwen",
thedrummer: "TheDrummer",
};
const BASE_MODEL_ALIASES: Record<string, string | undefined> = {
"claude-opus-4": "anthropic/claude-opus-4-0",
"claude-sonnet-4": "anthropic/claude-sonnet-4-0",
"cohere/north-mini-code": "cohere/north-mini-code-1-0",
};
const NANO_GPT_VARIANT_SUFFIX = /(?::(?:thinking|none|minimal|low|medium|high|xhigh|max|\d+)|-thinking)$/i;
const KNOWN_OPEN_WEIGHT_IDS = new Set([
"nex-agi/nex-n2-pro",
]);
export function buildNanoGptModel(
model: NanoGptModel,
existing: ExistingModel | undefined,
baseModel = existing?.base_model ?? resolveNanoGptBaseModel(model.id),
): SyncedModel | undefined {
const capabilities = model.capabilities ?? {};
const explicitInputModalities = model.architecture?.input_modalities;
const hasInputCapabilityMetadata = capabilities.vision !== undefined
|| capabilities.audio_input !== undefined
|| capabilities.video_input !== undefined
|| capabilities.pdf_upload !== undefined;
const addedInputModalities = [
...(capabilities.vision ? ["image"] : []),
...(capabilities.audio_input ? ["audio"] : []),
...(capabilities.video_input ? ["video"] : []),
...(capabilities.pdf_upload ? ["pdf"] : []),
];
const hasInputMetadata = explicitInputModalities !== undefined || hasInputCapabilityMetadata;
const hasOutputMetadata = model.architecture?.output_modalities !== undefined;
const input = normalizeModalities([
...explicitInputModalities
?? (hasInputCapabilityMetadata ? ["text"] : existing?.modalities?.input)
?? ["text"],
...addedInputModalities,
]);
const output = normalizeModalities(
model.architecture?.output_modalities ?? existing?.modalities?.output ?? ["text"],
);
const sourceContext = positive(model.context_length);
const sourceOutputLimit = positive(model.max_output_tokens);
const context = sourceContext ?? existing?.limit?.context;
const inputLimit = sourceContext ?? existing?.limit?.input;
const outputLimit = sourceOutputLimit ?? existing?.limit?.output;
const releaseDate = dateFromTimestamp(model.created) ?? existing?.release_date;
const inferredSourceReasoning = capabilities.reasoning
?? (model.reasoning_efforts != null ? true : undefined);
const reasoning = inferredSourceReasoning ?? existing?.reasoning ?? false;
const cost = buildCost(model.pricing, existing);
if (baseModel !== undefined) {
const existingAlreadyFactored = existing?.base_model === baseModel;
const factoredModalities = {
input: hasInputMetadata || existing !== undefined ? input : undefined,
output: hasOutputMetadata || existing !== undefined ? output : undefined,
};
const factoredLimit = {
context: sourceContext ?? existing?.limit?.context,
input: sourceContext ?? existing?.limit?.input,
output: sourceOutputLimit ?? existing?.limit?.output,
};
const sourceReasoning = inferredSourceReasoning;
const sourceReasoningOptions = reasoningOptions(model, sourceReasoning, existing?.reasoning_options);
return factorBaseModel(
baseModel,
{
name: existing?.name ?? model.name ?? undefined,
description: existingAlreadyFactored ? existing?.description : undefined,
family: existingAlreadyFactored ? existing?.family : undefined,
release_date: existingAlreadyFactored ? existing?.release_date : undefined,
last_updated: existingAlreadyFactored ? existing?.last_updated : undefined,
attachment: hasInputMetadata
? input.some((value) => value !== "text")
: existing?.attachment,
reasoning: sourceReasoning ?? existing?.reasoning,
reasoning_options: sourceReasoningOptions,
temperature: existing?.temperature,
tool_call: capabilities.tool_calling ?? existing?.tool_call,
structured_output: capabilities.structured_output ?? existing?.structured_output,
knowledge: existing?.knowledge,
status: existing?.status,
interleaved: existing?.interleaved,
provider: existing?.provider,
experimental: existing?.experimental,
cost,
limit: factoredLimit,
modalities: factoredModalities,
},
factoredLimit,
existingAlreadyFactored ? existing?.base_model_omit : undefined,
);
}
if (context === undefined || outputLimit === undefined || releaseDate === undefined) {
return undefined;
}
const values = {
name: existing?.name ?? model.name ?? humanizeModelName(model.id),
description: existing?.description ?? model.description ?? `${model.name ?? humanizeModelName(model.id)} on NanoGPT.`,
family: existing?.family ?? inferFamily(model.id, model.name ?? ""),
release_date: releaseDate,
last_updated: existing?.last_updated ?? releaseDate,
attachment: input.some((value) => value !== "text"),
reasoning,
reasoning_options: reasoningOptions(model, reasoning, existing?.reasoning_options),
temperature: existing?.temperature,
tool_call: capabilities.tool_calling ?? existing?.tool_call ?? false,
structured_output: capabilities.structured_output ?? existing?.structured_output,
knowledge: existing?.knowledge,
status: existing?.status,
interleaved: existing?.interleaved,
provider: existing?.provider,
experimental: existing?.experimental,
cost,
limit: { context, input: inputLimit ?? context, output: outputLimit },
modalities: { input, output },
};
return {
...values,
open_weights: model.open_weights
?? (KNOWN_OPEN_WEIGHT_IDS.has(model.id.toLowerCase()) ? true : existing?.open_weights)
?? false,
} satisfies SyncedFullModel;
}
function buildCost(
pricing: NanoGptModel["pricing"],
existing: ExistingModel | undefined,
): SyncedFullModel["cost"] {
if (pricing === undefined) return existing?.cost;
if (pricing.note === "varies_by_modality") return existing?.cost;
const input = pricing.input ?? pricing.prompt;
const output = pricing.output ?? pricing.completion;
if (!validPrice(input) || !validPrice(output)) return existing?.cost;
return {
input: price(input),
output: price(output),
reasoning: existing?.cost?.reasoning,
cache_read: !validPrice(pricing.cacheReadInputPer1kTokens)
? existing?.cost?.cache_read
: price(pricing.cacheReadInputPer1kTokens * 1_000),
cache_write: !validPrice(pricing.cacheWriteInputPer1kTokens)
? existing?.cost?.cache_write
: price(pricing.cacheWriteInputPer1kTokens * 1_000),
input_audio: existing?.cost?.input_audio,
output_audio: existing?.cost?.output_audio,
tiers: existing?.cost?.tiers,
};
}
function reasoningOptions(
model: NanoGptModel,
reasoning: boolean | undefined,
existing: SyncedFullModel["reasoning_options"],
): SyncedFullModel["reasoning_options"] {
if (reasoning === false) return undefined;
if (reasoning === undefined) return existing;
if (model.reasoning_efforts == null) return existing ?? [];
if (model.reasoning_efforts.length === 0) return [];
return [{ type: "effort", values: [...model.reasoning_efforts] }];
}
export function resolveNanoGptBaseModel(modelID: string) {
let normalized = normalizeModelID(modelID);
if (normalized.toLowerCase().startsWith("tee/")) {
normalized = normalizeModelID(normalized.slice("TEE/".length));
}
const exact = resolveNanoGptCanonicalCandidate(normalized);
if (exact !== undefined) return exact;
const stripped = stripNanoGptVariantSuffixes(normalized);
return stripped === normalized ? undefined : resolveNanoGptCanonicalCandidate(stripped);
}
function resolveNanoGptCanonicalCandidate(modelID: string) {
return BASE_MODEL_ALIASES[modelID.toLowerCase()] ?? resolveModelMetadataBaseModel(modelID);
}
function stripNanoGptVariantSuffixes(modelID: string) {
let normalized = modelID;
while (true) {
const stripped = normalized.replace(NANO_GPT_VARIANT_SUFFIX, "");
if (stripped === normalized) return normalized;
normalized = stripped;
}
}
function normalizeModalities(values: string[]): Modality[] {
const allowed = new Set<Modality>(["text", "audio", "image", "video", "pdf"]);
const result = values
.map((value) => normalizeModality(value))
.filter((value): value is Modality => allowed.has(value as Modality));
return [...new Set(result.length > 0 ? result : ["text"] as Modality[])];
}
function normalizeModality(value: string) {
const lower = value.toLowerCase();
if (lower === "images") return "image";
if (lower === "videos") return "video";
if (lower === "audios") return "audio";
if (lower === "documents") return "pdf";
return lower;
}
function normalizeModelID(modelId: string) {
const [org, ...parts] = modelId.split("/");
if (org === undefined || parts.length === 0) return modelId;
const normalizedOrg = ORG_ID_NORMALIZATION[org.toLowerCase()];
return normalizedOrg === undefined ? modelId : `${normalizedOrg}/${parts.join("/")}`;
}
function inferFamily(id: string, name: string) {
const kimiFamily = inferKimiFamily(id, name);
if (kimiFamily !== undefined) return kimiFamily;
const target = `${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)`).test(target);
return new RegExp(`(^|[^a-z0-9])${value}(?=$|[^a-z0-9])`).test(target);
});
}
function humanizeModelName(modelId: string) {
const modelPart = modelId.split("/").at(-1) ?? modelId;
return modelPart
.replace(/[:/_-]+/g, " ")
.replace(/\b\w/g, (value) => value.toUpperCase());
}
function dateFromTimestamp(timestamp: number | null | undefined) {
if (timestamp == null || timestamp <= 0) return undefined;
return new Date(timestamp * 1_000).toISOString().slice(0, 10);
}
function positive(value: number | null | undefined) {
return value == null || value <= 0 ? undefined : value;
}
function price(value: number) {
return Math.round(value * 1_000_000) / 1_000_000;
}
function validPrice(value: number | null | undefined): value is number {
return value !== null && value !== undefined && value >= 0;
}
+70 -11
View File
@@ -10,6 +10,7 @@ const API_ENDPOINT = "https://openrouter.ai/api/v1/models";
const MODELS_DIR = path.join(import.meta.dirname, "..", "..", "..", "..", "..", "models");
const modelMetadataByID = new Map<string, Record<string, unknown>>();
const modelMetadataFilesByProvider = new Map<string, Set<string>>();
let allModelMetadataIDs: string[] | undefined;
const CANONICAL_BASE_MODEL_OVERRIDES = {
"openai/gpt-5.6-luna-pro": "openai/gpt-5.6-luna",
@@ -29,11 +30,14 @@ const CANONICAL_PROVIDER_PREFIXES = {
"meta-llama": { provider: "llama", metadata: "meta" },
minimax: { provider: "minimax", metadata: "minimax" },
mistralai: { provider: "mistral", metadata: "mistral" },
moonshot: { provider: "moonshotai", metadata: "moonshotai" },
moonshotai: { provider: "moonshotai", metadata: "moonshotai" },
openai: { provider: "openai", metadata: "openai" },
nvidia: { provider: "nvidia", metadata: "nvidia" },
qwen: { provider: "alibaba", metadata: "alibaba" },
sakana: { provider: "sakana", metadata: "sakana" },
stepfun: { provider: "stepfun", metadata: "stepfun" },
"stepfun-ai": { provider: "stepfun", metadata: "stepfun" },
tencent: { provider: "tencent", metadata: "tencent" },
thinkingmachines: { provider: "thinkingmachines", metadata: "thinkingmachines" },
"x-ai": { provider: "xai", metadata: "xai" },
@@ -41,6 +45,7 @@ const CANONICAL_PROVIDER_PREFIXES = {
xiaomi: { provider: "xiaomi", metadata: "xiaomi" },
zai: { provider: "zai", metadata: "zhipuai" },
"z-ai": { provider: "zai", metadata: "zhipuai" },
"zai-org": { provider: "zai", metadata: "zhipuai" },
} as const;
export const OpenRouterModel = z.object({
@@ -100,7 +105,8 @@ export const openrouter = {
return response.json();
},
parseModels(raw) {
return OpenRouterResponse.parse(raw).data;
// Temporarily skip batch routes (`*:batch`) — they are not catalog targets.
return OpenRouterResponse.parse(raw).data.filter((model) => !model.id.endsWith(":batch"));
},
translateModel(model, context) {
// OpenRouter serves deprecated/unavailable routes as degraded stubs:
@@ -309,19 +315,39 @@ export function resolveCanonicalBaseModel(openrouterID: string) {
if (prefix === undefined || modelParts.length === 0) return undefined;
if (openrouterID.startsWith("~/") || prefix.startsWith("~")) return undefined;
const canonical = CANONICAL_PROVIDER_PREFIXES[prefix as keyof typeof CANONICAL_PROVIDER_PREFIXES];
const canonical = CANONICAL_PROVIDER_PREFIXES[
prefix.toLowerCase() as keyof typeof CANONICAL_PROVIDER_PREFIXES
];
if (canonical === undefined) return undefined;
const modelID = modelParts.join("/").replace(/:free$/, "");
const candidates = canonicalCandidates(canonical.provider, modelID);
const match = candidates.find((candidate) => {
return modelMetadataExists(canonical.metadata, candidate);
});
const match = matchingModelMetadataFile(canonical.metadata, candidates);
return match === undefined ? undefined : `${canonical.metadata}/${match}`;
}
function modelMetadataExists(provider: string, modelID: string) {
/**
* Resolve provider IDs that are not OpenRouter-shaped against the same canonical
* metadata tree. Exact paths win; bare IDs only resolve when their filename is
* unique across every metadata provider.
*/
export function resolveModelMetadataBaseModel(modelID: string) {
const routed = resolveCanonicalBaseModel(modelID);
if (routed !== undefined) return routed;
const normalized = modelID.replace(/:free$/, "");
const ids = modelMetadataIDs();
const exact = ids.find((candidate) => candidate.toLowerCase() === normalized.toLowerCase());
if (exact !== undefined) return exact;
if (normalized.includes("/")) return undefined;
const lower = normalized.toLowerCase();
const matches = ids.filter((candidate) => candidate.split("/").at(-1)?.toLowerCase() === lower);
return matches.length === 1 ? matches[0] : undefined;
}
function matchingModelMetadataFile(provider: string, candidates: string[]) {
let files = modelMetadataFilesByProvider.get(provider);
if (files === undefined) {
try {
@@ -331,7 +357,30 @@ function modelMetadataExists(provider: string, modelID: string) {
}
modelMetadataFilesByProvider.set(provider, files);
}
return files.has(`${modelID}.toml`);
for (const candidate of candidates) {
const expected = `${candidate}.toml`.toLowerCase();
const match = [...files].find((file) => file.toLowerCase() === expected);
if (match !== undefined) return match.slice(0, -".toml".length);
}
return undefined;
}
function modelMetadataIDs() {
if (allModelMetadataIDs !== undefined) return allModelMetadataIDs;
try {
allModelMetadataIDs = readdirSync(MODELS_DIR, { withFileTypes: true })
.filter((entry) => entry.isDirectory())
.flatMap((entry) => {
return readdirSync(path.join(MODELS_DIR, entry.name))
.filter((file) => file.endsWith(".toml"))
.map((file) => `${entry.name}/${file.slice(0, -".toml".length)}`);
});
} catch {
allModelMetadataIDs = [];
}
return allModelMetadataIDs;
}
function canonicalBaseModelOverride(openrouterID: string) {
@@ -358,10 +407,18 @@ function normalizeModelSlug(value: string) {
return value.toLowerCase().replaceAll(/[^a-z0-9]/g, "");
}
type BaseModelOverrides = Omit<Partial<SyncedFullModel>, "limit" | "modalities"> & {
limit?: Partial<SyncedFullModel["limit"]>;
modalities?: {
input?: SyncedFullModel["modalities"]["input"];
output?: SyncedFullModel["modalities"]["output"];
};
};
export function factorBaseModel(
modelID: string,
values: Partial<SyncedFullModel>,
limit: SyncedFullModel["limit"],
values: BaseModelOverrides,
limit?: Partial<SyncedFullModel["limit"]>,
existingOmit?: string[],
): SyncedModel {
return {
@@ -373,14 +430,16 @@ export function factorBaseModel(
function baseModelOmit(
modelID: string,
limit: SyncedFullModel["limit"],
limit: Partial<SyncedFullModel["limit"]> | undefined,
) {
if (limit === undefined) return undefined;
const metadata = modelMetadata(modelID);
const omit: string[] = [];
const baseLimit = metadata.limit;
if (
isPlainObject(baseLimit) &&
baseLimit.input !== undefined &&
limit.context !== undefined &&
limit.input === undefined &&
baseLimit.context !== limit.context
) {
@@ -392,7 +451,7 @@ function baseModelOmit(
function baseModelOverrides(
modelID: string,
values: Partial<SyncedFullModel>,
values: BaseModelOverrides,
) {
const metadata = modelMetadata(modelID);
const result: Record<string, unknown> = {};
+896 -1
View File
@@ -1,5 +1,5 @@
import { expect, test } from "bun:test";
import { mkdtemp, readFile, rm } from "node:fs/promises";
import { mkdir, mkdtemp, readFile, rm } from "node:fs/promises";
import { tmpdir } from "node:os";
import path from "node:path";
@@ -19,6 +19,7 @@ import {
resolveDigitalOceanBaseModel,
type DigitalOceanSourceModel,
} from "../src/sync/providers/digitalocean.js";
import { buildHyperModel, type HyperModel } from "../src/sync/providers/hyper.js";
import {
buildEmpiriolabsModel,
empiriolabs,
@@ -32,6 +33,21 @@ import {
type OpenRouterModel,
} from "../src/sync/providers/openrouter.js";
import { buildLLMGatewayModel, type LLMGatewayModel } from "../src/sync/providers/llmgateway.js";
import {
buildMergeGatewayModel,
fetchMergeGatewayModels,
mergeGateway,
MergeGatewayResponse,
selectMergeGatewayVendor,
type MergeGatewayModel,
} from "../src/sync/providers/merge-gateway.js";
import {
buildNanoGptModel,
nanoGpt,
NanoGptResponse,
resolveNanoGptBaseModel,
type NanoGptModel,
} from "../src/sync/providers/nano-gpt.js";
import { openai, parseOpenAIModels } from "../src/sync/providers/openai.js";
import { pioneer } from "../src/sync/providers/pioneer.js";
import { google, shouldTrackGoogleModel } from "../src/sync/providers/google.js";
@@ -68,6 +84,383 @@ function anthropicModel(overrides: Partial<AnthropicModel> = {}): AnthropicModel
};
}
function nanoGptModel(overrides: Partial<NanoGptModel> = {}): NanoGptModel {
return {
id: "example/reasoning-model",
name: "Example Reasoning Model",
description: "Example model used to test NanoGPT catalog translation",
created: Date.parse("2026-06-01T00:00:00Z") / 1_000,
owned_by: "example",
context_length: 500_000,
max_output_tokens: 64_000,
architecture: {
input_modalities: ["text"],
output_modalities: ["text"],
},
capabilities: {
reasoning: true,
tool_calling: true,
structured_output: true,
},
reasoning_efforts: ["low", "high"],
open_weights: true,
pricing: {
prompt: 0.42,
completion: 1.32,
cacheReadInputPer1kTokens: 0.000078,
},
...overrides,
};
}
test("syncs NanoGPT's verified reasoning, pricing, limits, and open-weight metadata", () => {
const model = buildNanoGptModel(nanoGptModel({
pricing: {
prompt: 0.42,
completion: 1.32,
cacheReadInputPer1kTokens: null,
},
}), {
cost: { input: 0.9, output: 2.7, cache_read: 0.2 },
limit: { context: 1_000_000, input: 1_000_000, output: 128_000 },
});
expect(model).toMatchObject({
reasoning: true,
reasoning_options: [{ type: "effort", values: ["low", "high"] }],
open_weights: true,
cost: { input: 0.42, output: 1.32, cache_read: 0.2 },
limit: { context: 500_000, input: 500_000, output: 64_000 },
});
});
test("does not invent NanoGPT reasoning controls or absent prices", () => {
const fixedReasoning = buildNanoGptModel(nanoGptModel({
id: "example/fixed-reasoner",
reasoning_efforts: null,
open_weights: null,
pricing: {
prompt: null,
completion: null,
cacheReadInputPer1kTokens: null,
cacheWriteInputPer1kTokens: null,
},
}), undefined);
const variablePricing = buildNanoGptModel(nanoGptModel({
id: "example/omni-model",
pricing: { note: "varies_by_modality" },
}), undefined);
const free = buildNanoGptModel(nanoGptModel({
id: "example/free-model",
pricing: { prompt: 0, completion: 0 },
}), undefined);
const invalid = buildNanoGptModel(nanoGptModel({
id: "example/invalid-pricing",
pricing: { prompt: -1, completion: 1, cacheReadInputPer1kTokens: -1 },
}), { cost: { input: 0.9, output: 2.7, cache_read: 0.2 } });
expect(fixedReasoning).toMatchObject({ reasoning: true, reasoning_options: [] });
expect(fixedReasoning?.cost).toBeUndefined();
expect(variablePricing?.cost).toBeUndefined();
expect(free?.cost).toEqual({ input: 0, output: 0 });
expect(invalid?.cost).toEqual({ input: 0.9, output: 2.7, cache_read: 0.2 });
});
test("accepts only NanoGPT's supported reasoning effort values", () => {
expect(NanoGptResponse.safeParse({
data: [nanoGptModel({ reasoning_efforts: ["none", "max"] })],
}).success).toBe(true);
expect(NanoGptResponse.safeParse({
data: [{ ...nanoGptModel(), reasoning_efforts: ["low", null] }],
}).success).toBe(false);
expect(NanoGptResponse.safeParse({
data: [{ ...nanoGptModel(), reasoning_efforts: ["default"] }],
}).success).toBe(false);
});
test("factors NanoGPT variants against canonical models without retaining wrong intrinsic metadata", () => {
expect(resolveNanoGptBaseModel("zai-org/glm-5.2:thinking")).toBe("zhipuai/glm-5.2");
expect(resolveNanoGptBaseModel("TEE/qwen3.6-35b-a3b")).toBe("alibaba/qwen3.6-35b-a3b");
expect(resolveNanoGptBaseModel("TEE/deepseek-v4-flash")).toBe("deepseek/deepseek-v4-flash");
expect(resolveNanoGptBaseModel("TEE/kimi-k2.5")).toBe("moonshotai/kimi-k2.5");
expect(resolveNanoGptBaseModel("TEE/gpt-oss-120b")).toBe("openai/gpt-oss-120b");
expect(resolveNanoGptBaseModel("TEE/gemma-4-31b-it")).toBe("google/gemma-4-31b-it");
expect(resolveNanoGptBaseModel("cohere/north-mini-code")).toBe("cohere/north-mini-code-1-0");
expect(resolveNanoGptBaseModel("xiaomi/mimo-v2.5-pro-ultraspeed"))
.toBe("xiaomi/mimo-v2.5-pro-ultraspeed");
expect(resolveNanoGptBaseModel("claude-haiku-4-5-20251001-thinking"))
.toBe("anthropic/claude-haiku-4-5-20251001");
expect(resolveNanoGptBaseModel("claude-sonnet-4-thinking:8192"))
.toBe("anthropic/claude-sonnet-4-0");
expect(resolveNanoGptBaseModel("anthropic/claude-opus-4.6:thinking:low"))
.toBe("anthropic/claude-opus-4-6");
expect(resolveNanoGptBaseModel("anthropic/claude-opus-4.6:thinking:thinking:max"))
.toBe("anthropic/claude-opus-4-6");
expect(resolveNanoGptBaseModel("gemini-2.5-pro")).toBe("google/gemini-2.5-pro");
expect(resolveNanoGptBaseModel("qwen3.5-27b")).toBe("alibaba/qwen3.5-27b");
expect(resolveNanoGptBaseModel("moonshotai/kimi-k2-thinking"))
.toBe("moonshotai/kimi-k2-thinking");
expect(resolveNanoGptBaseModel("qwen/qwen3-next-80b-a3b-thinking"))
.toBe("alibaba/qwen3-next-80b-a3b-thinking");
const additionalCanonicalIDs = new Map([
["poolside/laguna-s-2.1", "poolside/laguna-s-2.1"],
["poolside/laguna-s-2.1:thinking", "poolside/laguna-s-2.1"],
["longcat-2.0", "meituan/longcat-2.0"],
["longcat-2.0:thinking", "meituan/longcat-2.0"],
["stepfun-ai/step-3.5-flash-2603", "stepfun/step-3.5-flash-2603"],
["stepfun-ai/step-3.5-flash", "stepfun/step-3.5-flash"],
["Qwen/Qwen3-Next-80B-A3B-Instruct", "alibaba/qwen3-next-80b-a3b-instruct"],
["Qwen/Qwen3.6-35B-A3B", "alibaba/qwen3.6-35b-a3b"],
["Qwen/Qwen3.6-35B-A3B:thinking", "alibaba/qwen3.6-35b-a3b"],
["sonar-pro", "perplexity/sonar-pro"],
["sonar-reasoning-pro", "perplexity/sonar-reasoning-pro"],
["sonar", "perplexity/sonar"],
["zai-org/GLM-4.5:thinking", "zhipuai/glm-4.5"],
["zai-org/GLM-4.5-Air", "zhipuai/glm-4.5-air"],
["zai-org/GLM-4.5-Air:thinking", "zhipuai/glm-4.5-air"],
["poolside/laguna-m.1", "poolside/laguna-m.1"],
["nvidia/Llama-3.3-Nemotron-Super-49B-v1", "nvidia/llama-3.3-nemotron-super-49b-v1"],
["sarvam-30b", "sarvam/sarvam-30b"],
["sarvam-105b", "sarvam/sarvam-105b"],
]);
for (const [id, canonical] of additionalCanonicalIDs) {
expect(resolveNanoGptBaseModel(id)).toBe(canonical);
}
const north = buildNanoGptModel(nanoGptModel({
id: "cohere/north-mini-code",
name: "North Mini Code",
open_weights: null,
}), {
open_weights: false,
limit: { context: 256_000, input: 256_000, output: 64_000 },
});
expect(north).toMatchObject({ base_model: "cohere/north-mini-code-1-0" });
expect(north).not.toHaveProperty("open_weights");
});
test("factored NanoGPT models inherit missing intrinsic metadata without zero overrides", () => {
const sparse = buildNanoGptModel(nanoGptModel({
id: "google/gemini-2.5-pro",
name: null,
description: null,
created: null,
context_length: null,
max_output_tokens: null,
architecture: undefined,
capabilities: undefined,
reasoning_efforts: null,
open_weights: false,
pricing: undefined,
}), undefined);
expect(sparse).toMatchObject({ base_model: "google/gemini-2.5-pro" });
expect(sparse).not.toHaveProperty("name");
expect(sparse).not.toHaveProperty("family");
expect(sparse).not.toHaveProperty("release_date");
expect(sparse).not.toHaveProperty("attachment");
expect(sparse).not.toHaveProperty("reasoning");
expect(sparse).not.toHaveProperty("tool_call");
expect(sparse).not.toHaveProperty("open_weights");
expect(sparse).not.toHaveProperty("limit");
expect(sparse).not.toHaveProperty("modalities");
});
test("preserves route-specific NanoGPT names when first factoring existing models", () => {
const thinking = buildNanoGptModel(nanoGptModel({
id: "claude-opus-4-thinking:8192",
name: "Claude 4 Opus Thinking (8K)",
}), {
name: "Claude 4 Opus Thinking (8K)",
limit: { context: 200_000, input: 200_000, output: 32_000 },
});
const tee = buildNanoGptModel(nanoGptModel({
id: "TEE/glm-5",
name: "GLM 5 TEE",
}), undefined);
expect(thinking).toMatchObject({
base_model: "anthropic/claude-opus-4-0",
name: "Claude 4 Opus Thinking (8K)",
});
expect(tee).toMatchObject({
base_model: "zhipuai/glm-5",
name: "GLM 5 TEE",
});
});
test("preserves API-silent NanoGPT overrides when first factoring existing models", () => {
const model = buildNanoGptModel(nanoGptModel({
id: "anthropic/claude-sonnet-4.6",
context_length: 1_000_000,
max_output_tokens: null,
architecture: undefined,
capabilities: undefined,
reasoning_efforts: null,
}), {
reasoning: false,
structured_output: true,
limit: { context: 1_000_000, input: 1_000_000, output: 128_000 },
modalities: { input: ["text", "image", "pdf"], output: ["text"] },
});
expect(model).toMatchObject({
base_model: "anthropic/claude-sonnet-4-6",
reasoning: false,
structured_output: true,
limit: { output: 128_000 },
});
});
test("preserves explicit NanoGPT route overrides while inheriting absent base fields", () => {
const model = buildNanoGptModel(nanoGptModel({
id: "google/gemini-2.5-pro",
context_length: 500_000,
max_output_tokens: null,
architecture: { input_modalities: ["text", "image"] },
capabilities: { tool_calling: false },
open_weights: false,
}), {
provider: { body: { route: "secure" } },
experimental: {
modes: { fast: { provider: { body: { speed: "fast" } } } },
},
});
expect(model).toMatchObject({
base_model: "google/gemini-2.5-pro",
tool_call: false,
provider: { body: { route: "secure" } },
experimental: {
modes: { fast: { provider: { body: { speed: "fast" } } } },
},
limit: { context: 500_000, input: 500_000 },
modalities: { input: ["text", "image"] },
});
expect(model).not.toHaveProperty("limit.output");
expect(model).not.toHaveProperty("modalities.output");
expect(model).not.toHaveProperty("open_weights");
const textOnly = buildNanoGptModel(nanoGptModel({
id: "google/gemini-2.5-pro",
architecture: undefined,
capabilities: { vision: false },
}), undefined);
expect(textOnly).toMatchObject({
base_model: "google/gemini-2.5-pro",
attachment: false,
modalities: { input: ["text"] },
});
});
test("preserves standalone modalities and skips incomplete new standalone models", () => {
const existing = buildNanoGptModel(nanoGptModel({
id: "example/sparse-existing",
created: null,
context_length: null,
max_output_tokens: null,
architecture: undefined,
capabilities: undefined,
pricing: undefined,
}), {
release_date: "2026-01-01",
last_updated: "2026-01-01",
attachment: true,
provider: { body: { route: "secure" } },
experimental: {
modes: { fast: { provider: { body: { speed: "fast" } } } },
},
limit: { context: 100_000, input: 90_000, output: 10_000 },
modalities: { input: ["text", "image", "pdf"], output: ["text"] },
});
const missing = buildNanoGptModel(nanoGptModel({
id: "example/sparse-new",
created: null,
context_length: null,
max_output_tokens: null,
architecture: undefined,
capabilities: undefined,
pricing: undefined,
}), undefined);
expect(existing).toMatchObject({
attachment: true,
provider: { body: { route: "secure" } },
experimental: {
modes: { fast: { provider: { body: { speed: "fast" } } } },
},
limit: { context: 100_000, input: 90_000, output: 10_000 },
modalities: { input: ["text", "image", "pdf"], output: ["text"] },
});
expect(missing).toBeUndefined();
});
test("NanoGPT sync deletes missing downstream entries and never emits internal providers", () => {
const source = nanoGptModel({ providers: ["private-upstream"] });
const model = buildNanoGptModel(source, undefined);
expect((nanoGpt as SyncProvider<NanoGptModel>).deleteMissing).toBeUndefined();
expect(model).not.toHaveProperty("providers");
});
test("NanoGPT sync drops stale descriptions while first factoring existing models", async () => {
const dir = await mkdtemp(path.join(tmpdir(), "sync-nano-gpt-"));
const modelsDir = path.join(dir, "providers", "nano-gpt", "models");
const modelPath = path.join(modelsDir, "anthropic", "claude-sonnet-4.6.toml");
const metadataPath = path.join(dir, "models", "anthropic", "claude-sonnet-4-6.toml");
await mkdir(path.dirname(modelPath), { recursive: true });
await mkdir(path.dirname(metadataPath), { recursive: true });
await Bun.write(modelPath, [
'description = "Stale provider description"',
"reasoning = false",
"structured_output = true",
"",
"[limit]",
"context = 1_000_000",
"input = 1_000_000",
"output = 128_000",
"",
].join("\n"));
await Bun.write(metadataPath, [
'description = "Canonical description"',
"reasoning = true",
"",
"[limit]",
"context = 1_000_000",
"output = 64_000",
"",
].join("\n"));
try {
await syncProvider({
...nanoGpt,
modelsDir,
async fetchModels() {
return {
data: [nanoGptModel({
id: "anthropic/claude-sonnet-4.6",
description: null,
max_output_tokens: null,
capabilities: undefined,
reasoning_efforts: null,
})],
};
},
});
const content = await readFile(modelPath, "utf8");
expect(content).toContain('base_model = "anthropic/claude-sonnet-4-6"');
expect(content).not.toContain("Stale provider description");
expect(content).toContain("reasoning = false");
expect(content).toContain("structured_output = true");
expect(content).toContain("output = 128_000");
} finally {
await rm(dir, { recursive: true, force: true });
}
});
const anthropicPricingMarkdown = `
## Model pricing
@@ -791,6 +1184,66 @@ function deepInfraModel(model_name: string, tags: string[]): DeepInfraModel {
};
}
test("syncs Hyper pricing from catalog input/output fields", () => {
const model = hyperModel({
id: "minimax-m2.7",
reasoning: undefined,
pricing: {
input: 0.3,
output: 1.2,
cache_hit: 0.06,
cache_create: 0.03,
},
});
expect(buildHyperModel(model, undefined, "minimax/MiniMax-M2.7")).toMatchObject({
cost: { input: 0.3, output: 1.2, cache_read: 0.06, cache_write: 0.03 },
reasoning: false,
});
expect(buildHyperModel(model, undefined, "minimax/MiniMax-M2.7")).not.toHaveProperty("reasoning_options");
});
test("rounds Hyper pricing to six decimal places", () => {
const model = hyperModel({
id: "deepseek-v4-flash",
pricing: {
input: 0.20000010875000002,
output: 0.40000021750000003,
cache_hit: 0.039999586250000004,
},
});
expect(buildHyperModel(model, undefined, "deepseek/deepseek-v4-flash")).toMatchObject({
cost: { input: 0.2, output: 0.4, cache_read: 0.04 },
});
});
test("sets Hyper reasoning false when API omits reasoning metadata", () => {
const model = hyperModel({ id: "llama-3.3-70b-instruct", reasoning: undefined });
expect(buildHyperModel(model, undefined, "meta/llama-3.3-70b-instruct")).toMatchObject({
attachment: false,
});
expect(buildHyperModel(model, undefined, "meta/llama-3.3-70b-instruct")).not.toHaveProperty("reasoning");
expect(buildHyperModel(model, undefined, "meta/llama-3.3-70b-instruct")).not.toHaveProperty("reasoning_options");
expect(buildHyperModel(hyperModel({ id: "minimax-m2.7", reasoning: undefined }), undefined, "minimax/MiniMax-M2.7")).toMatchObject({
reasoning: false,
});
});
test("preserves existing Hyper cost when API pricing is missing", () => {
const existing = {
cost: { input: 1, output: 2 },
release_date: "2026-01-01",
last_updated: "2026-01-01",
};
expect(buildHyperModel(hyperModel({ id: "minimax-m2.7" }), existing, "minimax/MiniMax-M2.7")).toMatchObject({
cost: { input: 1, output: 2 },
});
});
test("formats interleaved as a root field before reasoning option tables", () => {
const content = formatToml({
id: "example/model",
@@ -1050,6 +1503,23 @@ test("factors OpenRouter Pro routes against canonical OpenAI metadata", () => {
expect("release_date" in model).toBe(false);
});
// Ensures Merge Gateway namespaces reuse the matching canonical model metadata.
test("resolves Merge Gateway provider aliases to canonical metadata", () => {
expect([
resolveCanonicalBaseModel("moonshot/kimi-k2.5"),
resolveCanonicalBaseModel("moonshot/kimi-k2.6"),
resolveCanonicalBaseModel("moonshot/kimi-k2.7-code"),
resolveCanonicalBaseModel("moonshot/kimi-k2.7-code-highspeed"),
resolveCanonicalBaseModel("sakana/fugu-ultra"),
]).toEqual([
"moonshotai/kimi-k2.5",
"moonshotai/kimi-k2.6",
"moonshotai/kimi-k2.7-code",
"moonshotai/kimi-k2.7-code-highspeed",
"sakana/fugu-ultra",
]);
});
test("resolves Venice Pro routes to canonical OpenAI metadata", () => {
expect([
resolveVeniceBaseModel("openai-gpt-56-luna-pro", "GPT-5.6 Luna Pro"),
@@ -1188,6 +1658,376 @@ test("factors aliased LLM Gateway routes against canonical metadata", () => {
});
});
// Ensures catalog pagination preserves authentication and returns every page.
test("fetches every page of the Merge Gateway catalog", async () => {
const requests: string[] = [];
const authorizations: string[] = [];
const fetcher = ((input: string | URL | Request, init?: RequestInit) => {
const url = String(input);
requests.push(url);
authorizations.push(new Headers(init?.headers).get("Authorization") ?? "");
const next = url.includes("cursor=next-page");
return Promise.resolve(new Response(JSON.stringify({
object: "list",
data: [mergeGatewayModel({
model: next ? "openai/gpt-5.6-terra" : "openai/gpt-5.6-sol",
display_name: next ? "GPT-5.6 Terra" : "GPT-5.6 Sol",
})],
has_more: !next,
next_cursor: next ? null : "next-page",
})));
}) as typeof fetch;
const result = await fetchMergeGatewayModels(fetcher, "test-key");
expect(result.data.map((model) => model.model)).toEqual([
"openai/gpt-5.6-sol",
"openai/gpt-5.6-terra",
]);
expect(requests).toHaveLength(2);
expect(requests[0]).toContain("limit=500");
expect(requests[1]).toContain("cursor=next-page");
expect(authorizations).toEqual(["Bearer test-key", "Bearer test-key"]);
});
// Prevents pagination overlap from publishing the same model ID twice.
test("rejects duplicate Merge Gateway model IDs across pages", async () => {
const fetcher = ((input: string | URL | Request) => {
const next = String(input).includes("cursor=next-page");
return Promise.resolve(new Response(JSON.stringify({
object: "list",
data: [mergeGatewayModel()],
has_more: !next,
next_cursor: next ? null : "next-page",
})));
}) as typeof fetch;
expect(fetchMergeGatewayModels(fetcher, "test-key")).rejects.toThrow(
"Merge Gateway returned duplicate model ID: openai/gpt-5.6-sol",
);
});
// Rejects API records whose provider disagrees with the model ID namespace.
test("rejects Merge Gateway provider and model namespace mismatches", () => {
expect(() => MergeGatewayResponse.parse({
object: "list",
data: [mergeGatewayModel({ provider: "anthropic" })],
has_more: false,
next_cursor: null,
})).toThrow("Model namespace openai does not match provider anthropic");
});
// Keeps audio-capable records valid when the API advertises audio input.
test("accepts audio modalities from the Merge Gateway catalog", () => {
const model = mergeGatewayModel();
model.vendors.openai.capabilities.input.push("audio");
expect(MergeGatewayResponse.parse({
object: "list",
data: [model],
has_more: false,
next_cursor: null,
}).data[0]?.vendors.openai.capabilities.input).toContain("audio");
});
// Emits only route-specific overrides when canonical metadata already matches.
test("factors Merge Gateway GPT-5.6 Sol against canonical metadata", () => {
const model = buildMergeGatewayModel(mergeGatewayModel(), undefined);
expect(model).toEqual({
base_model: "openai/gpt-5.6-sol",
cost: {
input: 5,
output: 30,
},
});
});
// Protects curated reasoning metadata from an unreliable negative API signal.
test("preserves curated reasoning when Merge Gateway routes report supports_reasoning = false", () => {
// `supports_reasoning = false` is a positive-only signal: the field is
// undocumented in the public schema and inconsistently populated across
// vendor routes, so it must not erase curated reasoning metadata.
const vendor = mergeGatewayVendor();
vendor.capabilities.supports_reasoning = false;
const model = buildMergeGatewayModel(mergeGatewayModel({
vendors: { openai: vendor },
}), {
base_model: "openai/gpt-5.6-sol",
reasoning: true,
reasoning_options: [{ type: "effort", values: ["low", "medium", "high"] }],
cost: { input: 5, output: 30 },
});
expect(model).toMatchObject({
base_model: "openai/gpt-5.6-sol",
reasoning_options: [{ type: "effort", values: ["low", "medium", "high"] }],
});
expect(model).not.toMatchObject({ reasoning: false });
});
// Treats a positive signal from any available route as model-level confirmation.
test("confirms reasoning when any available Merge Gateway route reports supports_reasoning = true", () => {
const selected = mergeGatewayVendor();
selected.capabilities.supports_reasoning = false;
const confirming = mergeGatewayVendor({
pricing: { currency: "USD", input_per_million: 9, output_per_million: 45 },
});
confirming.capabilities.supports_reasoning = true;
confirming.capabilities.reasoning = {
configurable: false,
disable_supported: false,
default_enabled: true,
controls: [],
output_style: "reasoning_content",
};
const model = buildMergeGatewayModel(mergeGatewayModel({
vendors: { openai: selected, fireworks: confirming },
}), {
base_model: "openai/gpt-5.6-sol",
cost: { input: 5, output: 30 },
});
// The model reasons on the gateway with no verified caller control.
expect(model).toMatchObject({ reasoning_options: [] });
expect(model).not.toMatchObject({ reasoning: false });
});
// Publishes a toggle only when the selected route explicitly supports disabling reasoning.
test("derives a Merge Gateway reasoning toggle when the selected route supports disabling", () => {
const selected = mergeGatewayVendor();
selected.capabilities.reasoning = {
configurable: true,
disable_supported: true,
default_enabled: true,
controls: ["thinking"],
output_style: "reasoning_content",
};
const model = buildMergeGatewayModel(mergeGatewayModel({
vendors: { openai: selected },
}), {
base_model: "openai/gpt-5.6-sol",
reasoning: true,
reasoning_options: [],
cost: { input: 5, output: 30 },
});
expect(model).toMatchObject({ reasoning_options: [{ type: "toggle" }] });
});
// Prevents deprecated routes from contributing capabilities to an available model.
test("ignores supports_reasoning = true on unavailable Merge Gateway routes", () => {
const selected = mergeGatewayVendor();
selected.capabilities.supports_reasoning = false;
const deprecated = mergeGatewayVendor({ availability_status: "deprecated" });
deprecated.capabilities.supports_reasoning = true;
const model = buildMergeGatewayModel(mergeGatewayModel({
vendors: { openai: selected, legacy: deprecated },
}), {
base_model: "openai/gpt-5.6-sol",
cost: { input: 5, output: 30 },
});
expect(model).not.toHaveProperty("reasoning_options");
});
// Updates API-provided cache prices without discarding curated cache fields.
test("merges authoritative Merge Gateway cache pricing field by field", () => {
const model = buildMergeGatewayModel(mergeGatewayModel({
vendors: {
openai: mergeGatewayVendor({
pricing: {
currency: "USD",
input_per_million: 3.75,
output_per_million: 22.5,
},
prompt_caching: {
mode: "automatic",
cache_read_cost_per_million: 0.375,
},
}),
},
}), {
base_model: "openai/gpt-5.6-sol",
cost: {
input: 5,
output: 30,
cache_read: 0.5,
cache_write: 6.25,
},
});
expect(model).toEqual({
base_model: "openai/gpt-5.6-sol",
cost: {
input: 3.75,
output: 22.5,
cache_read: 0.375,
cache_write: 6.25,
},
});
});
// Retains curated cache prices when the API confirms caching but omits prices.
test("preserves Merge Gateway cache pricing when prompt caching exposes only its mode", () => {
const model = buildMergeGatewayModel(mergeGatewayModel({
vendors: {
openai: mergeGatewayVendor({
prompt_caching: { mode: "automatic" },
}),
},
}), {
base_model: "openai/gpt-5.6-sol",
cost: {
input: 5,
output: 30,
cache_read: 0.5,
cache_write: 6.25,
},
});
expect(model).toMatchObject({
cost: {
cache_read: 0.5,
cache_write: 6.25,
},
});
});
// Removes inherited cache prices when the selected route explicitly disables caching.
test("removes Merge Gateway cache pricing when prompt caching mode is none", () => {
const model = buildMergeGatewayModel(mergeGatewayModel({
vendors: {
openai: mergeGatewayVendor({
prompt_caching: { mode: "none" },
}),
},
}), {
base_model: "openai/gpt-5.6-sol",
cost: {
input: 5,
output: 30,
cache_read: 0.5,
cache_write: 6.25,
},
});
expect(model).toMatchObject({
cost: { input: 5, output: 30 },
});
expect(model.cost).not.toHaveProperty("cache_read");
expect(model.cost).not.toHaveProperty("cache_write");
});
// Avoids overriding a curated name with a display value that is effectively an ID.
test("inherits canonical names for ID-shaped Merge Gateway display names", () => {
const model = buildMergeGatewayModel(mergeGatewayModel({
model: "minimax/minimax-m2",
provider: "minimax",
display_name: "MiniMaxAI/MiniMax-M2",
vendors: { minimax: mergeGatewayVendor() },
}), undefined);
expect(model).not.toHaveProperty("name");
});
// Avoids overriding a curated name with an unformatted model slug.
test("inherits canonical names for slug-shaped Merge Gateway display names", () => {
const model = buildMergeGatewayModel(mergeGatewayModel({
model: "openai/gpt-oss-safeguard-120b",
display_name: "gpt-oss-safeguard-120b",
vendors: { openai: mergeGatewayVendor() },
}), undefined);
expect(model).not.toHaveProperty("name");
});
// Removes a canonical input limit that exceeds the selected route's context window.
test("omits inherited input limits above the Merge Gateway context", () => {
const model = buildMergeGatewayModel(mergeGatewayModel({
model: "openai/gpt-5-chat-latest",
display_name: "GPT-5 Chat Latest",
vendors: {
openai: mergeGatewayVendor({
context_window: 128_000,
max_output_tokens: 16_384,
}),
},
}), {
base_model: "openai/gpt-5-chat-latest",
limit: {
context: 128_000,
input: 272_000,
output: 16_384,
},
}, {
base_model: "openai/gpt-5-chat-latest",
limit: {
context: 128_000,
output: 16_384,
},
});
expect(model).toHaveProperty("base_model_omit", ["limit.input"]);
});
// Prefers the model provider's own route over alternate vendors.
test("uses the canonical Merge Gateway vendor as the catalog baseline", () => {
const model = mergeGatewayModel({
vendors: {
azure: mergeGatewayVendor({ context_window: 200_000 }),
openai: mergeGatewayVendor({ context_window: 1_050_000 }),
},
});
expect(selectMergeGatewayVendor(model)).toMatchObject({
id: "openai",
info: { context_window: 1_050_000 },
});
});
// Falls back to the lowest-cost available route when the canonical vendor is absent.
test("uses Merge Gateway's cheapest fallback route when no canonical route exists", () => {
const model = mergeGatewayModel({
provider: "qwen",
vendors: {
bedrock: mergeGatewayVendor({
pricing: { currency: "USD", input_per_million: 0.15, output_per_million: 0.6 },
}),
alibaba: mergeGatewayVendor({
pricing: { currency: "USD", input_per_million: 0.287, output_per_million: 0.64 },
}),
},
});
expect(selectMergeGatewayVendor(model)).toMatchObject({
id: "bedrock",
info: { pricing: { input_per_million: 0.15, output_per_million: 0.6 } },
});
});
// Keeps API insertion order deterministic when fallback routes have equal prices.
test("uses Merge Gateway's CMS order to break equal-cost fallback ties", () => {
const model = mergeGatewayModel({
provider: "qwen",
vendors: {
empiriolabs: mergeGatewayVendor({
pricing: { currency: "USD", input_per_million: 0.4, output_per_million: 1.6 },
}),
fireworks: mergeGatewayVendor({
pricing: { currency: "USD", input_per_million: 0.4, output_per_million: 1.6 },
}),
},
});
expect(selectMergeGatewayVendor(model)).toMatchObject({ id: "empiriolabs" });
});
// Prevents a scoped API response from deleting catalog entries it cannot see.
test("retains Merge Gateway models missing from an API-key-scoped response", () => {
expect(mergeGateway.deleteMissing).toBe(false);
});
test("parses Vercel pricing tiers with an implicit zero minimum", () => {
const [model] = vercel.parseModels({
data: [{
@@ -1509,6 +2349,61 @@ function llmGatewayModel(overrides: Partial<LLMGatewayModel> = {}): LLMGatewayMo
};
}
function mergeGatewayVendor(
overrides: Partial<MergeGatewayModel["vendors"][string]> = {},
): MergeGatewayModel["vendors"][string] {
return {
launch_date: "2026-07-09",
context_window: 1_050_000,
max_output_tokens: 128_000,
availability_status: "available",
capabilities: {
input: ["text", "image", "document"],
output: ["text", "tool_use"],
supports_tool_calling: true,
supports_tool_choice: true,
supports_structured_outputs: true,
streaming: true,
},
pricing: {
currency: "USD",
input_per_million: 5,
output_per_million: 30,
},
...overrides,
};
}
function mergeGatewayModel(overrides: Partial<MergeGatewayModel> = {}): MergeGatewayModel {
return {
model: "openai/gpt-5.6-sol",
provider: "openai",
display_name: "GPT-5.6 Sol",
vendors: { openai: mergeGatewayVendor() },
availability_status: "available",
created_at: "2026-07-09T00:00:00Z",
updated_at: "2026-07-09T00:00:00Z",
...overrides,
};
}
function hyperModel(overrides: Partial<HyperModel> = {}): HyperModel {
return {
id: "deepseek-v4-flash",
created: 1_780_592_628,
display_name: "DeepSeek V4 Flash",
reasoning: {
effort_levels: [
{ value: "high" },
{ value: "xhigh" },
],
},
context_window: 1_000_000,
max_output_tokens: 384_000,
...overrides,
};
}
function openRouterModel(overrides: Partial<OpenRouterModel> = {}): OpenRouterModel {
return {
id: "anthropic/claude-sonnet-5",
@@ -0,0 +1,42 @@
# Sources (accessed 2026-07-28):
# - Model card, limits (1M context, 999,990 max output), capabilities, GLM-5.2 base:
# https://docs.abliteration.ai/models
# - Reasoning effort ladder and per-endpoint request fields:
# https://docs.abliteration.ai/capabilities/thinking
# - Pricing ($5 per 1M tokens, flat input + output):
# https://docs.abliteration.ai/pricing
# https://abliteration.ai/pricing#api-pricing
# - Launch announcement (base model, fine-tuning, benchmarks):
# https://abliteration.ai/blog/introducing-abliterated-model-large
name = "Abliterated Model Large"
description = "GLM-5.2 model abliterated and finetuned for cyber, ML red teaming, and agent testing"
release_date = "2026-07-25"
last_updated = "2026-07-28"
attachment = false
reasoning = true
tool_call = true
structured_output = true
temperature = true
open_weights = false
# Two distinct reasoning depths: high and max. The API also accepts the other
# ladder values as aliases, mapping minimal-high -> high and xhigh-max -> max.
[[reasoning_options]]
type = "effort" # API: {"reasoning_effort": "<value>"} on /v1/chat/completions
values = ["none", "high", "max"]
[[reasoning_options]]
type = "toggle" # API: {"thinking": false} on /v1/messages (legacy alias on /v1/chat/completions)
[cost]
input = 5.00
output = 5.00
[limit]
context = 1_000_000
input = 1_000_000
output = 999_990
[modalities]
input = ["text"]
output = ["text"]
@@ -1,20 +1,27 @@
# Sources (accessed 2026-07-28):
# - Model card and capabilities: https://docs.abliteration.ai/models
# - Reasoning effort ladder and per-endpoint request fields (reasoning on by
# default; "none" disables; top-level thinking:false disables on
# /v1/messages and as a legacy alias on /v1/chat/completions):
# https://docs.abliteration.ai/capabilities/thinking
name = "Abliterated Model"
description = "Multimodal model for analyzing text, images, documents, and rich media"
# Reasoning HTTP format (accessed 2026-06-25):
# This model thinks by default. On POST /v1/chat/completions or /v1/messages,
# top-level `thinking: false` skips thinking; omission keeps it enabled.
# Sources:
# https://docs.abliteration.ai/models
# https://docs.abliteration.ai/capabilities/thinking
release_date = "2026-01-06"
last_updated = "2026-01-06"
last_updated = "2026-07-28"
attachment = true
reasoning = false
reasoning = true
tool_call = true
structured_output = false
temperature = true
open_weights = true
[[reasoning_options]]
type = "effort" # API: {"reasoning_effort": "<value>"} on /v1/chat/completions
values = ["none", "minimal", "low", "medium", "high", "xhigh", "max"]
[[reasoning_options]]
type = "toggle" # API: {"thinking": false} on /v1/messages (legacy alias on /v1/chat/completions)
[cost]
input = 3.00
output = 3.00
+11 -7
View File
@@ -1,12 +1,16 @@
# Reasoning controls for the whole API surface (verified 2026-07-28):
# https://docs.abliteration.ai/capabilities/thinking
# Both models reason by default. Effort ladder, least to most:
# none (disables reasoning), minimal, low, medium, high, xhigh, max.
# Request field per endpoint:
# - POST /v1/chat/completions: top-level "reasoning_effort": "<level>"
# (legacy top-level "thinking": false also disables reasoning)
# - POST /v1/responses: "reasoning": { "effort": "<level>" }
# - POST /v1/messages: "output_config": { "effort": "<level>" } or
# "thinking": { "type": "enabled", "budget_tokens": <n> };
# "thinking": false disables reasoning
name = "abliteration.ai"
env = ["ABLIT_KEY"]
npm = "@ai-sdk/openai-compatible"
# Reasoning HTTP format (accessed 2026-06-25):
# POST /v1/chat/completions and POST /v1/messages: top-level `thinking` is true
# by default; false skips thinking. POST /v1/responses has no thinking toggle.
# No effort or numeric reasoning-budget request field is documented.
# Sources:
# https://docs.abliteration.ai/capabilities/thinking
# https://docs.abliteration.ai/compatibility-matrix
api = "https://api.abliteration.ai/v1"
doc = "https://docs.abliteration.ai/models"
+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 1280" fill="currentColor">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 471 1280 430" width="24" height="24" fill="currentColor">
<g transform="translate(0 430)">
<path d="m1036.05 174.114 102.7-59.232 27.43 45.579c-140.14 75.45-215.743 92.363-192.311 166.512 35.811 65.478 124.001 31.082 146.991 2.463l-70.6-67.493 42.37-23.43c16.5 16.189 56.74 54.391 62.04 59.247 3.54-1.734 16.73-9.813 20-31.494h58.22c-14.86 33.303-28.14 42.07-41.99 63.027l78.56 80.071h-68.68l-41.87-41.008c-102.57 84.123-227.969 43.61-244.725-27.506-20.512-87.072 40.084-129.654 72.947-140.061l-60.566-59.407 40.229-30.788z"/><path d="m1036.63 168.825 103.63-59.764 31.92 53.045-3.97 2.133c-35.1 18.898-66.18 34.144-92.56 47.473-26.46 13.367-48.07 24.753-64.54 36.034-16.493 11.29-27.372 22.169-32.878 34.311-5.393 11.892-5.894 25.599-.394 43.228 16.822 30.395 45.632 37.773 73.752 33.954 14.16-1.922 27.99-6.69 39.67-12.719 9.99-5.159 18.2-11.133 23.65-16.829l-71.83-68.678 50.27-27.802 2.28 2.239c14.96 14.668 49.44 47.446 59.63 56.991 4.51-3.073 12.75-10.777 15.16-26.813l.55-3.653h68.53l-2.69 6.039c-7.59 17.006-14.81 27.813-21.89 37.013-6.49 8.43-12.38 14.952-18.5 23.766l83.27 84.862h-80.66l-40.4-39.564c-51.46 40.852-108.42 51.515-155.04 42.947-47.298-8.693-84.683-37.436-93.581-75.205-10.543-44.75-.266-78.449 17.17-102.295 15.196-20.783 35.684-33.899 52.071-40.471l-59.221-58.087L967.044 105zm-103.529-27.043 62.132 60.942-6.805 2.155c-15.704 4.973-38.249 17.742-54.321 39.723-15.95 21.815-25.715 52.943-15.745 95.263 7.857 33.348 41.551 60.42 86.778 68.732 45.01 8.271 100.72-2.284 151.05-43.558l2.97-2.441 43.37 42.475h56.71l-73.83-75.252 1.91-2.894c7.03-10.63 14.15-18.506 20.8-27.136 5.86-7.615 11.81-16.351 18.04-29.234h-47.91c-4.39 20.767-17.52 29.015-21.69 31.055l-2.62 1.289-2.16-1.976c-5.12-4.687-42.19-39.874-59.87-57.113l-34.46 19.062 69.22 66.18-2.47 3.07c-6.24 7.773-16.62 15.627-29.01 22.022-12.44 6.423-27.2 11.528-42.44 13.597-30.56 4.149-63.629-3.94-82.646-38.711l-.2-.367-.127-.398c-6.084-19.255-5.892-35.353.639-49.755 6.458-14.241 18.845-26.21 35.844-37.848 17.01-11.647 39.12-23.271 65.52-36.612 25.47-12.872 55.05-27.396 88.4-45.244l-22.93-38.105-101.78 58.7-68.924-63.215zM859.42 416.999h-71.842V118.77h71.842z"/><ellipse cx="823.5" cy="41" rx="45.5" ry="41"/><path d="M562.718 418q-37.308 0-61.977-12.41-24.672-12.409-36.705-33.091C452.003 351.817 452 343.743 452 327.59q0-28.363 14.442-49.044 15.044-20.683 43.925-31.909 28.885-11.82 71.004-11.819h76.422q0-23.636-6.619-39-6.62-15.954-20.459-23.636-13.841-7.682-35.502-7.682-24.673 0-42.121 11.227-17.453 10.636-21.663 33.091h-71.006q3.613-31.91 21.663-54.363 18.053-23.046 47.537-35.455 30.087-13 65.59-13 42.723 0 72.807 14.773 30.087 14.181 45.734 41.363Q730 188.728 730 226.546V410.91h-61.377l-7.22-47.864q-6.018 11.819-15.646 21.863-9.024 10.046-21.061 17.727-12.035 7.091-27.679 11.227-15.044 4.138-34.299 4.137m16.246-56.136q17.453 0 30.689-5.91 13.84-6.5 23.468-17.727 10.229-11.817 15.646-25.999 5.415-14.183 7.22-30.137v-1.182h-66.793q-21.06 0-34.899 5.317-13.84 4.73-19.859 14.182-6.015 9.456-6.016 21.865 0 12.409 6.016 21.272 6.02 8.865 17.452 13.592t27.076 4.727M347.361 144.73c11.758-9.086 28.639-.54 28.639 14.498v240.577c0 10.049-7.991 18.195-17.852 18.195H347.19a4.16 4.16 0 0 1-3.016-1.303l-69.965-73.545c-5.775-6.07-15.036-6.935-21.798-2.034l-104.986 76.09a4.15 4.15 0 0 1-2.434.792H46.885c-17.106-.002-24.416-22.157-10.786-32.693z"/><path d="M348.028 5.818c9.296-7.073 22.68.092 21.943 12.195l-4.377 71.729c-.254 4.158-2.288 7.974-5.534 10.441L21.965 357.192C12.975 364.026 0 357.569 0 345.873V277.68c0-4.473 2.072-8.662 5.557-11.315z"/>
</g>

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

@@ -1,20 +0,0 @@
# Source: https://docs.aiand.com/models/catalog/ (USD list prices; accessed
# 2026-07-24). The catalog lists this model with vision + document but not
# video, so modalities are overridden from the shared base model's
# text+image+video. Not runtime-verified: model access is org-scoped and not
# enabled for the contributing org; kimi-k2.7-code (same capability set) was
# verified by direct probe — image and PDF accepted, video rejected.
# reasoning_options is left empty rather than assumed: the gpt-oss-120b
# deployment proved the gateway-wide documented effort set is not guaranteed
# per model, and this model could not be probed.
base_model = "moonshotai/kimi-k2.6"
reasoning_options = []
[cost]
input = 0.85
output = 3.50
[modalities]
input = ["text", "image", "pdf"]
output = ["text"]
@@ -0,0 +1,24 @@
# Source: GET https://api.aiand.com/v1/models (USD list prices; accessed
# 2026-07-28). Pricing is aiand-specific: $3.00 input, $0.50 cache_read,
# $12.50 output (differs from Moonshot official rates).
# Modalities: text + image + pdf accepted per GET /v1/models; video rejected
# ("does not support video input") — overridden from shared base
# text+image+video. PDF kept: sibling aiand Moonshot entries (kimi-k2.6,
# kimi-k2.7-code) include pdf after catalog/probe evidence; aiand treats
# PDF as a provider-level Files API modality.
# reasoning_effort verified live: gateway schema accepts
# none/minimal/low/medium/high/xhigh/max, but the K3 backend only accepts
# none/low/high/max (minimal/medium/xhigh rejected). Invalid values rejected
# with 400 (negative control).
base_model = "moonshotai/kimi-k3"
reasoning_options = [{ type = "effort", values = ["none", "low", "high", "max"] }]
[cost]
input = 3.00
cache_read = 0.50
output = 12.50
[modalities]
input = ["text", "image", "pdf"]
output = ["text"]
@@ -1,17 +0,0 @@
# Source: https://docs.aiand.com/models/catalog/ (USD list prices; accessed
# 2026-07-24). Not runtime-verifiable: model access is org-scoped and not
# enabled for the contributing org (it does not appear in our GET /v1/models),
# so per-model reasoning_effort support could not be probed — the gpt-oss-120b
# deployment proved the gateway-wide documented set is not guaranteed per
# model, so reasoning_options is left empty rather than assumed.
# The catalog shows a rounded context of "203K"; the exact context_window is
# only visible via GET /v1/models for orgs with access, so context is left
# inherited from the shared base model (200_000) rather than guessed — it may
# understate the live window by ~3K.
base_model = "zhipuai/glm-5.1"
reasoning_options = []
[cost]
input = 1.40
output = 4.40
+26
View File
@@ -0,0 +1,26 @@
# AIHubMix model page documents Kimi K3 pricing, supported input modalities
# (text, vision, video), and a 1M-token context window.
# Source accessed 2026-07-27:
# https://aihubmix.com/model/kimi-k3
base_model = "moonshotai/kimi-k3"
last_updated = "2026-07-27"
[interleaved]
field = "reasoning_content"
[[reasoning_options]]
type = "toggle"
[[reasoning_options]]
type = "effort"
values = ["low", "high", "max"]
[cost]
input = 3.00
output = 15.00
cache_read = 0.30
[modalities]
input = ["text", "image", "video"]
output = ["text"]
@@ -5,7 +5,7 @@ temperature = true
reasoning_options = []
[cost]
input = 0.75
input = 0.73
output = 3.5
cache_read = 0.15
cache_write = 0
@@ -0,0 +1,14 @@
base_model = "moonshotai/kimi-k3"
description = "Kimi multimodal agent model for visual understanding, coding, and planning"
temperature = true
reasoning_options = []
[cost]
input = 3
output = 15
[limit]
output = 262_144
[modalities]
input = ["text", "image"]
@@ -19,4 +19,4 @@ cache_read = 0.21
[limit]
context = 524_288
output = 524_288
output = 262_144
@@ -16,5 +16,5 @@ output = 4.4
cache_read = 0.3
[limit]
context = 524_288
output = 524_288
context = 1_048_576
output = 262_144
@@ -0,0 +1,27 @@
# Kimi K3 always thinks and cannot disable it; reasoning_effort only controls
# depth. K3's native levels are low/high/max (default max). The Berget API also
# accepts the other OpenAI effort levels for compatibility and clamps them onto
# these three, but only the three distinct levels are advertised here.
# Reasoning is returned in message.reasoning_content, the answer in
# message.content.
# https://api.berget.ai/openapi.json
base_model = "moonshotai/kimi-k3"
release_date = "2026-07-27"
last_updated = "2026-07-28"
reasoning_options = [{ type = "effort", values = ["low", "high", "max"] }]
[interleaved]
field = "reasoning_content"
[cost]
input = 3.0
output = 15.0
[limit]
context = 327_680
output = 32_768
[modalities]
input = ["text", "image"]
output = ["text"]
@@ -0,0 +1,15 @@
base_model = "moonshotai/kimi-k3"
name = "Kimi K3 TEE"
description = "Kimi multimodal agent model for visual understanding, coding, and planning"
release_date = "2026-07-29"
last_updated = "2026-07-29"
temperature = true
reasoning_options = []
[cost]
input = 3
output = 15
cache_read = 1.5
[limit]
output = 65_535
@@ -0,0 +1,8 @@
base_model = "anthropic/claude-opus-5"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
[cost]
input = 5
output = 25
cache_read = 0.5
cache_write = 6.25
+15
View File
@@ -0,0 +1,15 @@
# Cortecs lists EUR 2.693 input and EUR 13.464 output per million tokens.
# Converted at 1 EUR = 1.114 USD and rounded to the provider's displayed USD rates.
# https://api.cortecs.ai/v1/models (accessed 2026-07-29)
base_model = "moonshotai/kimi-k3"
reasoning_options = []
[interleaved]
field = "reasoning_content"
[cost]
input = 3
output = 15
[modalities]
input = ["text", "image"]
+17
View File
@@ -0,0 +1,17 @@
base_model = "moonshotai/kimi-k3"
reasoning_options = [{ type = "effort", values = ["none", "low", "high", "max"] }]
[interleaved]
field = "reasoning_content"
[cost]
input = 2
output = 8
cache_read = 0.25
[limit]
context = 1_000_000
output = 262_144
[provider]
npm = "@ai-sdk/openai-compatible"
@@ -7,7 +7,7 @@ type = "toggle"
type = "budget_tokens"
[cost]
input = 1.88
output = 5.63
cache_read = 0.375
cache_write = 2.35
input = 1.504
output = 4.504
cache_read = 0.3
cache_write = 1.88
@@ -7,14 +7,14 @@ type = "toggle"
type = "budget_tokens"
[cost]
input = 0.32
output = 1.25
cache_read = 0.032
cache_write = 0.4
input = 0.288
output = 1.125
cache_read = 0.0288
cache_write = 0.36
[[cost.tiers]]
tier = { type = "context", size = 256_000 }
input = 0.96
output = 3.75
cache_read = 0.096
cache_write = 1.2
input = 0.864
output = 3.375
cache_read = 0.0864
cache_write = 1.08
@@ -12,7 +12,7 @@ open_weights = true
reasoning_options = []
[cost]
input = 0.15
input = 0.1
output = 0.95
[limit]
@@ -0,0 +1,20 @@
# DeepInfra OpenAI chat (POST https://api.deepinfra.com/v1/openai/chat/completions)
# model = "moonshotai/Kimi-K3".
# Always-on reasoning; effort via top-level reasoning_effort = "low"|"high"|"max" (default max).
# No thinking toggle — K3 always returns reasoning_content.
# DeepInfra OpenAPI accepts max among effort values; model-native values are low/high/max.
# https://docs.deepinfra.com/api-reference/chat-completions/openai-chat-completions
# https://platform.kimi.ai/docs/guide/use-reasoning-effort
base_model = "moonshotai/kimi-k3"
[[reasoning_options]]
type = "effort"
values = ["low", "high", "max"]
[cost]
input = 2.7
output = 13.5
cache_read = 0.27
[modalities]
input = ["text", "image"]
@@ -6,3 +6,4 @@ type = "toggle"
[cost]
input = 0.05
output = 0.2
cache_read = 0.025
@@ -16,6 +16,7 @@ max = 393_216
[cost]
input = 0.14
output = 0.28
cache_read = 0.14
[limit]
output = 393_216
@@ -16,6 +16,7 @@ max = 393_216
[cost]
input = 1.65
output = 3.3
cache_read = 1.65
[limit]
output = 393_216
@@ -11,3 +11,4 @@ values = ["none", "minimal", "low", "medium", "high", "xhigh", "max"]
[cost]
input = 1.4
output = 4.4
cache_read = 1.4
@@ -4,6 +4,7 @@ reasoning_options = []
[cost]
input = 1.9
output = 8
cache_read = 1.9
[limit]
context = 256_000
@@ -4,6 +4,7 @@ reasoning_options = []
[cost]
input = 0.95
output = 4
cache_read = 0.95
[limit]
context = 256_000
@@ -7,6 +7,7 @@ values = ["low", "high", "max"]
[cost]
input = 3
output = 15
cache_read = 3
[limit]
context = 1_000_000
@@ -5,6 +5,7 @@ structured_output = true
[cost]
input = 0.15
output = 0.6
cache_read = 0.15
[limit]
output = 65_536
@@ -15,11 +15,13 @@ max = 80_000
[cost]
input = 0.115
output = 0.917
cache_read = 0.115
[[cost.tiers]]
tier = { type = "context", size = 128_000 }
input = 0.287
output = 2.294
cache_read = 0.287
[limit]
context = 256_000
@@ -15,11 +15,13 @@ max = 80_000
[cost]
input = 0.086
output = 0.688
cache_read = 0.086
[[cost.tiers]]
tier = { type = "context", size = 128_000 }
input = 0.258
output = 2.064
cache_read = 0.258
[limit]
context = 256_000
@@ -15,11 +15,13 @@ max = 80_000
[cost]
input = 0.057
output = 0.459
cache_read = 0.057
[[cost.tiers]]
tier = { type = "context", size = 128_000 }
input = 0.229
output = 1.835
cache_read = 0.229
[limit]
context = 256_000
@@ -15,11 +15,13 @@ max = 80_000
[cost]
input = 0.172
output = 1.032
cache_read = 0.172
[[cost.tiers]]
tier = { type = "context", size = 128_000 }
input = 0.43
output = 2.58
cache_read = 0.43
[limit]
context = 256_000
@@ -8,8 +8,10 @@ type = "toggle"
[cost]
input = 0.36
output = 2.21
cache_read = 0.36
[[cost.tiers]]
tier = { type = "context", size = 256_000 }
input = 1.08
output = 6.62
cache_read = 1.08
@@ -15,6 +15,7 @@ max = 80_000
[cost]
input = 0.412564
output = 2.475384
cache_read = 0.412564
[limit]
context = 256_000
@@ -15,8 +15,10 @@ max = 64_000
[cost]
input = 0.25
output = 1.5
cache_read = 0.25
[[cost.tiers]]
tier = { type = "context", size = 256_000 }
input = 1
output = 4
cache_read = 1
@@ -16,11 +16,13 @@ max = 393_216
[cost]
input = 1.31
output = 7.88
cache_read = 1.31
[[cost.tiers]]
tier = { type = "context", size = 128_000 }
input = 1.97
output = 11.82
cache_read = 1.97
[limit]
context = 256_000
@@ -7,8 +7,10 @@ type = "toggle"
[cost]
input = 0.5
output = 3
cache_read = 0.5
[[cost.tiers]]
tier = { type = "context", size = 256_000 }
input = 2
output = 6
cache_read = 2
@@ -17,3 +17,4 @@ max = 64_000
[cost]
input = 2.5
output = 7.5
cache_read = 2.5
@@ -17,11 +17,13 @@ max = 256_000
[cost]
input = 0.4
output = 1.6
cache_read = 0.4
[[cost.tiers]]
tier = { type = "context", size = 256_000 }
input = 1.2
output = 4.8
cache_read = 1.2
[limit]
output = 65_536
@@ -6,11 +6,19 @@ reasoning_options = []
[cost]
input = 1.08
output = 5.52
cache_read = 1.08
[[cost.tiers]]
tier = { type = "context", size = 32_000 }
input = 2.16
output = 11.04
cache_read = 2.16
[[cost.tiers]]
tier = { type = "context", size = 128_000 }
input = 2.7
output = 13.8
cache_read = 2.7
[limit]
context = 256_000
@@ -1,31 +0,0 @@
name = "GLM 5.1"
description = "Flagship GLM model for hybrid reasoning, coding, and agentic engineering"
# Fireworks documents thinking.type = "enabled", but no explicit disabled
# value for this model. https://docs.fireworks.ai/guides/reasoning (accessed 2026-06-25)
family = "glm"
release_date = "2026-04-01"
last_updated = "2026-04-01"
attachment = false
reasoning = true
temperature = true
tool_call = true
open_weights = true
[[reasoning_options]]
type = "toggle"
[cost]
input = 1.40
output = 4.40
cache_read = 0.26
[limit]
context = 202_800
output = 131_072
[modalities]
input = ["text"]
output = ["text"]
[interleaved]
field = "reasoning_content"
@@ -0,0 +1,25 @@
base_model = "moonshotai/kimi-k3"
release_date = "2026-07-27"
last_updated = "2026-07-27"
[[reasoning_options]]
type = "toggle"
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "high", "max"]
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[interleaved]
field = "reasoning_content"
[cost]
input = 3.0
output = 15.0
cache_read = 0.3
[modalities]
input = ["text", "image"]
@@ -1,31 +0,0 @@
name = "GLM 5.1 Fast"
description = "Efficient GLM model for fast reasoning, coding, and agent workflows"
# No router-specific toggle mapping or explicit disabled value is documented.
# https://docs.fireworks.ai/guides/reasoning (accessed 2026-06-25)
family = "glm"
release_date = "2026-04-01"
last_updated = "2026-04-01"
attachment = false
reasoning = true
temperature = true
tool_call = true
open_weights = true
[[reasoning_options]]
type = "toggle"
[cost]
input = 2.80
output = 8.80
cache_read = 0.52
[limit]
context = 202_800
output = 131_072
[modalities]
input = ["text"]
output = ["text"]
[interleaved]
field = "reasoning_content"
@@ -0,0 +1,26 @@
base_model = "moonshotai/kimi-k3"
name = "Kimi K3 Fast"
release_date = "2026-07-27"
last_updated = "2026-07-27"
[[reasoning_options]]
type = "toggle"
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "high", "max"]
[[reasoning_options]]
type = "budget_tokens"
min = 1_024
[interleaved]
field = "reasoning_content"
[cost]
input = 4.5
output = 22.5
cache_read = 0.45
[modalities]
input = ["text", "image"]
@@ -0,0 +1,9 @@
base_model = "anthropic/claude-opus-5"
name = "Agentic Chat (Claude Opus 5)"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
+6
View File
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">
<g transform="translate(52.773 52.773)">
<path fill-rule="nonzero" d="M202.973241,0 C90.8738026,0 0,90.8738026 0,202.973241 C0,315.071647 90.8738026,405.946482 202.973241,405.946482 C315.072679,405.946482 405.946482,315.071647 405.946482,202.973241 C405.946482,90.8738026 315.072679,0 202.973241,0 Z M209.400727,313.931946 C148.680541,313.931946 99.456888,264.405194 99.456888,203.31153 C99.456888,142.217071 148.680541,92.6911133 209.400727,92.6911133 C270.120913,92.6911133 319.344566,142.217071 319.344566,203.31153 C319.344566,264.405194 270.120913,313.931946 209.400727,313.931946 Z"/>
<path fill-rule="nonzero" d="M267.150198,372.117608 C174.936176,372.117608 100.181324,296.38875 100.181324,202.973241 C100.181324,109.556698 174.936176,33.8288735 267.150198,33.8288735 C287.766533,33.8288735 307.424917,37.7942264 325.655545,44.716304 C291.333374,16.7946808 247.808754,0 200.362649,0 C89.7050059,0 0,90.8738026 0,202.973241 C0,315.071647 89.7050059,405.946482 200.362649,405.946482 C247.808754,405.946482 291.333374,389.152833 325.655545,361.230178 C307.424917,368.152255 287.766533,372.117608 267.150198,372.117608 Z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

@@ -0,0 +1,11 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "mistral/devstral-2512"
[cost]
input = 0.57
output = 2.736
[limit]
context = 200_000
output = 16_384
@@ -0,0 +1,26 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
name = "Gemma 3 27B"
description = "Google Gemma 3 multimodal model for chat, reasoning, and image understanding"
family = "gemma"
release_date = "2025-03-12"
last_updated = "2025-03-12"
attachment = true
reasoning = false
temperature = true
knowledge = "2024-08"
tool_call = true
structured_output = true
open_weights = true
[cost]
input = 0.342
output = 0.684
[limit]
context = 40_000
output = 8_192
[modalities]
input = ["text", "image"]
output = ["text"]
+11
View File
@@ -0,0 +1,11 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
# reasoning_effort: thinking is enabled by default, "none" disables it, and
# minimal/low/medium/high are accepted. See https://docs.greenpt.ai/chat-completion
base_model = "google/gemma-4-26b-a4b-it"
name = "gemma4"
reasoning_options = [{ type = "effort", values = ["none", "minimal", "low", "medium", "high"] }]
[cost]
input = 0.57
output = 1.71
+8
View File
@@ -0,0 +1,8 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "zhipuai/glm-5.1"
reasoning_options = []
[cost]
input = 1.756
output = 5.518
+8
View File
@@ -0,0 +1,8 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "zhipuai/glm-5.2"
reasoning_options = []
[cost]
input = 1.254
output = 5.016
@@ -0,0 +1,12 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "openai/gpt-oss-120b"
attachment = true
reasoning_options = []
[cost]
input = 0.228
output = 0.798
[modalities]
input = ["text", "image"]
+12
View File
@@ -0,0 +1,12 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "mistral/mistral-small-2506"
name = "Green L Raw"
attachment = true
[cost]
input = 0.285
output = 0.912
[limit]
output = 32_768
+12
View File
@@ -0,0 +1,12 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "mistral/mistral-small-2506"
name = "Green L"
attachment = true
[cost]
input = 0.285
output = 0.912
[limit]
output = 32_768
+15
View File
@@ -0,0 +1,15 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
# reasoning_effort: thinking is enabled by default, "none" disables it, and
# minimal/low/medium/high are accepted. See https://docs.greenpt.ai/chat-completion
base_model = "openai/gpt-oss-120b"
name = "Green R Raw"
attachment = true
reasoning_options = [{ type = "effort", values = ["none", "minimal", "low", "medium", "high"] }]
[cost]
input = 0.399
output = 1.083
[modalities]
input = ["text", "image"]
+15
View File
@@ -0,0 +1,15 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
# reasoning_effort: thinking is enabled by default, "none" disables it, and
# minimal/low/medium/high are accepted. See https://docs.greenpt.ai/chat-completion
base_model = "openai/gpt-oss-120b"
name = "Green R"
attachment = true
reasoning_options = [{ type = "effort", values = ["none", "minimal", "low", "medium", "high"] }]
[cost]
input = 0.399
output = 1.083
[modalities]
input = ["text", "image"]
+30
View File
@@ -0,0 +1,30 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
# Speech-to-text is billed per hour of audio and converted to a per-minute USD
# rate for this catalog. cost.input is the standard EUR 0.23/hour pre-recorded
# rate (0.23 / 60 * 1.14 = 0.00437). A 50% promotion runs through 2026-08-31
# (EUR 0.12/hour, about USD 0.00228/minute); the durable standard rate is
# published here so the catalog stays correct after the promotion ends.
# Live and multilingual tiers are priced higher and cannot be represented in
# this single-rate field.
name = "Green S Pro"
description = "GreenPT advanced speech-to-text model with multilingual transcription support"
release_date = "2025-02"
last_updated = "2025-02"
attachment = false
reasoning = false
temperature = false
tool_call = false
open_weights = false
[cost]
input = 0.00437
output = 0.0
[limit]
context = 0
output = 8_192
[modalities]
input = ["audio"]
output = ["text"]
+30
View File
@@ -0,0 +1,30 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
# Speech-to-text is billed per hour of audio and converted to a per-minute USD
# rate for this catalog. cost.input is the standard EUR 0.23/hour pre-recorded
# rate (0.23 / 60 * 1.14 = 0.00437). A 50% promotion runs through 2026-08-31
# (EUR 0.12/hour, about USD 0.00228/minute); the durable standard rate is
# published here so the catalog stays correct after the promotion ends.
# Live and multilingual tiers are priced higher and cannot be represented in
# this single-rate field.
name = "Green S"
description = "GreenPT speech-to-text model for pre-recorded and live transcription"
release_date = "2025-01"
last_updated = "2025-01"
attachment = false
reasoning = false
temperature = false
tool_call = false
open_weights = false
[cost]
input = 0.00437
output = 0.0
[limit]
context = 0
output = 8_192
[modalities]
input = ["audio"]
output = ["text"]
@@ -0,0 +1,25 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
name = "Holo2 30B A3B"
description = "H Company Holo2 vision model for GUI navigation and computer-use agents"
release_date = "2025-11"
last_updated = "2025-11"
attachment = true
reasoning = true
reasoning_options = []
temperature = true
tool_call = true
structured_output = false
open_weights = true
[cost]
input = 0.399
output = 0.969
[limit]
context = 22_016
output = 16_384
[modalities]
input = ["text", "image"]
output = ["text"]
@@ -0,0 +1,12 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "moonshotai/kimi-k2.6"
name = "Kimi K2.6 Fast"
reasoning_options = []
[cost]
input = 1.655
output = 8.778
[modalities]
input = ["text", "image"]
+11
View File
@@ -0,0 +1,11 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "moonshotai/kimi-k2.6"
reasoning_options = []
[cost]
input = 0.828
output = 4.389
[modalities]
input = ["text", "image"]
@@ -0,0 +1,12 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "moonshotai/kimi-k2.7-code"
attachment = false
reasoning_options = []
[cost]
input = 0.941
output = 4.389
[modalities]
input = ["text"]
@@ -0,0 +1,12 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "meta/llama-3.3-70b-instruct"
attachment = false
[cost]
input = 1.254
output = 1.254
[limit]
context = 100_000
output = 16_384
@@ -0,0 +1,8 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "minimax/MiniMax-M2.5"
reasoning_options = []
[cost]
input = 0.188
output = 1.129
@@ -0,0 +1,11 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "mistral/mistral-medium-2604"
reasoning_options = []
[cost]
input = 2.052
output = 10.26
[limit]
output = 16_384
@@ -0,0 +1,11 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "mistral/mistral-small-2506"
attachment = true
[cost]
input = 0.228
output = 0.456
[limit]
output = 32_768
@@ -0,0 +1,10 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "mistral/pixtral-12b"
[cost]
input = 0.285
output = 0.285
[limit]
output = 4_096
@@ -0,0 +1,26 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
name = "Qwen3 235B A22B Instruct 2507"
description = "Qwen3 235B MoE instruct model for long-context multilingual chat and reasoning"
family = "qwen"
release_date = "2025-07-21"
last_updated = "2025-07-21"
attachment = false
reasoning = false
temperature = true
knowledge = "2025-04"
tool_call = true
structured_output = true
open_weights = true
[cost]
input = 1.026
output = 3.078
[limit]
context = 262_144
output = 16_384
[modalities]
input = ["text"]
output = ["text"]
@@ -0,0 +1,11 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "alibaba/qwen3-coder-30b-a3b-instruct"
[cost]
input = 0.285
output = 1.083
[limit]
context = 128_000
output = 32_768
@@ -0,0 +1,15 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "alibaba/qwen3.5-397b-a17b"
attachment = false
reasoning_options = []
[cost]
input = 0.798
output = 4.959
[limit]
output = 16_384
[modalities]
input = ["text"]
@@ -0,0 +1,14 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
base_model = "alibaba/qwen3.6-35b-a3b"
reasoning_options = []
[cost]
input = 0.342
output = 2.052
[limit]
output = 32_768
[modalities]
input = ["text", "image"]
@@ -0,0 +1,26 @@
# Cost: converted from GreenPT's EUR list price at 1.14 USD/EUR (rate captured 2026-07-24).
# Sources: https://docs.greenpt.ai/pricing and https://docs.greenpt.ai/model-cards
name = "Voxtral Small 24B"
description = "Mistral Voxtral audio-understanding model for speech and transcription tasks"
family = "mistral"
release_date = "2025-07-15"
last_updated = "2025-07-15"
attachment = true
reasoning = false
temperature = true
knowledge = "2025-07"
tool_call = true
structured_output = false
open_weights = true
[cost]
input = 0.228
output = 0.513
[limit]
context = 32_768
output = 16_384
[modalities]
input = ["text", "audio"]
output = ["text"]
+5
View File
@@ -0,0 +1,5 @@
name = "GreenPT"
npm = "@ai-sdk/openai-compatible"
api = "https://api.greenpt.ai/v1"
doc = "https://docs.greenpt.ai"
env = ["GREENPT_API_KEY"]
@@ -0,0 +1,22 @@
# HF router chat completions (POST https://router.huggingface.co/v1/chat/completions)
# model = "moonshotai/Kimi-K3" (Together-backed).
# Always-on reasoning; effort via top-level reasoning_effort = "low"|"high"|"max" (default max).
# No thinking toggle — K3 always returns reasoning_content.
# https://huggingface.co/moonshotai/Kimi-K3 (accessed 2026-07-27)
# https://platform.kimi.ai/docs/guide/use-reasoning-effort
base_model = "moonshotai/kimi-k3"
description = "Kimi multimodal agent model for visual understanding, coding, and planning"
[[reasoning_options]]
type = "effort"
values = ["low", "high", "max"]
[cost]
input = 3
output = 15
[limit]
context = 1_000_000
[modalities]
input = ["text", "image"]
+20
View File
@@ -0,0 +1,20 @@
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(0, 8.493) scale(0.0133333) translate(-68, -50)" fill="currentColor">
<g transform="translate(-248.07,-923.17) scale(2.5)">
<path d="M281.492 434.94C283.744 434.94 285.832 433.996 287.46 432.672C288.46 431.852 289.492 432.076 289.7 433.036C289.78 433.392 289.796 433.772 289.796 434.156C289.796 438.404 286.408 443.492 277.848 443.492C270.884 443.492 266.1 440.404 266.928 431.004L267.76 421.476C268.268 415.492 270.504 410.408 274.852 407.576C277.152 406.096 280.084 405.26 283.66 405.26C289.28 405.26 291.068 407.512 291.068 409.96C291.068 411.472 290.352 413.072 289.24 413.984C289.136 414.068 288.944 414.132 288.74 414.096C287.76 413.92 286.828 413.824 285.896 413.824C283.852 413.824 282 414.272 280.66 415.496C279.512 416.524 278.744 418.132 278.552 420.388L277.66 430.172C277.404 432.936 278.232 434.94 281.492 434.94Z"/>
<path d="M321.884 413.368L319.836 437.18C319.648 439.176 319.008 440.72 317.6 441.56C315.428 442.912 313.388 443.492 311.472 443.492C309.556 443.492 308.728 442.4 308.852 441.048L310.9 417.108C311.028 415.816 310.644 415.172 309.556 415.172C308.852 415.172 307.768 415.364 307.256 415.684C306.172 416.332 305.724 417.04 305.596 418.196L303.94 437.376C303.748 439.564 302.792 440.916 301.448 441.82C299.532 443.108 297.296 443.492 295.384 443.492C293.472 443.492 292.828 442.4 293.02 440.34L296.724 397.6C296.916 395.6 297.556 393.868 298.964 393.028C301.004 391.804 303.172 391.228 305.092 391.228C306.88 391.228 307.9 392.192 307.772 393.484C307.772 393.484 306.304 409.02 306.26 409.3C306.216 409.576 306.612 409.976 307.008 409.508C307.62 408.784 308.732 407.644 309.624 407C311.348 405.84 313.264 405.26 315.436 405.26C320.1 405.26 322.4 407.708 321.888 413.372L321.884 413.368Z"/>
<path d="M350.424 405.908C349.024 405.524 346.724 405.264 344.168 405.264C339.376 405.264 335.288 406.744 332.096 408.932C328.52 411.38 326.284 415.044 325.712 421.74L324.756 432.872C324.312 438.276 326.16 443.492 332.1 443.492C335.296 443.492 337.208 442.208 338.74 440.6C339.256 440.088 339.796 439.172 340.032 438.708C340.268 438.244 340.876 438.372 340.796 438.892C340.716 439.412 340.592 441.24 340.592 441.24C340.468 442.528 341.232 443.492 343.02 443.492C344.808 443.492 346.724 442.916 348.896 441.56C350.364 440.656 350.94 439.176 351.132 437.18L353.488 409.38C353.616 407.648 353.044 406.616 350.424 405.904V405.908ZM340.852 432.548C340.788 433.512 340.344 434.348 339.64 434.868C339.068 435.316 338.36 435.576 337.532 435.576C336.124 435.576 335.42 434.8 335.548 433L336.824 418.328C336.956 416.724 337.4 415.432 338.104 414.596C338.868 413.692 339.888 413.18 341.164 413.18C341.808 413.18 342.252 413.244 342.508 413.308L340.848 432.548H340.852Z"/>
<path d="M378.348 414.924C378.204 415.2 377.844 415.664 377.292 415.532C376.36 415.308 375.424 415.252 374.54 415.304C371.156 415.432 368.412 417.428 368.092 420.968L366.752 437.38C366.56 439.568 365.604 440.916 364.26 441.824C362.34 443.112 360.108 443.496 358.196 443.496C356.284 443.496 355.64 442.404 355.832 440.34L358.32 411.636C358.512 409.64 359.152 407.904 360.556 407.064C362.604 405.844 364.644 405.264 366.56 405.264C368.348 405.264 369.116 406.228 368.988 407.516L368.772 410.004C368.772 410.004 368.712 410.396 369.064 410.476C369.416 410.556 369.544 410.204 369.604 410.072C370.672 407.68 372.684 405.26 376.012 405.26C378.82 405.26 379.972 406.932 379.972 409.252C379.972 410.96 379.388 412.936 378.348 414.924Z"/>
<path d="M420.42 441.556C418.248 442.908 416.204 443.492 414.288 443.492C412.372 443.492 411.544 442.396 411.672 441.044L413.784 416.072C413.908 414.78 413.72 414.136 412.632 414.136C411.932 414.136 411.036 414.328 410.524 414.648C409.504 415.296 408.928 416.196 408.864 417.224L407.14 437.176C406.948 439.176 406.308 440.716 404.904 441.556C402.732 442.908 400.688 443.492 398.772 443.492C396.856 443.492 396.028 442.396 396.156 441.044L398.264 416.072C398.392 414.78 398.2 414.136 397.116 414.136C396.416 414.136 395.456 414.328 394.944 414.648C393.86 415.296 393.412 416.004 393.284 417.16L391.56 437.368C391.368 439.56 390.412 440.908 389.068 441.812C387.152 443.1 384.916 443.488 383.004 443.488C381.092 443.488 380.448 442.392 380.64 440.332L383.132 411.628C383.32 409.628 383.96 407.896 385.368 407.056C387.412 405.836 389.456 405.252 391.368 405.252C393.156 405.252 393.924 406.22 393.796 407.508C393.796 407.508 393.684 408.808 393.628 409.252C393.58 409.648 394.068 409.832 394.316 409.48C394.608 409.064 395.584 408.02 396.288 407.508C398.204 405.964 400.376 405.252 402.864 405.252C407.016 405.252 408.392 407.128 409.028 409.204C409.168 409.66 409.608 409.544 409.76 409.352C410.08 408.948 411.232 407.892 411.996 407.316C413.848 405.9 415.96 405.252 418.384 405.252C423.048 405.252 425.22 407.7 424.704 413.364L422.66 437.176C422.468 439.176 421.832 440.716 420.424 441.556H420.42Z"/>
</g>
<polygon points="485.16 377.64 502.34 269.16 399.63 269.16 382.45 377.64 215.99 377.64 233.17 269.16 130.47 269.16 82.66 571 185.37 571 202.55 462.52 369.01 462.52 351.83 571 454.53 571 471.71 462.52 485.16 377.64"/>
<path d="M1347.14,354.05h201.85l13.45-84.89h-269.13c-19.57,0-37.94,15.86-41.04,35.43l-5.96,37.61-22.79,143.92-7.83,49.46c-3.1,19.57,10.25,35.43,29.82,35.43h269.13l13.44-84.89h-201.85l20.92-132.07Z"/>
<polygon points="1367.24 377.64 1353.79 462.52 1531.81 462.52 1545.26 377.64 1367.24 377.64"/>
<path d="M1857.55,269.16h-236.07c-19.57,0-37.94,15.86-41.04,35.43l-7.83,49.46-34.36,216.95h102.7l34.36-216.95h136.94l-3.74,23.59h-113.32l-11.88,74.98c-.36,2.29.12,4.51,1.36,6.23l78.36,108.94c1.47,2.04,3.87,3.21,6.59,3.21h111.51c8.12,0,13.97-9.57,9.58-15.68l-66.75-92.8h2.94c39.13,0,75.88-31.72,82.08-70.85l.93-5.88,7.25-45.79c6.19-39.12-20.51-70.83-59.63-70.83Z"/>
<path d="M1215.89,385.19l7.07-44.61.09-.57c6.2-39.13-20.5-70.85-59.63-70.85h-236.07c-19.57,0-37.94,15.86-41.04,35.43l-7.83,49.46-34.36,216.95h102.7l34.36-216.95h136.94l-3.74,23.59h-113.5l-7.83,49.46c-3.1,19.57,10.25,35.43,29.82,35.43h109.93c39.13,0,75.88-31.72,82.08-70.85l1.03-6.48Z"/>
<path d="M578.48,444.21h135.78l7.83-49.46c3.1-19.57-10.25-35.43-29.82-35.43h-68.45c-5.22,0-8.78-4.23-7.95-9.45l12.78-80.71h-102.7l-15.01,94.8c-7.02,44.32,23.22,80.25,67.54,80.25Z"/>
<path d="M765.37,269.22l-28.42,179.43c-1.71,10.77-11.82,19.5-22.59,19.5h-220.62l-10.66,67.28c-3.1,19.57,10.25,35.43,29.82,35.43h185.19c67.49,0,130.87-54.71,141.56-122.2l28.42-179.43h-102.7Z"/>
<path d="M660.46,340.19l7.76-.46c3.3-.19,6.39-3.05,6.91-6.37l9.18-58.52c.52-3.33-1.73-5.87-5.02-5.67l-7.76.46c-3.3.19-6.39,3.05-6.91,6.37l-9.18,58.52c-.52,3.33,1.73,5.87,5.02,5.67Z"/>
<path d="M703.61,340.19l7.76-.46c3.3-.19,6.39-3.05,6.91-6.37l9.18-58.52c.52-3.33-1.73-5.87-5.02-5.67l-7.76.46c-3.3.19-6.39,3.05-6.91,6.37l-9.18,58.52c-.52,3.33,1.73,5.87,5.02,5.67Z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.7 KiB

@@ -0,0 +1,12 @@
base_model = "deepseek/deepseek-v4-flash"
release_date = "2026-07-06"
last_updated = "2026-07-22"
[[reasoning_options]]
type = "effort"
values = ["high", "xhigh"]
[cost]
input = 0.2
output = 0.4
cache_read = 0.04
@@ -0,0 +1,12 @@
base_model = "deepseek/deepseek-v4-pro"
release_date = "2026-07-06"
last_updated = "2026-07-22"
[[reasoning_options]]
type = "effort"
values = ["high", "xhigh"]
[cost]
input = 2.4
output = 4.8
cache_read = 0.2
@@ -0,0 +1,17 @@
base_model = "google/gemma-4-26b-a4b-it"
release_date = "2026-04-30"
last_updated = "2026-07-22"
attachment = false
reasoning = false
[cost]
input = 0.116
output = 0.408
cache_write = 0.058
[limit]
context = 256_000
output = 25_600
[modalities]
input = ["text"]
+15
View File
@@ -0,0 +1,15 @@
base_model = "zhipuai/glm-5.1"
release_date = "2026-06-04"
last_updated = "2026-07-22"
[[reasoning_options]]
type = "effort"
values = ["high", "max"]
[cost]
input = 1.52432
output = 4.79072
cache_read = 0.283088
[limit]
context = 202_800
+15
View File
@@ -0,0 +1,15 @@
base_model = "zhipuai/glm-5.2"
release_date = "2026-06-30"
last_updated = "2026-07-22"
[[reasoning_options]]
type = "effort"
values = ["high", "xhigh"]
[cost]
input = 1.4
output = 4.4
cache_read = 0.28
[limit]
output = 128_000
+13
View File
@@ -0,0 +1,13 @@
base_model = "zhipuai/glm-5"
release_date = "2026-04-13"
last_updated = "2026-07-22"
reasoning = false
[cost]
input = 0.81
output = 2.624
cache_write = 0.405
[limit]
context = 202_752
output = 20_275
+15
View File
@@ -0,0 +1,15 @@
base_model = "openai/gpt-oss-120b"
release_date = "2026-04-13"
last_updated = "2026-07-22"
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "high"]
[cost]
input = 0.178
output = 0.68
cache_write = 0.089
[limit]
output = 13_107
+16
View File
@@ -0,0 +1,16 @@
base_model = "moonshotai/kimi-k2.5"
release_date = "2026-04-13"
last_updated = "2026-07-22"
attachment = false
reasoning = false
[cost]
input = 0.528
output = 2.79
cache_write = 0.264
[limit]
output = 26_214
[modalities]
input = ["text"]
+19
View File
@@ -0,0 +1,19 @@
base_model = "moonshotai/kimi-k2.6"
release_date = "2026-07-03"
last_updated = "2026-07-22"
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "high"]
[cost]
input = 0.95
output = 4
cache_write = 0.16
[limit]
context = 262_000
output = 262_000
[modalities]
input = ["text", "image"]
@@ -0,0 +1,16 @@
base_model = "moonshotai/kimi-k2.7-code"
release_date = "2026-07-03"
last_updated = "2026-07-22"
reasoning = false
[cost]
input = 0.95
output = 4
cache_read = 0.19
[limit]
context = 256_000
output = 16_000
[modalities]
input = ["text", "image"]
@@ -0,0 +1,12 @@
base_model = "meta/llama-3.3-70b-instruct"
release_date = "2026-04-30"
last_updated = "2026-07-22"
attachment = false
[cost]
input = 0.6066
output = 1.0386
cache_write = 0.3033
[limit]
output = 12_800
@@ -0,0 +1,16 @@
base_model = "meta/llama-4-maverick-17b-instruct"
release_date = "2026-04-30"
last_updated = "2026-07-22"
attachment = false
[cost]
input = 0.284
output = 0.934
cache_write = 0.142
[limit]
context = 430_000
output = 43_000
[modalities]
input = ["text"]
+12
View File
@@ -0,0 +1,12 @@
base_model = "minimax/MiniMax-M2.7"
release_date = "2026-06-05"
last_updated = "2026-07-22"
reasoning = false
[cost]
input = 0.41
output = 1.52
cache_write = 0.205
[limit]
output = 20_480
@@ -0,0 +1,12 @@
base_model = "alibaba/qwen3-coder-480b-a35b-instruct"
release_date = "2026-04-30"
last_updated = "2026-07-22"
[cost]
input = 0.569
output = 2.135
cache_write = 0.2845
[limit]
context = 106_000
output = 10_600
@@ -0,0 +1,12 @@
base_model = "alibaba/qwen3-next-80b-a3b-instruct"
release_date = "2026-04-30"
last_updated = "2026-07-22"
[cost]
input = 0.1175
output = 1.136
cache_write = 0.05875
[limit]
context = 262_144
output = 26_214
+16
View File
@@ -0,0 +1,16 @@
base_model = "alibaba/qwen3.6-flash"
release_date = "2026-05-20"
last_updated = "2026-07-22"
reasoning = false
[cost]
input = 1
output = 4
cache_read = 0.1
cache_write = 1.25
[limit]
output = 64_000
[modalities]
input = ["text", "image"]
Loaded 100 of 342 files, more files were not shown because too many files have changed in this diff. Show more