Skip to main content
Providers

Moonshot AI

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

Quick start

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

Models

Show models (5)
  • kimi-k2-0711-preview
  • kimi-k2-0905-preview
  • kimi-k2-thinking
  • kimi-k2-thinking-turbo
  • kimi-k2-turbo-preview

Table of Contents