# Moonshot AI's Kimi K2 0905 model is now supported in Vercel AI Gateway

**Published:** September 4, 2025 | **Authors:** Walter Korman, Rohan Taneja, Harpreet Arora

---

You can now access [Kimi K2 0905](https://github.com/MoonshotAI/Kimi-K2), a new model from [Moonshot AI](https://www.moonshot.ai/) focused on agentic coding with a 256K context window, using Vercel [AI Gateway](https://vercel.com/ai-gateway) with no other provider accounts required.

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 v5]( https://ai-sdk.dev/docs/introduction), start by installing the package:

```bash
pnpm i ai
```

Then set the model to `moonshotai/kimi-k2-0905`:

```tsx
import { streamText } from 'ai'
const result = streamText({
  model: 'moonshotai/kimi-k2-0905',
  prompt: 'How is a trillion parameter oss model possible?'
})
```

Includes built-in [observability](https://vercel.com/docs/ai-gateway/observability), [Bring Your Own Key support](https://vercel.com/docs/ai-gateway#configuring-your-own-provider-keys-byok), and intelligent [provider routing](https://vercel.com/docs/ai-gateway/provider-options) with automatic retries.

To deliver high performance to Kimi K2, AI Gateway leverages multiple model providers under the hood, including direct to Moonshot AI, Groq, and Fireworks AI.

Learn more about [AI Gateway](https://vercel.com/ai-gateway).

---

📚 **More updates:** [View all changelog entries](/changelog/sitemap.md) | [Blog](/blog/sitemap.md)