¥15 free trial voucher · Prepaid billing · HTTP 402 on exhaustion, zero card debit risk
https://api.moonshot.cn/v1 💡 Directly paste the address above as Base URL into any OpenAI-compatible client (NextChat, Cherry Studio, Immersive Translate, etc.).
moonshot-v1-8k moonshot-v1-32k moonshot-v1-128k kimi-k3 kimi-k2.7-code Moonshot AI is one of China's most celebrated AI unicorns, founded by Dr. Yang Zhilin from Tsinghua University. Its consumer and enterprise flagship Kimi enjoys widespread acclaim for unmatched long-context retrieval, real-time web search synthesis, and nuanced paper parsing.
Developers must note the dual-platform policy: Mainland users registering with a Chinese phone and completing ID verification on platform.moonshot.cn automatically receive a ¥15 API voucher (sufficient for ~15M tokens across moonshot-v1-8k/32k/128k without prepayment). Meanwhile, the global platform (platform.moonshot.ai) operates on pure prepaid USD tiers starting at $1. Both platforms strictly enforce prepaid limits with HTTP 402 cutoff, eliminating unexpected bills!
Moonshot runs two independent platforms: platform.moonshot.cn offers a ¥15 starter voucher for verified mainland users; platform.moonshot.ai (USD-denominated) has no free tier and requires at least $1 deposit to activate Tier 0.
The free ¥15 voucher can be used on moonshot-v1 models (8k/32k/128k), but official policy excludes newer flagship models like Kimi K3, which require at least one cash deposit.
Moonshot API determines rate limits (Tier 0 to Tier 5) based on cumulative cash recharge amounts. Voucher credits do not count toward tier thresholds.
The API gateway echoes the requesting Origin in access-control-allow-origin rather than returning a wildcard *. Web SPA frontends must configure allowed origins.
Free consumer perks or subscriptions on kimi.com do not transfer to the developer API. The API requires its own dedicated balance or voucher.
Sign up at platform.moonshot.cn with a mainland phone number and complete national citizen ID verification.
Go to Console ↗Check your ¥15 credit balance under billing, then generate your sk- API Key under 'API Key Management'.
Go to Console ↗Set Base URL to https://api.moonshot.cn/v1, insert your key, select moonshot-v1-8k or moonshot-v1-32k, and enjoy 200K long-context inference!
from openai import OpenAI
client = OpenAI(
api_key="your_api_key_here", # 填入申请的 Key
base_url="https://api.moonshot.cn/v1"
)
response = client.chat.completions.create(
model="moonshot-v1-8k",
messages=[
[object Object]
]
)
print(response.choices[0].message.content)