> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Kimi (Moonshot)

> Moonshot's Kimi K2.6 agentic flagship and K2.5 previous-gen on Kyma.

## Active models

| Model ID    | Generation       | Context | Speed  | Best For                   |
| ----------- | ---------------- | ------- | ------ | -------------------------- |
| `kimi-k2.6` | Current flagship | 262K    | Medium | Agentic coding, multimodal |
| `kimi-k2.5` | Previous-gen     | 262K    | Medium | Agentic coding, multimodal |

## Recommendation

**Use `kimi-k2.6` for AI agents** — Moonshot's newest agentic flagship (April 2026) with reasoning + vision, 262K context, and improved agentic evals over K2.5. Maps to the `agent` and `best-agent` aliases.

```python theme={null}
from openai import OpenAI

client = OpenAI(base_url="https://kymaapi.com/v1", api_key="ky-...")

response = client.chat.completions.create(
    model="kimi-k2.6",
    messages=[{"role": "user", "content": "Build a web scraper that..."}],
    tools=[{
        "type": "function",
        "function": {
            "name": "scrape_url",
            "description": "Scrape a URL and return its content",
            "parameters": {"type": "object", "properties": {"url": {"type": "string"}}}
        }
    }]
)
```

## Previous-gen

`kimi-k2.5` is still active and available for existing integrations. No behavior change — it remains stable. If you're on K2.5 and want the latest, update your model ID to `kimi-k2.6` or switch to the `agent` alias.

## Model aliases

| Alias        | Resolves to |
| ------------ | ----------- |
| `agent`      | `kimi-k2.6` |
| `best-agent` | `kimi-k2.6` |

```python theme={null}
model="agent"  # → kimi-k2.6
```
