Kimi K2.7 Code

by Moonshot AI
moonshotai/kimi-k2.7-code

Kimi K2.7 Code is a text and image and video-input model by Moonshot AI, available through the AgentSky API as moonshotai/kimi-k2.7-code at $1.045 per million input tokens and $4.40 per million output tokens, with a 262K context window.

A coding-oriented multimodal model supporting extended reasoning.

Run Kimi K2.7 Code with an agent

Each guide pairs this model with a compatible agent and opens the composer with both selected.

Pricing

USD per million tokens, using your plan when signed in.
MeterPer 1M tokens
InputPrice: $1.045
OutputPrice: $4.40
Cache readPrice: $0.209
Cache writePrice: $1.045

Every response carries its own cost. Balance and per-call records: /v1/credits and /v1/generation.

Use it

Point your client at the gateway and pass this model id. Nothing else changes.
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://gateway.agentsky.dev",
  apiKey: process.env.AGENTSKY_API_KEY, // ast_…
});

const message = await client.messages.create({
  model: "moonshotai/kimi-k2.7-code",
  max_tokens: 256,
  messages: [{ role: "user", content: "Summarise this ticket." }],
});
console.log(message.usage.cost); // USD, in the response

Questions