Moonshot Kimi-K2.6 upgrades reasoning and coding over K2.5. Requires temperature=1 (handled automatically by NovAI).
curl https://aiapi-pro.com/v1/chat/completions \
-H "Authorization: Bearer $NOVAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2.6",
"messages": [{"role":"user","content":"Refactor this function to be more readable and explain why."}]
}'
from openai import OpenAI
client = OpenAI(
base_url="https://aiapi-pro.com/v1",
api_key="YOUR_NOVAI_API_KEY",
)
resp = client.chat.completions.create(
model="kimi-k2.6",
messages=[{"role":"user","content":"Refactor this function to be more readable and explain why."}],
)
print(resp.choices[0].message.content)