TokenRaAI Model Catalog
Kimi K2.8 Preview - Coding model via TokenRa

Kimi K2.8 Preview API - 1M Context Coding Agent

Use one TokenRa API key to access Kimi K2.8 Preview from Moonshot AI for code completion, large-codebase refactoring, coding Agents, and multimodal development workflows. It combines a 1M-token context window with adjustable thinking and OpenAI-compatible integration.

What Kimi K2.8 Preview is

Kimi K2.8 Preview is Moonshot AI's coding-focused model that became the default engine in Kimi Code on September 11, 2026. It is a silent upgrade to the default Kimi Code coding model rather than a standalone open-weight release, with a 1M-token context window, adjustable thinking, and multimodal input.

01

Coding and agents

Built for code completion, everyday development, and coding Agent tasks across long-running workflows.

02

1M-token context

Handle large repositories, long documents, and multi-turn history in a 1,048,576-token context window.

03

Adjustable thinking

Choose low, high, or max thinking, with max as the default.

Where it fits

It is built for coding workflows where long context, adjustable thinking, and agentic execution matter.

  • Large-codebase refactoring: trace dependencies across files, apply coordinated edits, and run tests to verify the change.
  • Code completion: turn repository context and precise requirements into implementation-ready functions, modules, and fixes.
  • Coding Agents: plan multi-step tasks, call tools, inspect results, and continue iterating until the task is complete.
  • Screenshot and screen-recording to code: use image and video input to reproduce interfaces, diagnose visual defects, and refine rendered output.

Architecture and Agent capabilities

Kimi K2.8 Preview is a hosted coding-model upgrade delivered through Kimi Code and enabled API gateways. This page does not provide a downloadable weight package; confirm deployment and access details in the official Moonshot AI documentation.

  • Native multimodal: It supports text, image, and video input for vision-in-the-loop work.
  • Reasoning: Thinking can be adjusted with reasoning_effort values low, high, and max. Turning thinking off routes requests to the non-thinking version of Kimi K2.8 Preview.
  • Tools: Function calling, tool_choice, and JSON Schema structured output support Agent integrations.
  • Access model: Kimi K2.8 Preview is a silent upgrade to the default Kimi Code coding model, not a standalone downloadable open-weight release.

Kimi K2.8 Preview vs Kimi K3 vs K2.7 Code HighSpeed

All three models serve the Kimi Code family. Choose based on capability, context, reasoning depth, and output speed.

ComparisonKimi K3K2.8 PreviewK2.7 Code (HighSpeed)
PositioningStrongest flagship for large projects, deep reasoning, and complex long-context Agents.Near-K3 performance with higher thinking efficiency; the recommended daily coding model.Previous-generation coding model for speed-first workloads.
Model IDk3 / k3-256kkimi-for-coding (official Kimi Code) / kimi-k2.8-preview (TokenRa gateway)kimi-for-coding-highspeed
Parameter scale2.8T flagship-scale MoE model.Not publicly disclosed; performance is reported close to K3.Previous-generation K2-series coding model.
Context windowUp to 1M on supported tiers; confirm the enabled context in the live console.Up to 1M across membership tiers.256K.
Thinkinglow / high / max; default high.low / high / max; default max.Thinking fixed on; cannot be disabled.
Coding and Agent abilityBest for long-horizon engineering and deep reasoning.Near-K3 capability for code completion, routine development, and coding Agents.Strong, but weaker than the newer model overall.
Multimodal inputImage + video.Image + video.Image + video.
Output speedStandard.Standard.HighSpeed version is about 5-6x faster.
Availabilityhigher membership tiers and above; Tier availability varies; confirm access in the live console.All membership tiers.HighSpeed availability varies; confirm access in the live console.
API reference pricingPricing varies by channel; confirm the live console.TokenRa: $0.80 input / $3.35 output / $0.14 cached read per 1M tokens.Pricing varies by channel; confirm the live console.
Best choiceMaximum capability.Daily coding and value.Maximum output speed.
  • Choose Kimi K3 when you need the strongest model for large projects, deep reasoning, and complex long-context Agent tasks, and can accept higher membership requirements and usage.
  • Choose Kimi K2.8 Preview for daily development and value: it is reported close to K3, more thinking-efficient, and makes 1M context available across all membership tiers.
  • Choose Kimi K2.7 Code HighSpeed only when output speed is the priority; it is the previous-generation option and is otherwise surpassed by K2.8 Preview in context, thinking efficiency, and overall capability.

Integrate Kimi K2.8 for coding Agents

Load only the repository files and cross-file dependencies needed for the task into the 1M-token window. Then let the Agent run tests, inspect diffs, and verify that the change actually works.

1

Load repository context

Assemble the relevant modules and dependencies on demand instead of sending the entire repository on every request.

2

Run and verify the task

Ask the Agent to make the change, run the test suite, inspect the diff, and report failures with likely causes.

3

Control tokens and cost

Cached reads are about 5.7x cheaper than standard input. Design for cache hits and set an output limit for each request.

curl https://tokenra.io/zen/go/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"kimi-k2.8-preview","messages":[{"role":"user","content":"Refactor the attached module to remove duplicated state, run the test suite, and report which tests fail with the likely cause."}],"reasoning_effort":"high"}'

Pricing

Kimi K2.8 Preview is a paid model through TokenRa. Current rates are $0.80 per 1M input tokens, $3.35 per 1M output tokens, and $0.14 per 1M cached read tokens. Confirm current availability and account limits in the live console.

Input

$0.80 / 1M tokens

Standard input pricing.

Output

$3.35 / 1M tokens

Generated output pricing.

Cached read

$0.14 / 1M tokens

Cached input read pricing.

Moonshot AI model

Kimi K2.8 Preview is developed by Moonshot AI. TokenRa provides the API gateway and is not the model developer or owner.

Production checklist

  • Keep API keys on the server and separate credentials by environment or workload.
  • Set explicit timeouts, bounded retries, and request tracing before routing user traffic.
  • Evaluate model behavior with representative inputs instead of assuming versions are interchangeable.
  • Monitor usage and cost in the console, then add application-side budgets and limits.
  • Review provider terms, privacy requirements, and output rights for your use case.

API FAQ

Is Kimi K2.8 Preview a new model?

Kimi K2.8 Preview is a silent upgrade to the default Kimi Code coding model rather than a separately downloadable standalone model.

Do I need to change my Kimi Code config?

No. The official Kimi Code default identifier remains kimi-for-coding, so existing clients keep working without configuration changes.

What is the context window?

Kimi K2.8 Preview supports a 1M-token context window across membership tiers.

Kimi K2.8 Preview vs Kimi K3 - which should I use?

Choose Kimi K3 for maximum capability on the hardest long-horizon tasks. Choose Kimi K2.8 Preview for daily coding, efficient thinking, and 1M context across all tiers.

Can I turn off thinking?

Yes. Turning thinking off routes requests to the non-thinking version of Kimi K2.8 Preview.

What are the thinking levels?

Kimi K2.8 Preview supports low, high, and max thinking levels, with max as the default.

“Kimi”, “Moonshot AI”, and related names may be trademarks of their respective rights holders. TokenRa is an independent API gateway and this page is not an official vendor page or endorsement.