LLM API
Moonshot AIText generationReleased June 12, 2026

Kimi K2.7-Code

Kimi K2.7-Code costs $0.95 per 1M input tokens and $3.9995 per 1M output tokens on LLM API, with a 262K-token context window.

Pricing

Lowest price among 3 providers, after discounts.

Kimi K2.7-Code prices on LLM API
Input$0.95per 1M tokens
Output$3.9995per 1M tokens
Cache read$0.1608before discount $0.1608per 1M tokens

Providers

Prices after each provider’s discount; the lowest in bold.

Providers of Kimi K2.7-Code on LLM API
Novita AI$0.95$4$0.19262K4K
CanopyWave$0.95$4$0.19262K262K
Alibaba Cloud$0.95$3.9995$0.1608262K33K

Features

“Some providers”: not every provider of this model supports it.

  • ToolsYes
  • Parallel tool callsNo
  • Image inputYes
  • ReasoningYes

    Levels: low, medium, high

  • Prompt cachingYes
  • Structured outputsYes
  • JSON modeYes
  • StreamingYes
  • Web searchSome providers

Call Kimi K2.7-Code

POST /v1/chat/completionsSet LLMAPI_KEY to your LLM API key.Chat Completions docs

import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

response = client.chat.completions.create(
    model="kimi-k2.7-code",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

More from Moonshot AI

All Moonshot AI text models

Prices synced .

You've been invited to LLM API

Top up $50 or more and the friend who invited you gets $20 in credits. We pay the $20; your credits stay yours. Referral terms

Sign up