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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Kimi API - Access Moonshot AI Models via AIsa

> Current AIsa guide to Moonshot Kimi model IDs, context windows, capabilities, and endpoints, including kimi-k3, kimi-k2.7-code, kimi-k2.5, and kimi-k2.6.

AIsa gives you OpenAI-compatible access to Moonshot AI's Kimi models under one AIsa key. Kimi routes are useful for agentic coding, long-context text, document vision, visual coding, and video understanding.

All current Kimi models accept `POST /v1/chat/completions`, Anthropic-compatible `POST /v1/messages`, and `POST /v1/responses`.

## Supported Kimi models

| Model ID | Context | Capabilities | Best for |
| - | -: | - | - |
| `kimi-k3` | — | Text | Newest Kimi generation; Moonshot's highest-tier route on AIsa |
| `kimi-k2.7-code` | — | Text | Coding-focused K2.7 route |
| `kimi-k2.6` | 128,000 | Text | General Kimi reasoning and long-context text |
| `kimi-k2.5` | 262,144 | Coding, Text, Video, Vision | Visual coding, document vision, long-video understanding |

Current prices for these models are on [aisa.one/models](https://aisa.one/models).

Context windows and capability tags for `kimi-k3` and `kimi-k2.7-code` are not published in the current gateway metadata — check [aisa.one/models](https://aisa.one/models) for their live limits.

## Quickstart

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

client = OpenAI(api_key="YOUR_AISA_API_KEY", base_url="https://api.aisa.one/v1")

response = client.chat.completions.create(
    model="kimi-k2.5",
    messages=[{"role": "user", "content": "Analyze this UI screenshot and suggest implementation changes."}]
)
print(response.choices[0].message.content)
```

## Common choices

| Need | Use |
| - | - |
| Latest Kimi generation | `kimi-k3` |
| Coding-focused Kimi route | `kimi-k2.7-code` |
| Vision, visual coding, documents, or video | `kimi-k2.5` |
| General Kimi text reasoning | `kimi-k2.6` |

## Data privacy

AIsa has an enterprise agreement with Moonshot AI covering Kimi requests. For organization-specific compliance requirements, [contact us](mailto:developer@aisa.one).

## Next

* [All Chinese AI models](https://aisa.one/docs/guides/chinese-llms.md)
* [DeepSeek models](https://aisa.one/docs/guides/chinese-llms/deepseek.md)
* [AI model pricing](https://aisa.one/docs/guides/pricing.md#models)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.