Kimi K3 is Kimi's flagship model, designed for long-range programming and end-to-end knowledge work, featuring 1M token context and leading-edge comprehensive intelligence.
Explore Kimi K3's Playground — an interactive environment to test models, run queries in real time. Try prompts, adjust parameters, and iterate instantly to accelerate development and validate use cases.
Explore competitive pricing for Kimi K3, designed to fit various budgets and usage needs. Our flexible plans ensure you only pay for what you use, making it easy to scale as your requirements grow. Discover how Kimi K3 can enhance your projects while keeping costs manageable.
| Comet Price (USD / M Tokens) | Official Price (USD / M Tokens) | Discount |
|---|---|---|
Input:$2.4/M Output:$12/M | Input:$3/M Output:$15/M | -20% |
Access comprehensive sample code and API resources for Kimi K3 to streamline your integration process. Our detailed documentation provides step-by-step guidance, helping you leverage the full potential of Kimi K3 in your projects.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["COMETAPI_KEY"],
base_url="https://api.cometapi.com/v1",
max_retries=0,
)
completion = client.chat.completions.create(
model="kimi-k3",
messages=[
{
"role": "system",
"content": (
"You are Kimi, an AI assistant provided by Moonshot AI. "
"You are proficient in Chinese and English conversations. "
"You provide users with safe, helpful, and accurate answers. "
"You will reject any questions involving terrorism, racism, "
"or explicit content. Moonshot AI is a proper noun and should "
"not be translated."
),
},
{
"role": "user",
"content": "Hello, my name is Li Lei. What is 1+1?",
},
],
max_completion_tokens=1024,
)
print(f"Completion ID: {completion.id}")
print(completion.choices[0].message.content)The reason Kimi K3 has multiple snapshots may include potential factors such as variations in output after updates requiring older snapshots for consistency, providing developers a transition period for adaptation and migration, and different snapshots corresponding to global or regional endpoints to optimize user experience. For detailed differences between versions, please refer to the official documentation.
| version |
|---|
| kimi-k3 |