# Kimi K3

Canonical page: https://agentsky.dev/models/moonshotai/kimi-k3
JSON record: https://gateway.agentsky.dev/v1/models/moonshotai/kimi-k3

Kimi K3 is a text and image and video-input model by Moonshot AI, available through the AgentSky API as moonshotai/kimi-k3 at $2.10 per million input tokens and $10.50 per million output tokens, with a 1M context window.

Moonshot's flagship multimodal model, with always-on reasoning and a selectable effort level.

## Facts

- **Model id:** `moonshotai/kimi-k3`
- **Maker:** Moonshot AI
- **Input modalities:** Text, Image, Video
- **Context:** 1M
- **Max output tokens:** 1,048,576
- **Released:** Jul 22, 2026
- **Aliases:** `moonshotai/kimi-k3`, `moonshotai/k3`, `kimi-k3`

## Pricing

USD per million tokens on the default plan. Signed-in pages show your own plan's price; every response carries the cost of that call in `usage.cost`.

| Meter | Per 1M tokens |
|---|---|
| Input | $2.10 |
| Output | $10.50 |
| Cache read | $0.21 |
| Cache write | $2.10 |

## Use it

Anthropic wire base URL: `https://gateway.agentsky.dev`. OpenAI wire base URL: `https://gateway.agentsky.dev/v1`. Authenticate with an AgentSky API key (`ast_…`) and pass the model id.

### Anthropic SDK

```js
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://gateway.agentsky.dev",
  apiKey: process.env.AGENTSKY_API_KEY, // ast_…
});

const message = await client.messages.create({
  model: "moonshotai/kimi-k3",
  max_tokens: 256,
  messages: [{ role: "user", content: "Summarise this ticket." }],
});
console.log(message.usage.cost); // USD, in the response
```

### Claude Code

```bash
export ANTHROPIC_BASE_URL="https://gateway.agentsky.dev"
export ANTHROPIC_AUTH_TOKEN="$AGENTSKY_API_KEY"
export ANTHROPIC_MODEL="moonshotai/kimi-k3"

claude
```

### OpenAI SDK

```js
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://gateway.agentsky.dev/v1",
  apiKey: process.env.AGENTSKY_API_KEY, // ast_…
});

const completion = await client.chat.completions.create({
  model: "moonshotai/kimi-k3",
  messages: [{ role: "user", content: "Summarise this ticket." }],
});
console.log(completion.usage.cost); // USD, in the response
```

### Codex

```bash
export OPENAI_BASE_URL="https://gateway.agentsky.dev/v1"
export OPENAI_API_KEY="$AGENTSKY_API_KEY"

codex --model moonshotai/kimi-k3
```

### OpenCode

```js
// opencode.json — then switch models any time with /models
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "agentsky": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "AgentSky",
      "options": {
        "baseURL": "https://gateway.agentsky.dev/v1",
        "apiKey": "{env:AGENTSKY_API_KEY}"
      },
      "models": { "moonshotai/kimi-k3": {} }
    }
  }
}
```

## Run it with an agent

- [Hermes + Kimi K3](https://agentsky.dev/agents/hermes/with/kimi-k3)
- [Claude Code + Kimi K3](https://agentsky.dev/agents/claude-code/with/kimi-k3)
- [Codex + Kimi K3](https://agentsky.dev/agents/codex/with/kimi-k3)
- [OpenClaw + Kimi K3](https://agentsky.dev/agents/openclaw/with/kimi-k3)
- [pi + Kimi K3](https://agentsky.dev/agents/pi/with/kimi-k3)
- [DeepSeek Harness + Kimi K3](https://agentsky.dev/agents/dsh/with/kimi-k3)
- [Kimi Code + Kimi K3](https://agentsky.dev/agents/kimi-code/with/kimi-k3)
- [OpenCode + Kimi K3](https://agentsky.dev/agents/opencode/with/kimi-k3)
- [Cline + Kimi K3](https://agentsky.dev/agents/cline/with/kimi-k3)
- [DeepAgents + Kimi K3](https://agentsky.dev/agents/deepagents/with/kimi-k3)
- [goose + Kimi K3](https://agentsky.dev/agents/goose/with/kimi-k3)
- [Grok Build + Kimi K3](https://agentsky.dev/agents/grok-build/with/kimi-k3)
- [Kilo + Kimi K3](https://agentsky.dev/agents/kilo/with/kimi-k3)
- [MiniMax Code + Kimi K3](https://agentsky.dev/agents/minimax-code/with/kimi-k3)
- [Qwen Code + Kimi K3](https://agentsky.dev/agents/qwen-code/with/kimi-k3)
- [OpenHands + Kimi K3](https://agentsky.dev/agents/openhands/with/kimi-k3)

## Questions

### What is Kimi K3?

Kimi K3 is a model from Moonshot AI. Moonshot's flagship multimodal model, with always-on reasoning and a selectable effort level.

### How much does Kimi K3 cost?

$2.10 / $10.50 per million tokens at the prices shown, for input and output respectively. The exact price of every call comes back in the response as usage.cost, so you never have to compute it.

### What is the context length of Kimi K3?

1M tokens, and it writes up to 1M tokens in one reply. These are the limits listed for this model in the current AgentSky catalog.

### Which clients can call Kimi K3?

Anything that speaks the Anthropic Messages API, which covers the Anthropic SDK and Claude Code or the OpenAI-compatible request format. Point the client's base URL at the gateway, use an AgentSky key, and pass moonshotai/kimi-k3 as the model.

### How do I name Kimi K3 in a request?

The gateway accepts moonshotai/kimi-k3, moonshotai/k3, kimi-k3. Any of them resolves to the same model, so an existing integration usually needs no change to its model string.

### Can Kimi K3 read images?

Yes. Its listed input types are text, image, video. Include the image with your request; image input does not imply image generation.

### What output can Kimi K3 produce?

The listed output types are text. This model returns text. Producing image, video or audio files requires a suitable tool or another model; it is not included in text generation.

### How should I plan a long prompt for Kimi K3?

Plan your instructions, conversation history and source material around the 1M-token context limit, leaving room for the response. The listed response ceiling is 1M tokens. A larger window lets you supply more relevant material; it does not make unrelated content useful.

### What would 10,000 input tokens and 2,000 output tokens cost with Kimi K3?

At the displayed input and output rates, the model-token subtotal is $0.042. This example assumes uncached input and excludes additional pricing categories, tool calls and agent runtime. Actual usage determines the final charge.

### How is cached input priced for Kimi K3?

The catalog lists $0.21 per million cache-read tokens. Cache writes are listed at $2.1 per million tokens. Repeating a prompt does not by itself guarantee a cache hit; only usage reported as cached receives that rate.

### Does the Kimi K3 token price cover an entire agent task?

No. The model price covers the model usage described above. A task can also incur tool and runtime charges, and several model calls may be needed to complete it. Compare total task usage when evaluating cost.

### How do I use Kimi K3 on AgentSky?

The composer above preselects Kimi K3 for a compatible agent. Enter a concrete task, select any tools or connectors it needs, and send. Sign in if prompted; paid execution requires available credits.
