AI Gateway

Kimi K2 Thinking

moonshotai/kimi-k2-thinking

Kimi K2 Thinking is an advanced open-source thinking model by Moonshot AI. It can execute up to 200 – 300 sequential tool calls without human interference, reasoning coherently across hundreds of steps to solve complex problems. Built as a thinking agent, it reasons step by step while using tools, achieving state-of-the-art performance on Humanity's Last Exam (HLE), BrowseComp, and other benchmarks, with major gains in reasoning, agentic search, coding, writing, and general capabilities.

index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'moonshotai/kimi-k2-thinking',
prompt: 'Why is the sky blue?'
})