Moonshot AI's Kimi K2 Thinking models are now available in Vercel AI Gateway

Authors

1 min read

You can now access Moonshot AI's latest and most powerful thinking models, Kimi K2 Thinking and Kimi K2 Thinking Turbo, using Vercel's AI Gateway with no other provider accounts required.

Kimi K2 Thinking is oss and excels at deep reasoning, handling up to 200–300 sequential tool calls, and achieves top results on benchmarks for reasoning and coding. Kimi K2 Thinking Turbo is a high speed version of Kimi K2 Thinking and is best suited for scenarios requiring both deep reasoning and low latency.

AI Gateway lets you call the model with a consistent unified API and just a single string update, track usage and cost, and configure performance optimizations, retries, and failover for higher-than-provider-average uptime.

To use it with the AI SDK, set the model to moonshotai/kimi-k2-thinking or moonshotai/kimi-k2-thinking-turbo:

import { streamText } from 'ai'
const result = streamText({
model: "moonshotai/kimi-k2-thinking",
prompt: "What are the benefits to using a thinking model \
with deep reasoning capabilities?"
})

Includes built-in observability, Bring Your Own Key support, and intelligent provider routing with automatic retries.

Learn more about AI Gateway, view the AI Gateway model leaderboard or try it in our model playground.

AI Gateway: Track top AI models by usage

The AI Gateway model leaderboard ranks the most used models over time by total token volume across all traffic through the Gateway. Updates regularly.

View the leaderboard