← All models

Kimi K2.7 Code

Moonshot AI · Text

Moonshot Kimi K2.7 Code, specialised for programming and agentic coding. Served through getmodel's low-cost domestic-models group over an OpenAI-compatible endpoint. Kimi K2.7 Code is available on GetModel via an OpenAI-compatible API, billed pay-as-you-go. Get one key and call it from any OpenAI SDK.

CodeAgentChinese model

Pricing

ItemPrice
Input$0.527 / 1M tokens
Output$2.19 / 1M tokens

Pricing by group

Group InputOutput
Domestic models $0.527$2.19
Default $0.957$3.98

How to call

curl https://getmodel.ai/v1/chat/completions \
  -H "Authorization: Bearer $GETMODEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"kimi-k2.7-code","messages":[{"role":"user","content":"Hello"}]}'
from openai import OpenAI
client = OpenAI(base_url="https://getmodel.ai/v1", api_key="$GETMODEL_API_KEY")
resp = client.chat.completions.create(
    model="kimi-k2.7-code",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

Details

ProviderMoonshot AI
TypeText
Endpointsopenai
Available groupsDomestic models / Default

FAQ

How much does the Kimi K2.7 Code API cost?

Kimi K2.7 Code on GetModel costs $0.527 / 1M tokens (Input), $2.19 (Output), billed pay-as-you-go with no subscription.

How do I call Kimi K2.7 Code via API?

Point any OpenAI-compatible client at https://getmodel.ai/v1 with your GetModel API key and set the model to "kimi-k2.7-code".

Can I use Kimi K2.7 Code together with other models?

Yes — one GetModel API key works for Kimi K2.7 Code and 30+ other models. Just change the model field.

More comparisons

Related models