A custom provider added by its address alone, with no catalog named, was
priced only by the model's maker. Qwen3.8-27B, whose maker (Alibaba) sells
no such model on any of its seven models.dev catalogs, read "no price is
known for it" even at AMD's own endpoint, where models.dev's amd lists it
at $0, a price.
- catalog: models.dev's provider "api" is read; AtEndpoint names the
catalogs at a base URL (trailing slash and case ignored).
- provider: EndpointCatalog is the one catalog models.dev lists at one of
a key's provider's endpoints (an Anthropic base, kept as its root, also
with /v1), used by ListPrice when the provider has no catalog of its
own. Never for a subscription's account, never when two catalogs share
the address (minimax / minimax-coding-plan), never a plan's catalog
(an id with -plan, or membershipCatalogs), whose $0 is the membership's.
A user's price and a named catalog still come first; a relay's endpoint
matches nothing and its model stays unpriced (no reseller guess).
- cli: `magpie model price p/m` with no price gives the two commands that
set one (p/m and */m); a price from an endpoint's catalog names it.
- gui: the Catalog field's hint says it also sets list prices (en, zh,
zh-TW, ja, de).
- docs: reference.md's "What a model costs", providers-accounts.md row.
What was run:
- Reporter's exact case, built binary (go build -tags nogui), sandbox
HOME with a copy of this machine's models.dev cache (2026-10-14, same
amd entry as the report), providers 001 (relay), 002 and amd at
https://developer.amd.com.cn/radeon/api/v1:
001/gpt-5.5 $5/$30, tiers, as before
001/Qwen3.8-27B no price, now with the two commands to set one
002/Qwen3.8-27B $0/$0, "what models.dev's amd lists at its endpoint"
amd/Qwen3.8-27B $0/$0
The two suggested commands were run and took effect.
- TestEndpointCatalogPrices / TestEndpointCatalogOnlyItsOwn, fixture
testdata/endpoint_catalog.json trimmed from the real models.dev cache.
Break checks, each FAILs with the case named:
ListPrice not using EndpointCatalog -> 002/amd/001 at AMD unpriced,
EffectivePrice(002, Qwen3.8-27B) unpriced
plan exclusion removed -> "a plan's endpoint: EndpointCatalog() =
alibaba-coding-plan", qwen3.5-plus at $0 instead of $0.4/$2.4
single-match rule removed -> "an endpoint two catalogs share:
EndpointCatalog() = minimax"
Account check removed -> "a subscription's account ... = amd"
Anthropic /v1 match removed -> thinkingmachines unmatched
- GUI: internal/gui/tests/catalog-hint.test.cjs, chromium and webkit, en
zh zh-TW ja de, widths 1100 and 420: 20/20 pass, plus i18n-keys; with
the old app.js/i18n.js it fails "one hint names list prices".
- go test -tags nogui -timeout 45m ./internal/catalog ./internal/provider
./internal/cli: ok (provider 244s, cli 125s, catalog 3s). gofmt -l
clean; go vet (darwin), GOOS=linux go vet -tags nogui and GOOS=windows
go vet -tags nogui on those packages: clean.