Kimi API Key: The $1 Minimum, Rate Tiers and Model IDs

15 min read

Get a Kimi API key at platform.kimi.ai, see what the $1, $5 and $10 recharges unlock as of November 2026, and which Kimi model IDs still work for new accounts.

Renaissance-style painting of a printing workshop with a wooden press, type cases and a red inked sheet

There is no free tier on Kimi’s own API platform. A Kimi API key does nothing until the account holds a minimum recharge of $1, and that dollar buys Tier0: 3 requests a minute and 1.5 million tokens a day. At $5 of cumulative recharge Moonshot AI adds a $5 voucher, and at $10 the account reaches Tier1 (checked on 29 November 2026).

Creating the key takes one line in Kimi’s quickstart, and in my reading of Kimi’s docs the recharge ladder decides more than the key does. A $1 account will answer a curl test. A coding tool that fires several calls in a row belongs on Tier1, and a model ID copied from a summer 2026 tutorial may not be available to an account opened on or after 1 November 2026.

How to get the key and send a first request (November 2026):

  1. Sign in at platform.kimi.ai. Older guides that send you to platform.moonshot.ai still land there: that address returned a 301 redirect to platform.kimi.ai on 29 November 2026.
  2. Open API Keys in the console, create a key, pick its expiry, and copy it.
  3. Recharge at least $1, which Kimi says is “required to start using the API”. Kimi’s billing FAQ names WeChat Pay and Alipay QR codes for individual top-ups and lists no card or UPI option (checked 29 November 2026); see the India payment section below.
  4. Store the key in the MOONSHOT_API_KEY environment variable, the name Kimi’s quickstart uses.
  5. Point your client at https://api.moonshot.ai/v1 (OpenAI format) or https://api.moonshot.ai/anthropic (Anthropic format).
  6. Call kimi-k3.1-pro, the quickstart’s default model, and leave K2 and moonshot-v1 IDs out.

Kimi API Platform is Moonshot AI’s pay-as-you-go API: the console lives at platform.kimi.ai and requests go to api.moonshot.ai. Prices, limits and model lists change, so recheck the linked page before you build on one.

Diagram of what each cumulative recharge unlocks on the Kimi API Platform, checked 29 November 2026. A $1 recharge gives Tier0: concurrency 1, 3 requests a minute, 500K tokens a minute and 1.5M tokens a day, which works out to one request every 20 seconds. At $5 in total Kimi adds a $5 voucher, but the account stays on Tier0 because vouchers do not count toward the tier total. Highlighted: at $10 in total the account reaches Tier1, with concurrency 15, 100 requests a minute, 2M tokens a minute and an Unlimited daily cap. Tier2 to Tier5 run from $20 to $3,000 with concurrency 40 to 100 and 100 to 300 requests a minute. Footer: the tier sets speed and daily volume, the balance pays for tokens at $2.00 per 1M input and $10.00 per 1M output tokens on kimi-k3.1-pro, before tax, and limits apply per account, not per key.

How to Get a Kimi API Key, Step by Step

Kimi’s quickstart covers key creation in one line: “Visit the Kimi API Platform, sign in, then go to API Keys to create and copy an API Key.”

Where the Key Sits: Organization, Project, Key

Kimi’s organization and project guide sets out the hierarchy. The top level is an organization, which holds projects, which hold keys. Kimi says “All projects in an organization share the organization’s account balance and rate limits”, while usage is tracked per project. Limits on how many you can make:

Organization typeProjectsAPI keys
Default2050
Enterprise Verified50100

Key Settings You Choose at Creation

New keys are version 2. Per the same guide:

SettingWhat Kimi’s docs say
PrefixNew keys “use the sk-ms- prefix”
Expiry3 hours, 1 day, 7 days, 30 days, a custom time, or never; it “cannot be changed or cleared after creation”
Time zone of the expiry previewUTC+8, which is 2 hours 30 minutes ahead of India time (my arithmetic)
Disable and enableSupported on v2 keys
IP whitelistFor organizations that have completed personal or enterprise verification, on v2 keys only
Older v1 keysStill usable, with no expiry, disable or IP whitelist; they “cannot be upgraded in place”

An expired key “becomes invalid permanently and cannot be recovered”, so a 7-day key for a test is a sensible default and a “never” key belongs only in a secrets manager. Kimi’s billing FAQ adds that “Account deletion is not currently supported.”

