Hormouz AIHormouzSign in

MoonshotAI: Kimi K2.7 Code: AI model

Kimi K2.7 Code is a coding-focused Moonshot AI model that always reasons, with a 256K context and text+image input. Built for end-to-end programming, reachable from inside Iran through Hormouz.

Context window:
262,144 tokens
Input:
$0.67/1M tokens
Output:
$3.35/1M tokens
Type:
text, image
  • Vision
  • Tools
  • Streaming
  • Long context

Thinking levels: Always thinks

Kimi K2.7 Code is a coding-focused member of Moonshot AI's Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts. It uses a native multimodal mixture-of-experts architecture that accepts text and image input and always operates in a thinking mode, preserving full reasoning content across multi-turn conversations.

With a 256K-token context window it targets long-horizon coding, agentic task decomposition and multi-turn dialogue. It activates about 32B parameters out of roughly 1T total, which keeps it efficient for its capability level.

Pricing is usage-based: $0.74 per million input tokens and $3.5 per million output tokens. Hormouz provides stable access to Kimi K2.7 Code from inside Iran, with no foreign credit card or circumvention tooling required.

MoonshotAI: Kimi K2.7 Code is a coding-focused model in Moonshot AI's Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts. It uses a native multimodal mixture-of-experts...

Quickstart

curl https://api.hormouz.net/v1/chat/completions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "moonshotai/kimi-k2.7-code",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Specs

VendorMoonshot AI
TypeText, Image
Context window262,144 tokens
Pricing$0.67/M in · $3.35/M out
APIChat Completions
CapabilitiesStreaming · Vision · Tools

Benchmarks

25.8
Intelligence Index
Better than 50% of models we compared
60.8
Coding Index
Better than 70% of models we compared
21
Agentic Index
Better than 51% of models we compared

Reasoning

GPQA Diamond
Graduate-level scientific reasoning
89.6%
HLE
Humanity's Last Exam
35%
IFBench
Instruction-following
63.1%
AA-LCR
Long-context reasoning
79.3%
CritPt
Research-level physics reasoning
10%
AA Omniscience
Broad factual knowledge accuracy
39.6%
Non-Hallucination
Rate of avoiding fabricated answers
17.6%

Coding

SciCode
Python for scientific computing
47.8%
Terminal-Bench Hard
Agentic coding & terminal use
44.7%

Agentic

τ²-Bench
Tool-use agents in dual-control scenarios
90.1%
GDPval
Economically valuable tasks
27%

Source: Artificial Analysis

Agentic Game Dev
Top 87%
1,130Elo
Win rate: 43%
Android Native
Top 68%
1,152Elo
Win rate: 46%
Full-Stack
Top 52%
1,174Elo
Win rate: 50.9%
Godot Game Dev
Top 56%
1,147Elo
Win rate: 49.2%
HTML Slides
Top 30%
1,201Elo
Win rate: 53.6%Avg time: 389s
Mobile Apps
Top 65%
1,141Elo
Win rate: 46.6%
Python Slides
Top 74%
1,154Elo
Win rate: 44.7%Avg time: 705s
Web Apps
Top 60%
1,169Elo
Win rate: 46.9%
3D
Top 23%
1,251Elo
Win rate: 50.5%Avg time: 249s
ASCII Art
Top 30%
1,209Elo
Win rate: 48.3%Avg time: 323s
Code
Top 23%
1,259Elo
Win rate: 50.3%Avg time: 298s
Data Viz
Top 31%
1,233Elo
Win rate: 48.7%Avg time: 221s
Game Dev
Top 27%
1,233Elo
Win rate: 47.5%Avg time: 301s
SVG
Top 36%
1,176Elo
Win rate: 44.9%Avg time: 144s
UI Component
Top 22%
1,271Elo
Win rate: 51.6%Avg time: 232s
Website
Top 20%
1,272Elo
Win rate: 51.7%Avg time: 329s

Metrics sourced from Design Arena

Code example

cURL
curl https://api.hormouz.net/v1/chat/completions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "moonshotai/kimi-k2.7-code",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
Python
from openai import OpenAI
client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
response = client.chat.completions.create(
    model="moonshotai/kimi-k2.7-code",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
JavaScript
import OpenAI from "openai";
const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const response = await client.chat.completions.create({
  model: "moonshotai/kimi-k2.7-code",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);

Buy the MoonshotAI: Kimi K2.7 Code API, paid in rial

  • Buy credit with an Iranian bank card; no foreign card or account needed.
  • One Hormouz key reaches MoonshotAI: Kimi K2.7 Code and 600+ other models, and you pay only for what you use.
  • No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Create an account

Use via Hormouz

Connect to this model and 600+ others with one API key, then see usage down to each request.

Request company access

FAQ

How much does Kimi K2.7 Code cost?
Billing is usage-based: $0.74 per million input tokens and $3.5 per million output tokens. There is no fixed monthly fee. You pay only for what you use, at the rates shown in the Hormouz dashboard.
How do I access Kimi K2.7 Code from inside Iran?
Create an account on Hormouz and generate an API key. Hormouz provides a stable path to Kimi K2.7 Code from inside Iran, with no foreign credit card or circumvention tooling required.
Is Kimi K2.7 Code compatible with OpenAI code?
Yes. Hormouz exposes an OpenAI-compatible API. Just change the base URL to Hormouz and swap in your Hormouz key. Your existing OpenAI SDKs and code run without a rewrite.
Does Kimi K2.7 Code always reason?
Yes. It always operates in a thinking mode and preserves full reasoning content across multi-turn conversations. It accepts text and image input and has a 256K-token context, built for end-to-end coding and agentic task decomposition.

Updated 2026-10-13