YepAPI

Command Palette

Search for a command to run...

Moonshot AIText Generation/v1/ai/chat

Kimi K2.7 Code

Access Kimi K2.7 Code through one API key. Moonshot AI's coding-specialized model.

Moonshot AI's latest coding-specialized model. Tuned for agentic software engineering and tool use with a 256K token context window.

No credit card required. Takes 30 seconds.

2,400+

Developers

1.2M+

API calls served

100+

Endpoints

$0.01

Per call

Yep, that's it.

Try it live

Send a message and see Kimi K2.7 Code respond in real time.

POST/v1/ai/chat

Maximum tokens in the response.

Real-time tokens

Hit "Send Request" to see the response

Context Window

262K tokens

Max Output

16K tokens

Input Price

$1.04 / 1M tokens

Output Price

$4.90 / 1M tokens

Strengths

Coding-specialized

Tuned specifically for software engineering, with strong code generation, editing, and debugging across languages.

256K token context

Holds up to 262,144 input tokens, enough to load large multi-file projects and supporting docs into one request.

Agentic tool use

Optimized for agentic workflows and tool calling, suited to autonomous coding agents that plan and execute steps.

Great value for code

Delivers coding-specialist performance at pricing well below premium coding models.

Quick start

Copy this snippet and start making calls with Kimi K2.7 Code.

const res = await fetch('https://api.yepapi.com/v1/ai/chat', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "model": "moonshotai/kimi-k2.7-code",
    "messages": [
      {
        "role": "user",
        "content": "Explain API gateways in 2 sentences."
      }
    ],
    "maxTokens": 256
  }),
});
const { data } = await res.json();
console.log(data.message.content);

Why use Kimi K2.7 Code through YepAPI?

One API key for all models — no separate accounts
OpenAI SDK compatible — just change the base URL
No monthly minimums — pay per token
Switch models with one line of code
Full provider passthrough — citations, search results, and all extras included
Streaming and non-streaming support on every model
Works with Cursor, Claude, LangChain, and any LLM tool
Unified billing across all providers

Kimi K2.7 Code API: Moonshot AI's coding agent model

Kimi K2.7 Code is Moonshot AI's coding-specialized model, tuned for agentic software engineering and tool use with a 256K-token context window. YepAPI serves it through one OpenAI-compatible endpoint.

Your single YepAPI key also reaches DeepSeek, Claude, Grok, Gemini, and more, plus SEO, SERP, and scraping endpoints, so a coding agent can call data and search tools from the same key.

What is Kimi K2.7 Code?

Kimi K2.7 Code is Moonshot AI's latest coding-specialized model, purpose-built for software engineering and agentic workflows. It offers a 262,144-token (256K) context window with up to 16,384 output tokens, and is tuned for code generation, editing, debugging, and tool use rather than general chat. Its standout trait is agentic tool calling: it is designed to plan and execute multi-step engineering tasks, making it a fit for autonomous coding agents and IDE assistants. The large context lets it reason over big, multi-file projects, and it delivers this specialist coding ability at strong value.

Build with Kimi K2.7 Code via YepAPI

Call YepAPI's OpenAI-compatible /v1/ai/chat endpoint with any OpenAI client; tool/function calling works through the standard schema. Set the base URL, add your key, and set the model string to Kimi K2.7 Code. Switching models is a single string change. Because the same key reaches the whole catalog, your coding agent can use Kimi K2.7 Code for engineering and call other models or YepAPI's data and search endpoints in the same workflow.

Kimi K2.7 Code API pricing — $1.04 input / $4.90 output per 1M tokens

Kimi K2.7 Code costs $1.04 per 1M input tokens and $4.90 per 1M output tokens. For a coding-specialized model built for agentic work, this is strong value, well below premium coding models while offering a 256K context and tool-use tuning. Per-token billing suits agents that read large contexts but emit comparatively short, targeted edits, keeping per-task cost reasonable.

Kimi K2.7 Code for agentic software engineering

Kimi K2.7 Code is built for autonomous coding agents: planning changes, calling tools, editing across files, and debugging within a large 256K context. It fits IDE assistants, CI bots, and engineering agents that need to load substantial project context and then act on it through tool calls. The coding-specialist tuning means it stays focused on engineering tasks, and the value pricing makes it viable to run agents that issue many calls per session.

Try Kimi K2.7 Code free

New YepAPI accounts get $5 in free credit with no card required. That lets you wire Kimi K2.7 Code into a coding agent, test its tool use and multi-file editing on a real project, and compare it against other models on the same key before committing to any payment.

Start generating in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.

Marcus T.

SEO Platform Founder

One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.

Priya S.

Full-Stack Developer

The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.

Jake R.

Indie Hacker

Frequently asked questions

Moonshot AI's latest coding-specialized model. Tuned for agentic software engineering and tool use with a 256K token context window.

Input tokens cost $1.04 per 1M tokens and output tokens cost $4.90 per 1M tokens through YepAPI. No monthly minimums — you only pay for what you use.

Sign up for a free API key, then send requests to the /v1/ai/chat endpoint.

Kimi K2.7 Code supports a 262K token context window with up to 16K output tokens per request.

Ready to use Kimi K2.7 Code?

$5 free credit on signup. No credit card required. Pay per call.

Explore more models