Store It and Send the First Request

The quickstart sets the key like this:

export MOONSHOT_API_KEY="YOUR_KIMI_API_KEY"

Kimi’s own guides use two variable names: the quickstart reads MOONSHOT_API_KEY, and the Codex guide reads KIMI_API_KEY through an env_key setting. Use whichever name your tool is set to read. On Windows PowerShell, the Codex guide’s form is $env:KIMI_API_KEY="YOUR_KIMI_API_KEY", and to keep it across sessions the guide points to Settings > System > About > Advanced system settings > Environment Variables.

This is the quickstart’s curl sample with its long system message left out:

curl https://api.moonshot.ai/v1/chat/completions \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $MOONSHOT_API_KEY" \
    -d '{
        "model": "kimi-k3.1-pro",
        "messages": [
            {"role": "user", "content": "Hi, my name is Li Lei. What is 1+1?"}
        ]
    }'

Then check what you have left. The balance endpoint returns available_balance, voucher_balance and cash_balance, all in USD:

curl https://api.moonshot.ai/v1/users/me/balance \
  -H "Authorization: Bearer $MOONSHOT_API_KEY"

When available_balance is at or below zero, Kimi says requests return exceeded_current_quota_error.

Advertisements

Is the Kimi API Key Free?

No. Kimi’s pricing page says inference “is billed on a pay-as-you-go basis, with no subscription plan”, and the limits page sets a $1 minimum recharge “to start using the API”. What the docs do give away, as of 29 November 2026:

  • The $5 voucher, added “when your cumulative recharge reaches $5”.
  • File APIs: “File-related APIs (file content extraction and file storage) are temporarily free”. Extracted text you then send to a model is billed as input.

NVIDIA’s API catalog at build.nvidia.com/moonshotai lists kimi-k3.1-pro with a “Free Endpoint” label (checked 29 November 2026). That is NVIDIA’s hosted service with its own login, and the NVIDIA API key guide shows how to get a key from build.nvidia.com and which models carried the Free Endpoint tag.

If a free tier is the requirement, Groq’s free plan limits by model show what a key from a provider with a Free tier allows, and the free AI API key comparison sorts Kimi and 12 other providers by whether they want a card before the first call.

What Each Kimi Recharge Unlocks

This is Kimi’s tier table from the limits page, read on 29 November 2026. The tier follows your cumulative recharge, not your current balance. The last column is my arithmetic and my reading.

TierCumulative rechargeConcurrencyRequests a minuteTokens a minuteTokens a dayWhat it fits
Tier0$113500,0001,500,000One request every 20 seconds (60 / 3): curl tests and scripts that wait
Tier1$10151002,000,000Unlimited15 requests in flight: a coding tool or a small app
Tier2$20401003,000,000UnlimitedMore parallel requests at Tier1’s request rate
Tier3$100502003,000,000UnlimitedTwice Tier1’s requests a minute
Tier4$1,000602004,000,000UnlimitedProduction traffic
Tier5$3,0001003005,000,000UnlimitedBeyond this, Kimi’s rate limit increase form

Rules on the same page and on Kimi’s Main Concepts page that change how the table works:

  • “Vouchers do not count towards the cumulative recharge total.” Recharging $5 earns the voucher and stays on Tier0. Recharging $10 in total reaches Tier1 and, if the voucher is unused, leaves $15 of available balance before any spend (my arithmetic: $10 cash plus the $5 voucher).
  • “Rate limits are enforced at the user level, not the key level”, and “we share rate limits across all models”. A second key or a second model adds no quota.
  • The gateway counts the request plus max_completion_tokens “regardless of the actual number of Tokens generated”. On Tier0’s 500,000 tokens a minute, a large max_completion_tokens counts against the limit before a word is generated.
  • “When cluster load reaches capacity, rate limits may be temporarily adjusted.”
  • A risk-control limit on abnormal activity “cannot be lifted” once triggered.

My rule: stay at $1 while you test with curl, and reach $10 before you connect Claude Code, Codex or Kimi Code CLI. Kimi’s own billing FAQ warns that “Programming tools may automatically perform multiple rounds of retries and calls, which can cause token usage to grow quickly”, and Tier0 allows one request at a time.

The same FAQ covers budgets: a project daily spending budget, under Project Settings, rejects requests once reached, though “the limit may take about 10 minutes to take effect”.

Kimi API Pricing per Model and a Worked Session Cost

The K3 series prices per 1M tokens from the pricing page on 29 November 2026. All three models have a 1,048,576-token context window:

Model IDInputOutputCached input5m cache writes1h cache writes
kimi-k3.1-pro$2.00$10.00$0.20$2.00$4.00
kimi-k3.1-pro-highspeed$4.00$20.00$0.20$4.00$8.00
kimi-k3$3.00$15.00$0.30$3.00$6.00
  • “Prices exclude applicable taxes”, which the page says are “calculated at checkout based on your jurisdiction”.
  • Batch inference for kimi-k3.1-pro and kimi-k3 is “billed at 60% of the standard price”, for tasks that do not need real-time answers.
  • Caching is on by default with a 5-minute TTL. Kimi’s context caching guide says cache reads, cache writes and the uncached remainder “are mutually exclusive and sum to total input tokens” on the OpenAI-compatible endpoints.

A worked example, my arithmetic on those prices. One coding session on kimi-k3.1-pro sends 2M input tokens, of which 1.5M are served from cache and 0.5M are either written to cache at the default 5m TTL or not cached (both cost $2.00 per 1M on this model), and gets 100K output tokens back:

LineTokensPrice per 1MCost
Cached input1,500,000$0.20$0.30
5m cache writes or uncached input500,000$2.00$1.00
Output100,000$10.00$1.00
Total before tax2,100,000$2.30
  • The same session with the 0.5M written at the 1h TTL ($4.00) costs $2.00 on that line, so $3.30 in total.
  • On kimi-k3.1-pro-highspeed it is $0.30 + $2.00 + $2.00 = $4.30.
  • A $1 recharge does not cover one such session. A $10 recharge reaches Tier1 and, with the unused $5 voucher, leaves $15 of available balance: about six sessions ($15 / $2.30 = 6.5, my arithmetic).
  • On a $5 recharge the account stays on Tier0, and Kimi counts the tokens in each request plus max_completion_tokens toward its limits. Its limits and Main Concepts pages name no exemption for cached tokens, so on that rule a session with 2M input tokens is over Tier0’s 1,500,000 tokens a day. That is the reason to reach Tier1 before agent work.

Kimi Model IDs That Work for a New Account

The pricing page carries the notice: “starting October 31, 2026, K2 series models will no longer be available to newly registered users; existing users are not affected. We plan to retire all K2 series models by the end of December 2026”. The models page on 29 November 2026:

Model IDStatus on Kimi’s models pageInput / output per 1M
kimi-k3.1-proListed; the quickstart default, described as “Kimi’s most capable flagship to date”$2.00 / $10.00
kimi-k3.1-pro-highspeedListed; the high-speed variant, “same intelligence” at about 2 to 3 times the speed$4.00 / $20.00
kimi-k3Listed; “Kimi’s previous-generation flagship”$3.00 / $15.00
kimi-k2.7-code, kimi-k2.7-code-highspeed, kimi-k2.6”No longer available to newly registered users; users registered before November 1 can continue using it. Deprecation expected in late December 2026.”$0.95 / $4.00, $1.90 / $8.00, $0.95 / $4.00
kimi-k2.5, moonshot-v1-8k, moonshot-v1-32k, moonshot-v1-128k, moonshot-v1-auto, the three moonshot-v1 vision previews, kimi-k2-0905-preview, kimi-k2-0711-preview, kimi-k2-turbo-preview, kimi-k2-thinking, kimi-k2-thinking-turbo, kimi-latest, kimi-thinking-preview”Deprecated”Not on the pricing page

The quickstart sets reasoning effort on kimi-k3.1-pro with a top-level reasoning_effort field: “low”, “high” or “max”, default “max”.

Tutorials lag behind this list. Puter’s Moonshot AI API key tutorial, marked “Updated: July 29, 2026” when I read it on 29 November 2026, says “Go to platform.moonshot.ai” and calls Kimi K2.5 “The cheapest current model” at $0.60 input and $3.00 output; Kimi’s models page now lists kimi-k2.5 as Deprecated. Copy the ID from Kimi’s List Models endpoint instead:

curl https://api.moonshot.ai/v1/models \
  -H "Authorization: Bearer $MOONSHOT_API_KEY"

Base URLs for OpenAI SDKs, Claude Code and Codex

From Kimi’s API overview, every request authenticates with Authorization: Bearer $MOONSHOT_API_KEY:

Formatbase_urlEndpointTools Kimi names
OpenAI Chat Completionshttps://api.moonshot.ai/v1/chat/completionsOpenAI SDKs, LangChain, Dify, Coze
OpenAI Responseshttps://api.moonshot.ai/v1/responsesOpenAI SDKs
Anthropic Messageshttps://api.moonshot.ai/anthropic/messages”Official Anthropic SDKs, Claude Code, and similar tools”

Claude Code

Kimi’s Claude Code guide writes this block into the env field of ~/.claude/settings.json, then restarts Claude Code:

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.moonshot.ai/anthropic",
    "ANTHROPIC_AUTH_TOKEN": "YOUR_MOONSHOT_API_KEY",
    "ANTHROPIC_MODEL": "kimi-k3[1m]",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "kimi-k3[1m]",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "kimi-k3[1m]",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "kimi-k3[1m]",
    "ANTHROPIC_DEFAULT_FABLE_MODEL": "kimi-k3[1m]",
    "CLAUDE_CODE_SUBAGENT_MODEL": "kimi-k3[1m]",
    "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "1000000",
    "CLAUDE_CODE_EFFORT_LEVEL": "max"
  }
}

Kimi warns that “Configuring only some of the variables makes the corresponding scenarios fail silently”, so copy all ten lines. Its reference table says an auto-compact window that is too small “compacts early and loses context” and one that is too large “causes context-length errors”. The guide uses kimi-k3[1m] for every tier rather than kimi-k3.1-pro; keep the guide’s ID there. The guide calls that model K3, and the pricing page lists kimi-k3 at $3.00 in and $15.00 out per 1M tokens, above kimi-k3.1-pro: if billed at those rates, the worked session above comes to $0.45 + $1.50 + $1.50 = $3.45 (my arithmetic). The guide adds that the file “contains your API key in plain text; do not commit it to git”. To check, run /status inside Claude Code: the Base URL should read https://api.moonshot.ai/anthropic. Which credential Claude Code bills against when a claude.ai login is also saved is covered in API key versus subscription billing in Claude Code, and OpenCode Go is another route to Kimi K3 inside Claude Code, set out in the OpenCode and Claude Code comparison.

Advertisements

Codex and Kimi Code CLI

The Codex guide adds a provider to ~/.codex/config.toml:

model = "kimi-k3.1-pro"
model_provider = "kimi"
model_context_window = 1048576

[model_providers.kimi]
name = "Kimi"
base_url = "https://api.moonshot.ai/v1"
env_key = "KIMI_API_KEY"
wire_api = "responses"

Its troubleshooting note: “API keys created on platform.kimi.ai only work with https://api.moonshot.ai/v1”. Kimi Code CLI, Moonshot’s own terminal agent, “can directly use an API Key created on Kimi API Platform”, per Kimi’s Kimi Code CLI guide.

Platform Key, Kimi Code or Kimi Membership

Kimi’s product comparison sets four products side by side and asks readers to “distinguish between them”:

ProductHow it billsRelation to a platform.kimi.ai key
Kimi API Open PlatformPay-as-you-go after sign-up, or enterprise plans through salesThe key this page covers
Kimi Code”Subscription-based”, one subscription for desktop, terminal and IDE”the Kimi Code API is independent from the API service on this platform, and the two are not interchangeable”
Kimi BusinessAnnual subscriptionA separate product
Kimi Membership”four membership subscription tiers”, monthly or annualA separate product

Going by that table, a Kimi Membership or Kimi Code subscription is a separate bill from platform credit. If what you want is Claude models through Anthropic’s own prepaid Console credits, the Claude API key guide covers that setup.

Paying for Kimi API Credit From India

What Kimi’s billing FAQ says, read from India on 29 November 2026:

  • Individual users: “Online top-ups support WeChat Pay and Alipay QR code payments.” The FAQ names no card or UPI option for individuals.
  • Business users: options “may include online payment or bank transfer, depending on your account region and billing setup”.
  • Currency: prices and the balance endpoint are in US dollars, and the pricing page shows no rupee price.
  • Tax: prices exclude tax, worked out “at checkout based on your jurisdiction”. Invoices come from “Beijing Moonshot AI Technology Co., Ltd.” as “information technology services” at a “tax-inclusive rate” of 6%.

The FAQ is the only payment-method statement in the Kimi docs I read, so check the top-up page itself before you plan a recharge from an Indian card.

Kimi API Errors: 401, 404 and Three Kinds of 429

From Kimi’s error codes page:

StatusError typeWhat Kimi says to check
401invalid_authentication_error, incorrect_api_key_errorThe Authorization: Bearer header; keys from platform.kimi.ai “are independent from keys issued on other regional Kimi platforms”, and mixing them returns 401
401incorrect_api_key_errorA missing or incorrect key; per Kimi’s organization guide, also a v2 key that is disabled, deleted or expired
403permission_denied_error”Your IP is not allowed to access this organization”: the IP whitelist
404resource_not_found_error”Check the spelling of the model parameter and the account tier”
429rate_limit_reached_errorConcurrency, RPM, TPM or TPD limit; TPD “will reset the next day”
429exceeded_current_quota_errorBalance: “Top up your account and try again”
429engine_overloaded_errorServer load; “topping up or upgrading your tier does not resolve it”, so back off and retry

A 404 on a model ID copied from an older guide is worth checking against the models table above before anything else.

Keeping a Kimi Key Safe

  • Kimi’s API overview: “Do not expose it in client-side code, public repositories, or logs.”
  • Give test keys an expiry, and use the IP whitelist on production keys once the organization is verified.
  • When a member is removed from a project, “all API keys created by that member are invalidated”, per the organization guide.
  • GitGuardian’s secret scanner has a Kimi API Key detector, and its page notes “The API key can be revoked from the Kimi Console.”
  • A key copied from a public repo draws on someone else’s balance and stops working when they revoke it. Do not use one.

A Kimi API Key Costs $1 to Start and $10 to Use for Real

Creating a Kimi API key is one step in the console; the recharge behind it sets what the key can do. Tier0 at $1 suits a curl test, Tier1 at $10 cumulative suits a coding tool, and kimi-k3.1-pro is the ID to copy for API calls and Codex on an account opened today, at $2.00 in and $10.00 out per 1M tokens. Before your first agent session, set a project daily budget in the console.

Next read Groq API Key: Free Limits and the Model IDs Groq Still Lists Get a Groq API key at console.groq.com, see the free plan limits per model as of November 2026, and skip the Llama model IDs Groq shut down for free accounts.

Frequently Asked Questions

Is the Kimi API key free?

No. Kimi's API platform bills pay-as-you-go with no free tier, and its rate-limit page says a minimum recharge of $1 is required to start using the API. When your cumulative recharge reaches $5, Kimi adds a $5 voucher, as of 29 November 2026.

What is the Kimi API key price?

The key has no price of its own; you pay per token from a prepaid balance in US dollars. On 29 November 2026 Kimi's pricing page listed kimi-k3.1-pro at $2.00 per 1M input tokens and $10.00 per 1M output tokens, before tax.

What is the Kimi API base URL?

Kimi's API overview lists https://api.moonshot.ai/v1 for the OpenAI-compatible Chat Completions and Responses endpoints, and https://api.moonshot.ai/anthropic for the Anthropic-compatible Messages endpoint used by the Anthropic SDKs and Claude Code.

Does a Kimi Code subscription include an API key for the platform?

No. Kimi's product comparison says the Kimi Code API is independent from the API service on platform.kimi.ai and the two are not interchangeable. Kimi Code CLI can use a platform key, but the platform bills that key pay-as-you-go.

Why does my Kimi API key return a 401 error?

Kimi's error page says keys issued on platform.kimi.ai are independent from keys issued on other regional Kimi platforms, and mixing them returns 401. Kimi's organization guide adds that a disabled, deleted or expired v2 key also returns 401 with incorrect_api_key_error.

Advertisements
Swapnil Biswas

Written by Swapnil Biswas

Senior Product Marketing Manager at TestMu AI

I write the brief. Then I build it. I love AI enough to build the tools and automations I market with.