moonshotai
MoonshotAI: Kimi K2 0711
Kimi K2 Instruct is a large-scale Mixture-of-Experts (MoE) language model developed by Moonshot AI, featuring 1 trillion total parameters with 32 billion active per forward pass. It is optimized for...
Context
131k tokens
Input / 1M tokens
$0.57
Output / 1M tokens
$2.30
Benchmark
—
Pricing
Input tokens$0.57 per 1M tokens
Output tokens$2.30 per 1M tokens
Technical details
Model IDmoonshotai/kimi-k2
Context window131k tokens
Input modalitiestext
Output modalitiestext
TokenizerOther
Max output tokens32,768
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',
messages: [{ role: 'user', content: 'Hello!' }],
})Ready to use MoonshotAI: Kimi K2 0711?
Get an API key and start making requests in minutes.
Get an API key