hlyx1's fix (#4635, branch hlyx1/magpie kimi-code-k31-pro-price), asked to be expedited by matrix0487 on Discord. Kimi Code's plans serve k3.1-pro and k3.1-pro-highspeed, which models.dev's kimi-code-plan-* catalogs list at the membership's $0. Neither id was in kimiCodeAPI, so a membership's call on either was unpriced on Usage. They now map to kimi-k3.1-pro and kimi-k3.1-pro-highspeed, like k3 to kimi-k3, and the Requests list names that model (PricedNameFor). Checked: Kimi Code's own /models answer (internal/catalog/testdata/ kimi-code-cn-models-2026-10-31.json) lists k3.1-pro "K3.1 Pro" and k3.1-pro-highspeed "K3.1 Pro Highspeed". Kimi's pricing page (platform.kimi.ai/docs/pricing/chat, read 2026-11-01) and models.dev's live moonshotai entry both give kimi-k3.1-pro $2 in / $10 out / $0.20 cached / $2 5m write, and kimi-k3.1-pro-highspeed $4 / $20 / $0.20 / $4. The fixture's new entries match models.dev's api.json in id, name, cost and canonical_model_id. The alias stays Kimi Code's (kimiCodePlans): the test's relay catalog now lists a k3.1-pro of its own at $0.50/$1, which keeps that price, and PricedNameFor(relay, k3.1-pro) stays k3.1-pro. Docs: docs/reference.md, docs/subsystems/providers-accounts.md. Run on mote (Go 1.26.8), at this change rebased onfb3942ee6(the pushed head adds only784b66366, app.js and a GUI test): gofmt -l clean; go vet ./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./... ok; go test -count=1 -timeout 45m for internal/provider, usage, gateway, agent, cli, routes, sessions, usageapi: all ok. TestKimiCodeListPrice and TestKimiCodeCost red with models.go at origin/main (k3.1-pro {0 0 0 0} false; kimi-code-cn/k3.1-pro priced=false cost=0, want true 3.264), green with it. Taking the kimiCodeMember() check out by hand turns PricedNameFor(relay, k3.1-pro) into kimi-k3.1-pro and the test red. Full go test ./... at baseda0005df8: every package ok but internal/gui, red on TestSettingsSaveKeepsWhatItDoesNotSend (#4514) and TestMainWindowCorners/macOS_26_SDK (#3949), both open on main and not touched here. Not tried: a real Kimi Code membership's k3.1-pro call through the GUI.
258 lines
5.1 KiB
JSON
258 lines
5.1 KiB
JSON
{
|
|
"moonshotai": {
|
|
"id": "moonshotai",
|
|
"models": {
|
|
"kimi-k3": {
|
|
"id": "kimi-k3",
|
|
"name": "Kimi K3",
|
|
"cost": {
|
|
"input": 3,
|
|
"output": 15,
|
|
"cache_read": 0.3,
|
|
"cache_write": 3
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k3"
|
|
},
|
|
"kimi-k3.1-pro": {
|
|
"id": "kimi-k3.1-pro",
|
|
"name": "Kimi K3.1 Pro",
|
|
"cost": {
|
|
"input": 2,
|
|
"output": 10,
|
|
"cache_read": 0.2,
|
|
"cache_write": 2
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k3.1-pro"
|
|
},
|
|
"kimi-k3.1-pro-highspeed": {
|
|
"id": "kimi-k3.1-pro-highspeed",
|
|
"name": "Kimi K3.1 Pro Highspeed",
|
|
"cost": {
|
|
"input": 4,
|
|
"output": 20,
|
|
"cache_read": 0.2,
|
|
"cache_write": 4
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k3.1-pro"
|
|
},
|
|
"kimi-k2.7-code-highspeed": {
|
|
"id": "kimi-k2.7-code-highspeed",
|
|
"name": "Kimi K2.7 Code HighSpeed",
|
|
"cost": {
|
|
"input": 1.9,
|
|
"output": 8,
|
|
"cache_read": 0.38
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k2.7-code"
|
|
},
|
|
"kimi-k2.6": {
|
|
"id": "kimi-k2.6",
|
|
"name": "Kimi K2.6",
|
|
"cost": {
|
|
"input": 0.95,
|
|
"output": 4,
|
|
"cache_read": 0.16
|
|
}
|
|
},
|
|
"kimi-k2.7-code": {
|
|
"id": "kimi-k2.7-code",
|
|
"name": "Kimi K2.7 Code",
|
|
"cost": {
|
|
"input": 0.95,
|
|
"output": 4,
|
|
"cache_read": 0.19
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k2.7-code"
|
|
}
|
|
}
|
|
},
|
|
"kimi-code-plan-global": {
|
|
"id": "kimi-code-plan-global",
|
|
"models": {
|
|
"kimi-for-coding-highspeed": {
|
|
"id": "kimi-for-coding-highspeed",
|
|
"name": "Kimi For Coding HighSpeed",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k2.7-code-highspeed"
|
|
},
|
|
"kimi-for-coding": {
|
|
"id": "kimi-for-coding",
|
|
"name": "kimi-for-coding",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k2.8-preview"
|
|
},
|
|
"k3-256k": {
|
|
"id": "k3-256k",
|
|
"name": "Kimi K3-256K",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k3"
|
|
},
|
|
"k3": {
|
|
"id": "k3",
|
|
"name": "Kimi K3",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k3"
|
|
},
|
|
"k3.1-pro": {
|
|
"id": "k3.1-pro",
|
|
"name": "Kimi K3.1 Pro",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k3.1-pro"
|
|
},
|
|
"k3.1-pro-highspeed": {
|
|
"id": "k3.1-pro-highspeed",
|
|
"name": "Kimi K3.1 Pro Highspeed",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k3.1-pro"
|
|
}
|
|
}
|
|
},
|
|
"kimi-code-plan-cn": {
|
|
"id": "kimi-code-plan-cn",
|
|
"models": {
|
|
"kimi-for-coding-highspeed": {
|
|
"id": "kimi-for-coding-highspeed",
|
|
"name": "Kimi For Coding HighSpeed",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k2.7-code-highspeed"
|
|
},
|
|
"kimi-for-coding": {
|
|
"id": "kimi-for-coding",
|
|
"name": "kimi-for-coding",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k2.8-preview"
|
|
},
|
|
"k3-256k": {
|
|
"id": "k3-256k",
|
|
"name": "Kimi K3-256K",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k3"
|
|
},
|
|
"k3": {
|
|
"id": "k3",
|
|
"name": "Kimi K3",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k3"
|
|
},
|
|
"k3.1-pro": {
|
|
"id": "k3.1-pro",
|
|
"name": "Kimi K3.1 Pro",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k3.1-pro"
|
|
},
|
|
"k3.1-pro-highspeed": {
|
|
"id": "k3.1-pro-highspeed",
|
|
"name": "Kimi K3.1 Pro Highspeed",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0,
|
|
"cache_write": 0
|
|
},
|
|
"canonical_model_id": "moonshotai/kimi-k3.1-pro"
|
|
}
|
|
}
|
|
},
|
|
"openai": {
|
|
"id": "openai",
|
|
"models": {
|
|
"gpt-6-luna": {
|
|
"id": "gpt-6-luna",
|
|
"name": "GPT-6 Luna",
|
|
"cost": {
|
|
"input": 0.1,
|
|
"output": 0.5,
|
|
"cache_read": 0.01,
|
|
"cache_write": 0.125,
|
|
"tiers": [
|
|
{
|
|
"input": 0.2,
|
|
"output": 0.75,
|
|
"cache_read": 0.02,
|
|
"cache_write": 0.25,
|
|
"tier": {
|
|
"type": "context",
|
|
"size": 272000
|
|
}
|
|
}
|
|
],
|
|
"context_over_200k": {
|
|
"input": 0.2,
|
|
"output": 0.75,
|
|
"cache_read": 0.02,
|
|
"cache_write": 0.25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"opencode": {
|
|
"id": "opencode",
|
|
"models": {
|
|
"qwen3.6-plus-free": {
|
|
"id": "qwen3.6-plus-free",
|
|
"name": "Qwen3.6 Plus Free",
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cache_read": 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |