Kimi K2 is a state-of-the-art mixture-of-experts (MoE) language model with 32 billion activated parameters and 1 trillion total parameters. Trained with the Muon optimizer, Kimi K2 achieves exceptional performance across frontier knowledge, reasoning, and coding tasks while being meticulously optimized for agentic capabilities.
import { streamText } from 'ai'
const result = streamText({ model: 'moonshotai/kimi-k2', prompt: 'Why is the sky blue?'})Try out Kimi K2 by Moonshot AI. Usage is billed to your team at API rates. Free users get $5 of credits every 30 days, and you are considered a free user if you haven't made a payment.
Chat with
Powered by AI Gateway
| Provider |
|---|
| Model |
|---|