HomeModels › Kimi-K2.7-Code
Moonshot · 256K Context

Kimi-K2.7-Code API

Moonshot Kimi-K2.7-Code is specialized for coding and agentic software workflows. Requires temperature=1 (handled automatically by NovAI).

$1.04
Input / 1M tokens
$4.30
Output / 1M tokens
256K
Context window
Code
Specialized
Sign Up - Get $2.00 Free Credit See All Pricing

Why use Kimi-K2.7-Code on NovAI?

  • Coding-specialized model
  • Great for agentic dev tools
  • 256K context
  • Auto temperature handling
  • Zero platform fee

Best use cases

  • Code generation & review
  • Repo-level agents
  • Test writing
  • Refactoring

Quick start

cURL

curl https://aiapi-pro.com/v1/chat/completions \
  -H "Authorization: Bearer $NOVAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2.7-code",
    "messages": [{"role":"user","content":"Write a REST endpoint in FastAPI that returns the current time."}]
  }'

Python (OpenAI SDK)

from openai import OpenAI
client = OpenAI(
    base_url="https://aiapi-pro.com/v1",
    api_key="YOUR_NOVAI_API_KEY",
)
resp = client.chat.completions.create(
    model="kimi-k2.7-code",
    messages=[{"role":"user","content":"Write a REST endpoint in FastAPI that returns the current time."}],
)
print(resp.choices[0].message.content)

Try Kimi-K2.7-Code today

Zero platform fee. Credits never expire. OpenAI-compatible API.

Sign Up Free