AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(blocks): correct drifted Kimi K3 OpenRouter display price (#14776)
Nicholas Tindlecfc59a5fdbfa
diff --git a/autogpt_platform/backend/backend/copilot/moonshot_test.py b/autogpt_platform/backend/backend/copilot/moonshot_test.pyindex 8b881ab1b2..3f997ce970 100644--- a/autogpt_platform/backend/backend/copilot/moonshot_test.py+++ b/autogpt_platform/backend/backend/copilot/moonshot_test.py@@ -58,14 +58,14 @@ class TestRateCardUsd:assert rate_card_usd("moonshotai/kimi-k2.6") == (0.60, 2.80)def test_kimi_k3_premium_override(self) -> None:- # K3 is split-priced ($1.70/$8.50 per Mtok) — the override must win- # over the shared K2.x default. Sourced from the catalog entry's- # provider_*_usd_per_1m, which tracks OpenRouter's published price- # for moonshotai/kimi-k3 (/api/v1/models, re-checked 2026-09-20).- # It was $3/$15 until SECRT-2701: that is Moonshot AI's own- # first-party endpoint (and the :batch SKU), not the default route- # — we pin no provider, so OpenRouter picks the cheapest endpoint.- assert rate_card_usd("moonshotai/kimi-k3") == (1.70, 8.50)+ # K3 is split-priced ($3.00/$15.00 per Mtok) — the override must+ # win over the shared K2.x default. Sourced from the catalog+ # entry's provider_*_usd_per_1m, which tracks OpenRouter's+ # published price for moonshotai/kimi-k3 (/api/v1/models,+ # re-checked 2026-09-22). It briefly dropped to $1.70/$8.50 after+ # SECRT-2701, but OpenRouter's live default route repriced back up+ # to $3/$15 — this pin follows the current default-route price.+ assert rate_card_usd("moonshotai/kimi-k3") == (3.00, 15.00)def test_future_moonshot_sku_inherits_default(self) -> None:# Verifies the prefix-based fallback — new SKUs don't need a codediff --git a/autogpt_platform/backend/backend/data/llm_registry/catalog.py b/autogpt_platform/backend/backend/data/llm_registry/catalog.pyindex a9d368cc8e..78eea1ed06 100644--- a/autogpt_platform/backend/backend/data/llm_registry/catalog.py+++ b/autogpt_platform/backend/backend/data/llm_registry/catalog.py@@ -840,14 +840,15 @@ def _build_catalog() -> CatalogPayload:price_tier=3,supports_tools=True,supports_reasoning=True,- # Moonshot's premium tier — $1.70/$8.50 per Mtok on- # OpenRouter, credit rates at the standard 1.5x margin.+ # Moonshot's premium tier — $3.00/$15.00 per Mtok on+ # OpenRouter (repriced from $1.70/$8.50; verified live+ # 2026-09-22), credit rates at the standard 1.5x margin.cost=CatalogModelCost(run_credits=9,- input_credits_per_1m=255.0,- output_credits_per_1m=1275.0,- provider_input_usd_per_1m=1.70,- provider_output_usd_per_1m=8.50,+ input_credits_per_1m=450.0,+ output_credits_per_1m=2250.0,+ provider_input_usd_per_1m=3.00,+ provider_output_usd_per_1m=15.00,),),CatalogModel(diff --git a/autogpt_platform/backend/backend/data/llm_registry/catalog_test.py b/autogpt_platform/backend/backend/data/llm_registry/catalog_test.pyindex f232f9374a..7c0baf1dcb 100644--- a/autogpt_platform/backend/backend/data/llm_registry/catalog_test.py+++ b/autogpt_platform/backend/backend/data/llm_registry/catalog_test.py@@ -140,12 +140,15 @@ def test_exactly_one_enabled_recommended_model():def test_kimi_k3_bills_at_authored_rates():"""The flagship catalog-native model's billing projections — flat tier- and per-1M token rates — must match its authored catalog entry."""+ and per-1M token rates — must match its authored catalog entry.++ Pin updated for a live OpenRouter reprice ($1.70/$8.50 -> $3.00/$15.00+ per Mtok, verified 2026-09-22)."""k3 = LLMModel("moonshotai/kimi-k3")assert MODEL_COST[k3] == 9assert TOKEN_COST[k3].model_dump() == {- "input": 255.0,- "output": 1275.0,+ "input": 450.0,+ "output": 2250.0,"cache_read": 0.0,"cache_creation": 0.0,}