AI Gateway

/

Kimi K2

Kimi K2 by Moonshot AI

State of the art language model for agentic and coding tasks

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