Chinese model APIs on one OpenAI-compatible key. Browse models
Kimi / Moonshot logo on the SmarToken Kimi API hub
Kimi / Moonshot

kimi api

Kimi API: long context is the product — retirement risk is the constraint

People search “kimi api” for Moonshot’s long-context story. This hub focuses on ID inventory, K2 sunset risk, and an eval path that does not treat Integrating rows as a silent SLA.

Inventory Kimi IDs in your stack and decide whether K2.6/K3 evaluation belongs on SmarToken before a vendor cutoff.

3 Live · 2 Integrating · Base URL https://thesmartoken.com/v1

Why long-context pages fail without retirement honesty

Kimi demand clusters around research, repo-scale reading, and multi-step agents — workloads where “1M context” marketing is easy to over-trust. Context window size is not the same as reliable recall over the whole document.

Vendor notices have already pushed teams from K2 toward newer IDs. If kimi-k2 is hard-coded anywhere, open the migration checklist before you raise traffic or renew a contract narrative.

On SmarToken, check the status of each Kimi model: tested text routes are Live, while other models remain Integrating.

DeepSeek currently carries Live canaries for many SmarToken customers. Use DeepSeek for general production baselines; use this hub when long-context/agent fit is the reason you are shopping Moonshot specifically.

Tool-call argument shape and reasoning parameters do not always carry across gateways. Rehearse the exact SDK fields you send — do not assume Moonshot-direct settings paste cleanly.

Catalog rows for this vendor

ModelAPI IDContextIn / OutStatusDetail
Kimi K2.7 Codekimi-k2.7-code256K$0.95 / $4LiveOpen
Kimi K3kimi-k31M$3 / $15LiveOpen
Kimi K3.1 Prokimi-k3.1-pro1M$2 / $10LiveOpen
Kimi K2kimi-k2256K$0.6 / $2.5IntegratingOpen
Kimi K2.6kimi-k2.6262K$0.95 / $4IntegratingOpen

Legacy K2 vs newer candidates

Dimensionkimi-k2 (legacy risk)kimi-k2.6 / kimi-k3 candidates
New production default?No — treat as high riskPreferred evaluation targets
Main jobExisting pinned workloads onlyLong-context agents and migrations
Migration docMust read K2→K3 topicUse topic checklist while baking off
Gateway statusCheck Integrating/Live per rowCheck Integrating/Live per row

Workload → first pick

WorkloadFirst pickWhy
Repo-scale Q&AK2.6 / K3 bake-offScore answer groundedness on held-out files, not window marketing.
Tool-using agentsNewer IDs + tool fixture suiteArgument JSON shape regressions are the silent killer in migrations.
Still on K2 in prodInventory → migrate plan firstDo not scale K2; schedule cutover with the migration topic.
General cheap chatConsider Live DeepSeek firstLong-context premium is wasted on short turns.

Kimi evaluation order

  1. Step 1

    Search the repo for K2 IDs

    Config, agents, batch jobs, SDK wrappers. Note tools, JSON, and 100k+ token inputs.

  2. Step 2

    Rehearse on K2.6 / K3 with the same fixtures

    Score task success, tokens, latency, retries. Follow /topics/kimi-k2-to-k3-api-migration.

  3. Step 3

    Only then wire SmarToken IDs into staging

    Confirm apiModelId against GET /v1/models the day you cut traffic.

  4. Step 4

    Keep a rollback that is still vendor-supported

    An untested K2 “emergency” after retirement date is not a rollback plan.

Billing notes

Long-context prompts burn tokens fast — budget with real prompt sizes, not hello-world samples.

Integrating routes should not receive production spend forecasts until Live.

Separate agent keys with tight budgets during eval to avoid runaway tool loops.

Compare unit cost against Live DeepSeek for short-turn traffic before you standardize on Kimi everywhere.

Minimal request shape

Prefer kimi-k3 or kimi-k2.6 for new work. Probe kimi-k2 only as legacy evaluation. Current example ID: kimi-k2.7-code (Live).

const client = new OpenAI({
  apiKey: process.env.SMTOKEN_API_KEY,
  baseURL: "https://thesmartoken.com/v1",
});

const result = await client.chat.completions.create({
  model: "kimi-k2.7-code",
  messages: [{ role: "user", content: "Return one sentence confirming the model id." }],
});

Full protocol notes live in /docs#quickstart. Confirm Live IDs with GET /v1/models before raising concurrency.

Ops notes

  • Watch vendor retirement notices on a calendar, not in Slack lore.
  • Log model ID on every request — alias drift hides which generation failed.
  • Retest tool calling after any ID change.
  • Do not mix Moonshot-direct keys and SmarToken keys in one .env without labeling.

Kimi pitfalls we see in migrations

  • Swapping the model string without retesting tool-call argument shape.
  • Assuming a larger context window means reliable full-document recall.
  • Leaving K2 as an untested emergency rollback after retirement.
  • Mixing direct vendor keys and gateway keys in the same runtime.
  • Skipping Integrating checks because Moonshot demos look polished.

When not to start here

  • You need a Live general canary today — DeepSeek hub.
  • You primarily need vision or Wan video — Qwen hub / video topic.
  • You only need OpenRouter alias mapping — /openrouter-alternative.

FAQ

Is Kimi K2 safe for new production?
Treat K2 as high risk for new builds. Read vendor retirement notes and the SmarToken migration topic before depending on kimi-k2.
What makes Kimi different from DeepSeek on this gateway?
DeepSeek currently has Live routes for general canaries. Kimi’s value is long-context/agent evaluation — rows may still be Integrating here.
Do reasoning_effort settings carry over?
Not automatically. Parameters that work on Moonshot direct may differ through a gateway. Retest exact fields.
Where is the migration checklist?
/topics/kimi-k2-to-k3-api-migration.