← All models

Kimi K2.7 Code
moonshotai/kimi-k2.7-codetextVisionReasoning
Moonshot's coding-focused model in the Kimi K2 family: completes end-to-end programming tasks over long contexts — repo-wide edits, debugging, test work. Image input, 262k context.
Pricing
Request / 1M
Response / 1M
Parameters
messagesrequiredtemperature0–2max_tokensoptionalstreamtrue · falseimage_urlimage (data: URL)How 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="moonshotai/kimi-k2.7-code",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="moonshotai/kimi-k2.7-code",messages=[{"role": "user", "content": "Привет"}],stream=True,):print(chunk.choices[0].delta.content or "", end="", flush=True)

