Moonshot AI Kimi K2 reasoning models — coding, agentic tasks, and vision, 256k context.
The Kimi K2 series models are available through Upmore via the standard Chat Completions API (/v1/chat/completions). All of them are reasoning models — they think before answering and return the chain-of-thought in reasoning_content. Context window: 256k tokens.
from openai import OpenAIclient = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.upmore.net/v1")response = client.chat.completions.create( model="kimi-k2.7-code", messages=[ {"role": "user", "content": "Write a Python function that merges two sorted lists."} ])print(response.choices[0].message.content)