import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.tokenfactory.nebius.com/v1/",
api_key=os.environ.get("NEBIUS_API_KEY")
)
response = client.chat.completions.create(
model="moonshotai/Kimi-K3",
messages=[{"role": "user", "content": "Explain quantum computing in one sentence."}]
)
print(response.choices[0].message.content)▶ Try it in the Token Factory Playground
sample code : kimi-k3-1.ipynb
Run it locally as follows
# prepare .env file
cp .env.example .env
# Add your NEBIUS_API_KEY to .env
# run the notebook
uv run jupyter lab kimi-k3-1.ipynbKimi K3 is Moonshot AI's flagship reasoning model, released July 2026 — a major step up in intelligence over the Kimi K2.5 / K2.6 / K2.7 lineage, with multimodal (text + image) input and a 1M-token context window.
- Provider: Moonshot AI (Kimi)
- Architecture: Proprietary — 2.8T parameters
- Context window: 1M tokens
- Strengths: Reasoning, knowledge, mathematics, coding, agentic tasks, multimodal (image) understanding
- License: Proprietary (Moonshot AI)
- First Open weights model to approach 3 T parameter count.
- Scores 57 on the Artificial Analysis Intelligence Index, ranking #7 of 190 models (category median: 32)
- Multimodal input — supports text and image; outputs text
- Charlie in Token Factory RPG game built with Kimi 3
- Broswer playable Quake game
- fun demos created with K3
