Moonshot (Kimi) · Flagship · 1M context window

Kimi K3 pricing for api generation

$0.0990 per call at 3,000 input / 6,000 output tokens.

Per call

$0.0990

10K calls/mo

$990

Cache savings

90% off input

Batch savings

0% off all

Calculate your Kimi K3 costs

Adjust token counts, volume, and discount toggles to model your api generation spend. Prices verified daily against provider pricing pages.

Configure your usage

3,000
100100K
6,000
5050K
10,000
1001M

Estimated cost

Monthly cost
$990
10,000 calls/month
Cost per call$0.099
Daily cost$33
Input rate$3.00/MTok
Output rate$15.00/MTok
Analyze your real spend

Quick start

Call Kimi K3 with the OpenAI Python SDK pointed at api.moonshot.cn:

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.moonshot.cn/v1",
    api_key=os.environ["MOONSHOT_API_KEY"],
)
response = client.chat.completions.create(
    model="kimi-k3",
    max_tokens=6000,
    messages=[{"role": "user", "content": "Your prompt here"}]
)
# Cost: ~$0.0990 per call at standard rates
# Input:  $3.00/MTok
# Output: $15.00/MTok

What drives api generation cost

Endpoint generation is the most output-heavy code task tracked here: 3K in for the spec, 6K out for handlers, types, validation, and error paths. Output pricing is therefore the whole ballgame, and the gap between a flagship and a mid-tier model at 6K output tokens compounds fast across a large API surface. Generating one resource at a time costs less than one giant multi-resource prompt.

For Kimi K3 specifically, that means output tokens cost 5.0x more than input, at $15.00 vs $3.00 per MTok. At this use case’s 3,000/6,000 token split, output accounts for 91% of the $0.0990 per-call cost.

Complete Kimi K3 pricing breakdown

Standard token rates

Direction$/MTokTokens per call
Input$3.003,000
Output$15.006,000

Prompt caching: 90% off input tokens

Caching drops input cost from $3.00 to $0.30/MTok. For repeated system prompts, that saves $0.008100 per call.

Batch API: 0% off all tokens

Submit requests asynchronously and receive 0% off all token costs. This works best for offline pipelines where latency requirements are flexible.

Monthly cost projections

Monthly volumeCost per callStandard monthlyCached monthlyYou save with caching
10,000 calls$0.0990$990$909$81
50,000 calls$0.0990$4,950$4,545$405
100,000 calls$0.0990$9,900$9,090$810
500,000 calls$0.0990$49,500$45,450$4,050
1,000,000 calls$0.0990$99,000$90,900$8,100

Kimi K3 quality benchmarks for api generation

Benchmark data for api generation is pending for Kimi K3. Test against your own evaluation suite before moving to production.

Benchmark data is not yet available for Kimi K3. We recommend testing against your own evaluation criteria.

Alternative models for api generation

5 models score 80+ on api generation benchmarks, sorted by input rate. Cheapest: Claude Haiku 4.5 (67% less, 72/100 quality).

ModelProviderInput $/MTokOutput $/MTokQualityPer callvs Kimi
Claude Haiku 4.5Claude$1.00$5.0072/100$0.033067% cheaper
Claude Opus 5.5Claude$4.00$20.0079/100$0.132033% more
Claude Opus 5Claude$5.00$25.0072/100$0.165067% more
Claude Fable 5.1Claude$10.00$50.0074/100$0.3300233% more
Claude Fable 5Claude$10.00$50.0072/100$0.3300233% more

About Kimi K3

Provider

Moonshot (Kimi)

Tier

Flagship

Context

1M tokens

Released

Not published

Prices from platform.kimi.ai (read 2026-10-11). Cache hit: $0.30/MTok input. Kimi K3 is a 2.8T-parameter open-weight MoE model. No batch discount published yet. Not yet benchmarked, so never recommended.

Other models from Moonshot (Kimi)

ModelTierInput $/MTokOutput $/MTokContext
Kimi K2Mid-tier$0.95$4.00256K

You can compare Kimi K3 head-to-head against any other model on our model comparison pages, or track how pricing has changed over time on the pricing history tracker.

Frequently asked questions

How much does Kimi K3 cost for api generation per API call?

A typical api generation call using Kimi K3 costs about $0.0990 per call. This estimate uses 3,000 input tokens and 6,000 output tokens at standard rates. Standard rates are $3.00 per million input tokens and $15.00 per million output tokens.

Is Kimi K3 the best model for api generation?

Our benchmark data does not yet include a api generation ranking for Kimi K3. We recommend testing it against your own evaluation criteria before production usage.

What is the cheapest model for api generation with good quality?

The most affordable model for api generation above 80/100 quality is Claude Haiku 4.5. It comes from Claude at $1.00 per million input tokens. Output costs $5.00 per million tokens with a quality score of 72/100. Switching from Kimi K3 to Claude Haiku 4.5 saves about 67% per API call.

How can I reduce my Kimi K3 costs for api generation?

Three strategies lower Kimi K3 costs for this task type effectively. Prompt caching gives a 90% discount on input tokens when reusing system prompts. The batch API gives 0% off all tokens for asynchronous processing workloads. Prompt optimization reduces token counts through more concise instructions and context windows. Combining caching with batching brings your cost from $0.0990 to about $0.009900 per call.

How does Kimi K3 pricing compare to other Moonshot (Kimi) models?

Moonshot (Kimi) has 1 other models alongside Kimi K3 today: Kimi K2 at $0.95/$4.00 per million tokens (mid-tier). The right choice depends on whether your api generation workload prioritizes quality, cost, or speed.

What context window does Kimi K3 support?

Kimi K3 supports a context window of 1M tokens per API call. This sets the maximum combined length of your input prompt and generated response. For api generation, typical calls use 3,000 input and 6,000 output tokens. That is well within this limit, leaving room for longer prompts or multi-turn conversations.

Track what you spend on AI

This calculator estimates costs based on published rates only. Connect your API usage to see where your money goes and which models drive your spend.