Kimi K2.7 Code
−30% vs MoonshotServed by Alibaba Cloud, which may process requests in its data centres in China.
Kimi K2.7 Code is Moonshot AI's coding-focused model for programming agents, with a 256K-token context and tool calling. It always reasons before answering; thinking cannot be turned off.
The real Moonshot model
Same weights, same API, same answers. We change only how you pay for it: one key for every maker, one bill, no separate account to open. Every figure on this page comes from Moonshot’s own page — check it.
Maker's own pagePrice
input / output · per 1M tokens
Alibaba Cloud
−30%Only on FlintBeam−30% on every request
Direct on Alibaba Cloud: $0.89 / $3.71
Daily discount. Today's price can change.
Context
245,760
up to 16,384 out
16,384 by default here
Modalities
What it would cost you
1000 tokens is roughly 750 English words.
How it is served
Requests are retried automatically if a provider is unavailable.
Similar models
Models built for the same kind of work, at a similar price.
Eligible models may have a daily discount below the maker's price. Daily discounts apply to eligible models and can change from day to day.
Use it from your code
from openai import OpenAI
# Works with the official openai package (pip install openai)
client = OpenAI(
base_url="https://api.flintbeam.com/v1",
api_key="sk-live-your-api-key"
)
response = client.chat.completions.create(
model="moonshotai/kimi-k2.7-code",
messages=[
{"role": "system", "content": "You are an experienced software engineer."},
{"role": "user", "content": "Describe the architecture of a distributed cache."}
],
temperature=0.7,
max_tokens=1500
)
print(response.choices[0].message.content)