Coding and agents
Built for code completion, everyday development, and coding Agent tasks across long-running workflows.
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.
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.
Built for code completion, everyday development, and coding Agent tasks across long-running workflows.
Handle large repositories, long documents, and multi-turn history in a 1,048,576-token context window.
Choose low, high, or max thinking, with max as the default.
It is built for coding workflows where long context, adjustable thinking, and agentic execution matter.
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.
reasoning_effort values low, high, and max. Turning thinking off routes requests to the non-thinking version of Kimi K2.8 Preview.tool_choice, and JSON Schema structured output support Agent integrations.All three models serve the Kimi Code family. Choose based on capability, context, reasoning depth, and output speed.
| Comparison | Kimi K3 | K2.8 Preview | K2.7 Code (HighSpeed) |
|---|---|---|---|
| Positioning | Strongest 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 ID | k3 / k3-256k | kimi-for-coding (official Kimi Code) / kimi-k2.8-preview (TokenRa gateway) | kimi-for-coding-highspeed |
| Parameter scale | 2.8T flagship-scale MoE model. | Not publicly disclosed; performance is reported close to K3. | Previous-generation K2-series coding model. |
| Context window | Up to 1M on supported tiers; confirm the enabled context in the live console. | Up to 1M across membership tiers. | 256K. |
| Thinking | low / high / max; default high. | low / high / max; default max. | Thinking fixed on; cannot be disabled. |
| Coding and Agent ability | Best 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 input | Image + video. | Image + video. | Image + video. |
| Output speed | Standard. | Standard. | HighSpeed version is about 5-6x faster. |
| Availability | higher 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 pricing | Pricing 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 choice | Maximum capability. | Daily coding and value. | Maximum output speed. |
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.
Assemble the relevant modules and dependencies on demand instead of sending the entire repository on every request.
Ask the Agent to make the change, run the test suite, inspect the diff, and report failures with likely causes.
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"}'
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.
Standard input pricing.
Generated output pricing.
Cached input read pricing.
Kimi K2.8 Preview is developed by Moonshot AI. TokenRa provides the API gateway and is not the model developer or owner.
Kimi K2.8 Preview is a silent upgrade to the default Kimi Code coding model rather than a separately downloadable standalone model.
No. The official Kimi Code default identifier remains kimi-for-coding, so existing clients keep working without configuration changes.
Kimi K2.8 Preview supports a 1M-token context window across membership tiers.
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.
Yes. Turning thinking off routes requests to the non-thinking version of Kimi K2.8 Preview.
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.