Eliminating the 4 Hidden Taxes: AI Tokens, Manual Work, SaaS Cliffs & AI Scrapers Sponsor this header →

MoonshotAI: Kimi K2.7 Code API Pricing & Cost Breakdown

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...

moonshotai/kimi-k2.7-code
Vision
Last checked: Nov 21, 2026
Input / 1M Tokens
$0.60
Prompt & context tokens
Output / 1M Tokens
$3.00
Generated completion tokens
Blended (3:1) / 1M
$1.20
Tier: budget
Context Window
262K
Max output: 236K

Technical Specifications

Canonical IDmoonshotai/kimi-k2.7-code
ProviderMoonshotai
Input Modalitiestext, image
Output Modalitiestext
Open-WeightNo (Proprietary API)
Reasoning OptimizedStandard
Vision SupportYes

Estimated Monthly API Spend

StageMonthly TokensEst. Cost
Prototype / MVP
500 req/day
22.5M in / 6.0M out $31.50/mo
Growing SaaS
10,000 req/day
600.0M in / 150.0M out $810.00/mo
Scale Production
100,000 req/day
7500.0M in / 1800.0M out $9,900/mo
Simulate Custom Volume → Cut Cost via 3-Tier Cascade →

Deploy or Route MoonshotAI: Kimi K2.7 Code

Multi-Provider Gateway

OpenRouter

Unified API gateway for 300+ LLMs with automatic fallbacks and unified billing.

Call via OpenRouter →
Open-Weight Inference

Together AI

High-throughput serverless inference & fine-tuning for Llama, DeepSeek, and Qwen.

Run on Together AI →
Fastest Tokens/Sec

GroqCloud

LPU-accelerated inference delivering hundreds of tokens per second for real-time voice & agents.

Test on Groq →

Some outbound infrastructure and API gateway links on KostoZero are partner referrals that help keep this observatory free and independent at no extra cost to you.

Cheaper Alternatives to MoonshotAI: Kimi K2.7 Code

ModelProviderInput / 1MOutput / 1MBlendedContext
Google: Gemini 3 Flash Preview Google $0.50 $3.00 $1.13 1.05M
Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview) Google $0.50 $3.00 $1.13 66K
Google: Nano Banana 2 (Gemini 3.1 Flash Image) Google $0.50 $3.00 $1.13 131K
Qwen: Qwen3.5 397B A17B Qwen $0.45 $3.00 $1.09 262K
Mistral: Mistral Large 4 Mistral AI $0.70 $2.10 $1.05 1.05M
Qwen: Qwen3.6 27B Qwen $0.32 $3.20 $1.04 262K

Frequently Asked Questions

How much does MoonshotAI: Kimi K2.7 Code API cost per 1M tokens?

MoonshotAI: Kimi K2.7 Code costs $0.60 per 1M input tokens and $3.00 per 1M output tokens ($1.20 blended at a 3:1 ratio).

What is the maximum context window of MoonshotAI: Kimi K2.7 Code?

MoonshotAI: Kimi K2.7 Code supports up to 262,144 tokens (262K) of input context and up to 235,929 output completion tokens.

What are cheaper alternatives to MoonshotAI: Kimi K2.7 Code?

Lower-cost options tracked right now include Google: Gemini 3 Flash Preview ($1.13/1M), Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview) ($1.13/1M), Google: Nano Banana 2 (Gemini 3.1 Flash Image) ($1.13/1M).

Get Instant Price-Drop (>10%), New AI Bot & SaaS Cliff Alerts

Every 6 hours our autonomous sync checks 40+ LLMs, AI crawlers, and SaaS pricing cliffs—alerting you when prices drop >10% or new scrapers appear.