Moonshot AI

Moonshot AI: Kimi K2.7 Code

stable

Kimi K2.7 Code is available through Everstack's OpenAI-compatible gateway with routing, fallback, retries, and observability.

kimi-k2.7-codekimi-k2released Jun 12, 2026
Context
262.1K
tokens
Max output
262.1K
tokens
Input
$0.95
per 1M
Output
$4.00
per 1M

Activity

Daily period usage
Aggregated managed Everstack traffic. Buckets below 5 tenants or 100 requests are withheld.

Providers

Pricing

ItemPriceUnit
Input$0.95per 1M tokens
Output$4.00per 1M tokens
Cache read$0.19per 1M tokens

Performance

Reliability

Compare

Compare usage and performance
Place this model beside up to three other catalog models.

Capabilities

Capabilities
Modalities
Input
Output
Details
Model ID
kimi-k2.7-code
Family
kimi-k2
Status
stable
Knowledge
Jan 1, 2025
Released
Jun 12, 2026
Gateway Config
API
v1
Auth
MOONSHOT_API_KEY
Discovery
static
Provider type
static

Quick Start

index.ts
import Everstack from "@everstack/node";const client = new Everstack({  apiKey: process.env.EVERSTACK_API_KEY!,  baseUrl: "https://{instance}.{region}.everstack.ai",});const completion = await client.chat.completions.create({  model: "@moonshot/kimi-k2.7-code",  messages: [{ role: "user", content: "Explain vector cache routing." }],});console.log(completion.choices[0]?.message?.content);

Endpoint

Base URL
https://api.moonshot.ai/v1
Chat completions
https://api.moonshot.ai/v1/chat/completions
Model
kimi-k2.7-code
Auth env
MOONSHOT_API_KEY

Kimi K2.7 Code FAQ

How much does the Kimi K2.7 Code API cost?

Through Moonshot AI, Kimi K2.7 Code costs $0.95 per 1M input tokens and $4.00 per 1M output tokens. The lowest input price in the catalog is $0.67 per 1M tokens on OpenRouter.

What is the context window of Kimi K2.7 Code?

Kimi K2.7 Code accepts up to 262.1K tokens of context and returns up to 262.1K output tokens on Moonshot AI.

Which providers offer Kimi K2.7 Code?

Kimi K2.7 Code is available from OpenRouter, Fireworks AI, Hugging Face, Moonshot AI and Together AI. Everstack can route between them with automatic fallback when one is unavailable.

What can Kimi K2.7 Code do?

Kimi K2.7 Code supports chat, function calling, image input and reasoning. It accepts text, image and video input.

How do I call Kimi K2.7 Code through Everstack?

Point any OpenAI-compatible SDK at your Everstack gateway and set the model to @moonshot/kimi-k2.7-code. Everstack adds retries, provider fallback, caching, per-tenant budgets and OpenTelemetry traces for every request.