KAT-Coder-Pro V2.5 API

kwaipilot/kat-coder-pro-v2.5
Kwaipilot's flagship agentic coding model — autonomously resolves issues and completes multi-step engineering tasks in real repositories.
Context
256K tokens
Input
$1.017796 / 1M tokens
Output
$4.071184 / 1M tokens

How to use KAT-Coder-Pro V2.5 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to kwaipilot/kat-coder-pro-v2.5.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "kwaipilot/kat-coder-pro-v2.5",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "kwaipilot/kat-coder-pro-v2.5",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"kwaipilot/kat-coder-pro-v2.5","messages":[{"role":"user","content":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

KAT-Coder-Pro V2.5 API Pricing

TypePrice
Input
$1.017796 / 1M tokens
Output
$4.071184 / 1M tokens
Cached input
$0.20631 / 1M tokens

The documented pricing caveat for KAT-Coder-Pro V2.5 is that cached input reads are billed separately at $0.15 per 1M tokens, while cache writes are $0 for all requests.

KAT-Coder-Pro V2.5 vs other models

ModelInputOutputContextBest for
$1.017796 / 1M tokens
$4.071184 / 1M tokens
256K tokens
Agentic workflows and structured output
$0.41262 / 1M tokens
$1.65048 / 1M tokens
256K tokens
Reasoning + agents
$1.16909 / 1M tokens
$1.71925 / 1M tokens
256K tokens
Reasoning + agents
$1.3754 / 1M tokens
$4.1262 / 1M tokens
256K tokens
Reasoning + agents

Frequently asked questions

KAT-Coder-Pro V2.5 has a 256,000 tokens context window.

KAT-Coder-Pro V2.5 takes image, text as input and returns text.

Use kwaipilot/kat-coder-pro-v2.5 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

KAT-Coder-Pro V2.5 is priced at input $1.017796 / 1M tokens, output $4.071184 / 1M tokens, cached input $0.20631 / 1M tokens.

Yes, KAT-Coder-Pro V2.5 can stream responses as they are generated.

Yes, KAT-Coder-Pro V2.5 accepts image input alongside text.

Yes, it supports tool calling and parallel tool calls.

Yes, web search is included as one of its features.

Start building with KAT-Coder-Pro V2.5

Get API Key
1000+ models, one API.