# kimi-k2.7-code API — WanAPIs

> **Model ID**: `kimi-k2.7-code` · **Provider**: Moonshot · **Category**: chat · **Endpoint**: `POST /v1/chat/completions`
> **Live Price**: $6.65 in · $28.00 out (RMB-anchored quota: `¥1 = $1 quota`, ~86% off USD list rates at `$1 ≈ ¥7`).
> **Web Page**: https://wanapi.ai/model/kimi-k2-7-code

The coding-specialised build of Kimi K2.7, tuned for code generation, repository understanding and command-line agent workflows, and a good fit behind coding CLIs and IDE extensions.

**Also known as**: Moonshot kimi-k2.7-code

## Live Pricing & Specs

- **Input (per 1M tokens)**: $6.65 quota (¥6.65 ≈ $0.95 USD)
- **Output (per 1M tokens)**: $28.00 quota (¥28 ≈ $4 USD)

## Quickstart (cURL)

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

## FAQ

### How do I call kimi-k2.7-code via WanAPIs?

Send an authenticated request with Authorization: Bearer <WANAPIS_API_KEY> to https://api.wanapis.com using POST /v1/chat/completions and model "kimi-k2.7-code".

### How much does kimi-k2.7-code cost on WanAPIs?

Current live rate: $6.65 in · $28.00 out. WanAPIs uses RMB-anchored quota (¥1 = $1 quota, roughly 1/7 or ~86% off USD-denominated list pricing) with zero monthly subscription.

### Can AI coding agents (Claude Code, Codex, Cursor) discover and use this model?

Yes. Point your agent to https://wanapi.ai/SKILL.md or install npx -y @wanapis/mcp. A machine-readable Markdown spec is also available at /model/kimi-k2-7-code.md.

## Related Links

- Web Landing Page: https://wanapi.ai/model/kimi-k2-7-code
- Agent Skill Router: https://wanapi.ai/SKILL.md
- Complete Live Pricing (Markdown): https://wanapi.ai/pricing.md
- OpenAPI 3.1 Spec: https://wanapi.ai/openapi.json
- MCP Server Card: https://wanapi.ai/.well-known/mcp.json
