wellflow.devAI models, for less
wellflow
All models

Kimi K2.7 Code

New

262,144 tokens of context

Kimi K2.7 Code is the Moonshot AI model tuned for programming and coding agents. 256K context, image input, tool calling.

Provider

Premium

Provider model

kimi-k2.7-code

For Cursor

cursorkimik27

High volumeVision

Pricing

per 1M tokens

Input

Wellflow price: $1.57provider price: $0.60

Output

provider price: $2.50Wellflow price: $6.61

Savings

-164%

Prompt caching

The repeated part of a request (system prompt, documents, chat history) is stored in the cache. Reading it back costs less than regular input.

80–95%of tokens when you work in an IDE

An agent in Cursor or Claude Code sends the whole context again on every step: project files, rules, history. Only a few percent of each request is new, the rest repeats. That is why in an IDE your bill depends on the cache price first of all.

Cache read
Wellflow price: $0.30
-81% vs input price
Cache write
Wellflow price: $1.57

Performance

Availability and speed of the model through Wellflow.

Uptime

Speed

What Kimi K2.7 Code is good for

  • ImagesScreenshots, documents, diagrams and UI mocks on input
  • High volumeMass processing where the per-token price matters: classification, extraction, drafts

How to call Kimi K2.7 Code

OpenAI SDK · Cursor · Codex

https://api.wellflow.dev/v1

Anthropic SDK · Claude Code

https://api.wellflow.dev

curl

curl https://api.wellflow.dev/v1/chat/completions \
  -H "Authorization: Bearer $WELLFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2.7-code",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Python

from openai import OpenAI

client = OpenAI(base_url="https://api.wellflow.dev/v1", api_key="...")

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

Kimi K2.7 Code: frequently asked questions

Kimi K2.7 Code costs $1.57 per 1M input tokens and $6.61 per 1M output tokens. Cached context reads: $0.30 per 1M. You pay only for tokens actually used, with no monthly fee. For comparison, the provider's list price is $0.60 / $2.50 per 1M in and out. Same model, lower rate thanks to volume.

The context window of Kimi K2.7 Code is up to 262,144 tokens: enough for long documents and large conversations.

Create a key in the Wellflow dashboard and POST to https://api.wellflow.dev/v1/chat/completions with model = "kimi-k2.7-code". The API is OpenAI SDK compatible, so any client works, streaming included.

Yes. Kimi K2.7 Code works from Claude Code (connected via ANTHROPIC_BASE_URL), Cursor, Codex CLI and VS Code: one base URL for all of them. Step-by-step guides live in the docs.

In Kimi K2.7 Code, repeated context (system prompts, agent history) is cached: reads cost $0.30 per 1M tokens instead of $1.57. In IDE agents most of every request is repeated context, so the saving is immediate.