Guide · Updated November 2026

Kimi K2 API with a credit card — built for agentic coding

Kimi-K2.7-Code is the model to reach for when a coding agent needs to hold a whole repository in its head: 262K context, strong tool-calling, tuned for multi-file refactors. The official Moonshot console wants Chinese payment rails — NovaToken takes any card.

The three values every OpenAI-compatible tool asks for:
Base URL: https://api.novatoken.dev/v1
API key: your sk-... key from the dashboard
Model: moonshotai/Kimi-K2.7-Code

Why Kimi K2 for coding agents

PropertyWhat it means for you
262K context windowAn entire mid-size repo, docs and tool outputs fit in one session
Strong tool callingMulti-step agent runs (search → read → edit → test) stay on rails
Code-tunedFewer wrong-file edits, better diff quality on refactors
Premium pricingHigher input rate than cheaper models — worth it for the jobs only it can do

Get your Kimi key in four steps

  1. Register at api.novatoken.dev — email only.
  2. Top up $5 with any card (USD, no subscription).
  3. Create a key — select moonshotai/Kimi-K2.7-Code in the model dropdown to lock the key to Kimi, or keep auto.
  4. Point your editor at https://api.novatoken.dev/v1 — Cursor, Cline, Roo Code, Continue all work.
# quick sanity check
curl https://api.novatoken.dev/v1/chat/completions \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{"model":"moonshotai/Kimi-K2.7-Code",
         "messages":[{"role":"user","content":"List the files you would touch to rename this function"}]}'

When to use Kimi vs the cheaper models

A pragmatic pattern many customers use: Kimi for the heavy lift (multi-file refactors, agent runs that need the full repo), DeepSeek-V4-Flash for reasoning and docs, Qwen for quick fixes (~2s first token, $0.10 / $0.30 per 1M). All of it runs on one key and one balance — you are never locked into a single model's billing.

And if you don't want to think about it at all, auto routes each request to a suitable model and bills at that model's own rate.

FAQ

Is Kimi-K2.7-Code expensive?

It is the premium option on the platform — the input rate is higher than DeepSeek or GLM, because you are paying for long-context agentic performance. Use it for the jobs that need it (big refactors, tool-heavy runs) and route cheap fixes to Qwen or GLM on the same key.

Can Cursor or Cline use it?

Yes — Kimi-K2.7-Code is the model many customers select inside Cursor and Cline for large multi-file edits. Full setup steps are on our Cursor guide.

Does tool calling and streaming work?

Yes. SSE streaming, function/tool calling and JSON mode are all supported — which is exactly what coding agents rely on.

Get a Kimi K2 key for $5

One key for DeepSeek, Kimi, Qwen and GLM. Card payment, USD, $5 to start.

Buy $5 of usage