Back to Models
Kimi K2 Instruct
moonshotai/kimi-k2-instruct
Moonshot AI
Chat
Description
Kimi K2 Instruct by Moonshot AI. This model supports chat capabilities. Main use: Chat, Coding Agents. Variant: JSON Mode.
Specifications
- Context Length:
- 128K tokens
- Variant:
- JSON Mode
- Parameters:
- 1 Trillion
- Input Modalities:
- Text
- Output Modalities:
- Text
- Main Use:
- Chat, Coding Agents
Pricing
- Input Cost:
- 2.00 Credits / 1M tokens
- Output Cost:
- 6.00 Credits / 1M tokens
Usage Example
const { Client } = require('ai-proxy-sdk');
const client = new Client({
consumerKey: process.env.BITMESH_CONSUMER_KEY,
consumerSecret: process.env.BITMESH_CONSUMER_SECRET,
baseUrl: process.env.BITMESH_API_BASE_URL || 'https://api.bitmesh.ai'
});
const response = await client.chat.completions.create({
model: 'moonshotai/kimi-k2-instruct',
messages: [
{ role: 'system', content: 'You are a helpful assistant.' },
{ role: 'user', content: 'What are some fun things to do with AI?' }
],
max_tokens: 1000
});