All models

Kimi K2.7 Code

Moonshot AI
ChatReleased Jun 12, 2026
kimi-k2.7-code
Kimi K2.7 Code is Kimi's most intelligent coding model to date. It can follow instructions more reliably in long contexts and complete programming tasks with a higher success rate. It also supports text, image and video input, thinking mode, dialogue and Agent tasks.
Video inputVisionReasoningTool callsStructured output
Input
$0.95
per 1M tokens
Output
$4.00
per 1M tokens
Cache read
$0.19
per 1M tokens
Context window
262.1K
tokens
Max output
32.8K
tokens

Pricing

USD per 1M tokens
Fee itemPrice
Input$0.95
Input, cache read$0.19
Output$4.00
Image input$0.95
Image input, cache read$0.19
Video input$0.95
Video input, cache read$0.19
Audio input$0.95
Audio input, cache read$0.19
Prices are in USD. A request is billed at the prices in force when it is made.

Call it from your code

Keep the official SDK you already use: give it the LobeBase base URL and a LobeBase API key.
OpenAI API
Base URL
https://api.lobebase.com/v1
curl https://api.lobebase.com/v1/chat/completions \
  -H "Authorization: Bearer $LOBEBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2.7-code",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
Set LOBEBASE_API_KEY to your API key, then run the example.

Every leading model. One API key.

Sign in, add credit and change one line of config. Pay for what you use, no subscription.

Get an API key