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.
229 lines
4.5 KiB
JSON
229 lines
4.5 KiB
JSON
{
|
|
"amd": {
|
|
"id": "amd",
|
|
"name": "AMD",
|
|
"api": "https://developer.amd.com.cn/radeon/api/v1",
|
|
"models": {
|
|
"Qwen3.8-27B": {
|
|
"id": "Qwen3.8-27B",
|
|
"name": "Qwen3.8 27B",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0
|
|
},
|
|
"canonical_model_id": "alibaba/qwen3.8-27b"
|
|
},
|
|
"DeepSeek-V4.1-Flash": {
|
|
"id": "DeepSeek-V4.1-Flash",
|
|
"name": "DeepSeek V4.1 Flash",
|
|
"cost": {
|
|
"input": 0.14,
|
|
"output": 0.28,
|
|
"cache_read": 0.0028
|
|
},
|
|
"canonical_model_id": "deepseek/deepseek-v4.1-flash"
|
|
},
|
|
"DeepSeek-V4-Flash": {
|
|
"id": "DeepSeek-V4-Flash",
|
|
"name": "DeepSeek V4 Flash 0731",
|
|
"cost": {
|
|
"input": 0.14,
|
|
"output": 0.28,
|
|
"cache_read": 0.0028
|
|
},
|
|
"canonical_model_id": "deepseek/deepseek-v4-flash-0731"
|
|
},
|
|
"Qwen3.8-Flash-Next": {
|
|
"id": "Qwen3.8-Flash-Next",
|
|
"name": "Qwen3.8 Flash Next",
|
|
"cost": {
|
|
"input": 0.15,
|
|
"output": 0.47,
|
|
"cache_read": 0.016
|
|
},
|
|
"canonical_model_id": "alibaba/qwen3.8-flash-next"
|
|
},
|
|
"MiniCPM5-2B": {
|
|
"id": "MiniCPM5-2B",
|
|
"name": "MiniCPM5-2B",
|
|
"cost": {
|
|
"input": 0.124,
|
|
"output": 0.7425,
|
|
"cache_read": 0.124
|
|
},
|
|
"canonical_model_id": "openbmb/minicpm5-2b"
|
|
},
|
|
"DeepSeek-V4-Flash-Vision-Exp": {
|
|
"id": "DeepSeek-V4-Flash-Vision-Exp",
|
|
"name": "DeepSeek V4 Flash Vision Exp",
|
|
"cost": {
|
|
"input": 0.14,
|
|
"output": 0.28,
|
|
"cache_read": 0.0028
|
|
},
|
|
"canonical_model_id": "deepseek/deepseek-v4-flash-vision-exp"
|
|
}
|
|
}
|
|
},
|
|
"alibaba": {
|
|
"id": "alibaba",
|
|
"name": "Alibaba",
|
|
"api": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
|
|
"models": {
|
|
"qwen3.8-max": {
|
|
"id": "qwen3.8-max",
|
|
"name": "Qwen3.8 Max",
|
|
"cost": {
|
|
"input": 2,
|
|
"output": 6,
|
|
"cache_read": 0.25,
|
|
"cache_write": 2.5
|
|
},
|
|
"canonical_model_id": "alibaba/qwen3.8-max"
|
|
},
|
|
"qwen3.5-plus": {
|
|
"id": "qwen3.5-plus",
|
|
"name": "Qwen3.5 Plus",
|
|
"cost": {
|
|
"input": 0.4,
|
|
"output": 2.4,
|
|
"reasoning": 2.4
|
|
}
|
|
},
|
|
"qwen3.8-flash": {
|
|
"id": "qwen3.8-flash",
|
|
"name": "Qwen3.8 Flash",
|
|
"cost": {
|
|
"input": 0.15,
|
|
"output": 0.47,
|
|
"cache_read": 0.016,
|
|
"cache_write": 0.2
|
|
},
|
|
"canonical_model_id": "alibaba/qwen3.8-flash"
|
|
},
|
|
"qwen3.6-27b": {
|
|
"id": "qwen3.6-27b",
|
|
"name": "Qwen3.6 27B",
|
|
"cost": {
|
|
"input": 0.6,
|
|
"output": 3.6
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"alibaba-coding-plan": {
|
|
"id": "alibaba-coding-plan",
|
|
"name": "Alibaba Coding Plan",
|
|
"api": "https://coding-intl.dashscope.aliyuncs.com/v1",
|
|
"models": {
|
|
"qwen3.5-plus": {
|
|
"id": "qwen3.5-plus",
|
|
"name": "Qwen3.5 Plus",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"minimax": {
|
|
"id": "minimax",
|
|
"name": "MiniMax (minimax.io)",
|
|
"api": "https://api.minimax.io/anthropic/v1",
|
|
"models": {
|
|
"MiniMax-M3": {
|
|
"id": "MiniMax-M3",
|
|
"name": "MiniMax-M3",
|
|
"cost": {
|
|
"input": 0.3,
|
|
"output": 1.2,
|
|
"cache_read": 0.06,
|
|
"tiers": [
|
|
{
|
|
"input": 0.6,
|
|
"output": 2.4,
|
|
"cache_read": 0.12,
|
|
"tier": {
|
|
"type": "context",
|
|
"size": 512000
|
|
}
|
|
}
|
|
],
|
|
"context_over_200k": {
|
|
"input": 0.6,
|
|
"output": 2.4,
|
|
"cache_read": 0.12
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"minimax-coding-plan": {
|
|
"id": "minimax-coding-plan",
|
|
"name": "MiniMax Token Plan (minimax.io)",
|
|
"api": "https://api.minimax.io/anthropic/v1",
|
|
"models": {
|
|
"MiniMax-M3": {
|
|
"id": "MiniMax-M3",
|
|
"name": "MiniMax-M3",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"openai": {
|
|
"id": "openai",
|
|
"name": "OpenAI",
|
|
"api": "",
|
|
"models": {
|
|
"gpt-5.5": {
|
|
"id": "gpt-5.5",
|
|
"name": "GPT-5.5",
|
|
"cost": {
|
|
"input": 5,
|
|
"output": 30,
|
|
"cache_read": 0.5,
|
|
"tiers": [
|
|
{
|
|
"input": 10,
|
|
"output": 45,
|
|
"cache_read": 1,
|
|
"tier": {
|
|
"type": "context",
|
|
"size": 272000
|
|
}
|
|
}
|
|
],
|
|
"context_over_200k": {
|
|
"input": 10,
|
|
"output": 45,
|
|
"cache_read": 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"thinkingmachines": {
|
|
"id": "thinkingmachines",
|
|
"name": "Thinking Machines",
|
|
"api": "https://tinker.thinkingmachines.dev/services/tinker-prod/anthropic/api/v1",
|
|
"models": {
|
|
"thinkingmachines/Inkling": {
|
|
"id": "thinkingmachines/Inkling",
|
|
"name": "Inkling",
|
|
"cost": {
|
|
"input": 1.87,
|
|
"output": 4.68,
|
|
"cache_read": 0.374
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|