---
title: Moonshot AI
---

<!-- THIS FILE IS AUTO-GENERATED BY website/scripts/generate-model-docs.js. DO NOT EDIT MANUALLY. -->

# Moonshot AI

Use `moonshotai/<model>` with VoltAgent's model router.

## Quick start

```ts
import { Agent } from "@voltagent/core";

const agent = new Agent({
  name: "moonshotai-agent",
  instructions: "You are a helpful assistant",
  model: "moonshotai/kimi-k2-0711-preview",
});
```

## Environment variables

- `MOONSHOT_API_KEY`

## Provider package

`@ai-sdk/openai-compatible`

This provider uses the OpenAI-compatible adapter.

## Default base URL

`https://api.moonshot.ai/v1`

You can override the base URL by setting `MOONSHOTAI_BASE_URL`.

## Provider docs

- https://platform.moonshot.ai/docs/api/chat

## Models

<details>
  <summary>Show models (5)</summary>

- kimi-k2-0711-preview
- kimi-k2-0905-preview
- kimi-k2-thinking
- kimi-k2-thinking-turbo
- kimi-k2-turbo-preview

</details>
