Kimi Standard Vision Partial failures · 70.0% success (24h)

Kimi K2.7 Code API: pricing, code samples & live stats

Built for writing and fixing code.

Model ID

kimi-k2.7-code

Sign up with Google, no payment. API key ready instantly.

Price per 1M tokens

Input tokens$0.051
Output tokens$0.073
Base fee per request
$0.0001
Example request (1,000 in + 500 out)
$0.0002
One coding-agent step (~20k input tokens)
$0.0012

Based on the Saver package. Bigger packages cost less: from $0.031 per 1M input tokens on Raja.

Packages from $0.55. Pay with QRIS, Indonesian bank transfer, or crypto (USDT). Tokens never expire.

Top Model rank

Real usage, last 7 days

From customer requests through the BangunWeb gateway, not vendor numbers. Refreshed every 15 minutes.

#30Top Model rank
6Active users
262Requests
89.7%Success
9.9 sAvg response time

Time to first reply (fastest route probe): 6.6 s. See the Top Model board →

API

Use Kimi K2.7 Code in one minute

Base URL https://router.bangunweb.com/v1, an API key from your dashboard, and model ID kimi-k2.7-code. Copy, swap the key, run.

curl
curl https://router.bangunweb.com/v1/chat/completions \
  -H "Authorization: Bearer bwr_live_..." \
  -H "Content-Type: application/json" \
  -d '{"model": "kimi-k2.7-code", "messages": [{"role": "user", "content": "Hi, introduce yourself briefly."}]}'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://router.bangunweb.com/v1",
    api_key="bwr_live_...",
)

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

One line installs OpenCode (terminal coding agent) with this model as default:

OpenCode
curl -fsSL https://bangunweb.com/install | BANGUNWEB_MODEL=kimi-k2.7-code sh

API docs →Beginner guide →

Similar models

One API key for all of them. Just change the model ID.

See all 65 models →

Questions about the Kimi K2.7 Code API

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

$0.051 per 1M input tokens and $0.073 per 1M output tokens (Saver package), plus a $0.0001 base fee per request. Bigger packages are cheaper per token.

How do I pay?

Buy a token package in the dashboard, from $0.55. Pay with QRIS, Indonesian bank transfer, or crypto (USDT). No credit card needed.

Does Kimi K2.7 Code work with the OpenAI SDK?

Yes. Set base_url to https://router.bangunweb.com/v1, use your BangunWeb API key and model="kimi-k2.7-code". The Anthropic format (/v1/messages) is supported too.

Can I use it in Claude Code or OpenCode?

Yes. Run the one-line installer above, or set the base URL and API key in the tool yourself. Cursor, Cline, n8n and other OpenAI-compatible tools work too.

Is there a free trial?

Sign up with a Google account to get 2M free trial tokens, enough to test this model before buying.

Try it free today

2M free tokens for new Google accounts. Start telling an AI to build your app right away.