← All models

KAT-Coder Air 2.5
kwaipilot/kat-coder-air-v2.5text
Lightweight KAT-Coder: the same agentic coding workflows at a fifth of Pro price, answers in seconds. 256k context, up to 80k output.
Pricing
Request / 1M
Response / 1M
Parameters
messagesrequiredtemperature0–2max_tokensoptionalstreamtrue · falseHow to use via API
from openai import OpenAIclient = OpenAI(base_url="https://api.mixen.ai/v1", api_key="mxn-...")resp = client.chat.completions.create(model="kwaipilot/kat-coder-air-v2.5",messages=[{"role": "user", "content": "Привет"}],temperature=0.7,max_tokens=1024,stream=False,)print(resp.choices[0].message.content)# Стриминг: stream=True — ответ приходит чанкамиfor chunk in client.chat.completions.create(model="kwaipilot/kat-coder-air-v2.5",messages=[{"role": "user", "content": "Привет"}],stream=True,):print(chunk.choices[0].delta.content or "", end="", flush=True)

