moonshotaiVision

MoonshotAI: Kimi K2.7 Code

MoonshotAI: Kimi K2.7 Code is a coding-focused model in Moonshot AI's Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts. It uses a native multimodal mixture-of-experts...

Context
262k tokens
Input / 1M tokens
$0.61
Output / 1M tokens
$3.07
Benchmark

Pricing

Input tokens$0.61 per 1M tokens
Output tokens$3.07 per 1M tokens
Cache read$0.13 per 1M tokens

Technical details

Model IDmoonshotai/kimi-k2.7-code
Context window262k tokens
Input modalitiestext, image
Output modalitiestext
TokenizerOther
Max output tokens262,144

Use with MegaBrain

import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://getmegabrain.com/api/gateway/v1',
  apiKey: process.env.MEGABRAIN_API_KEY,
})

const response = await client.chat.completions.create({
  model: 'moonshotai/kimi-k2.7-code',
  messages: [{ role: 'user', content: 'Hello!' }],
})

Ready to use MoonshotAI: Kimi K2.7 Code?

Get an API key and start making requests in minutes.

Get an API key