EN ▾
Get API key

Moonshot API: Get your API key

Generate your API key in seconds via Google or email, then paste it into your standard OpenAI SDK to start sending uncensored requests immediately.

What you get

Zero configurationUse the official OpenAI Python or Node.js SDKs with a single base_url change and no custom client setup.
Instant accessYour API key is displayed on the screen the moment you complete registration, ready for immediate deployment.
Crypto billingTop up your account by crypto (USDT on TRC20, USDC on Base) without waiting for bank transfers.
Uncensored outputSend the model ID 'uncensored' to receive direct answers without the content filters typical of other hosted models.

How it works

  1. Register

    Sign up using your Google account or by creating an email and password on the Get API key page.

  2. Receive key

    Your unique API key appears instantly on the screen for you to copy securely.

  3. Integrate

    Paste the key into your client code and set the base_url to https://api.moonshotapi.cc/v1.

What you get with your key

Your API key grants access to our OpenAI-compatible chat-completions endpoint. You can send POST requests to /v1/chat/completions using the standard SDKs you already know. Simply set the model ID to uncensored and adjust the base URL. The API supports streaming via SSE, function calling, and JSON mode. You get a 100,000 token context window and the ability to adjust parameters like temperature and top_p. There are no hidden fees or subscription requirements; you pay only for the tokens you actually use.

Billing and trial credits

New accounts receive $0.50 in trial credit, valid for 7 days, with no card required to start. Claim this credit with one click on your API key page. When your balance runs low, you can top up by crypto (USDT (TRC20) or USDC (Base)). Top-ups can be any amount between $20 and $500. You receive a +5% bonus on deposits of $50, +10% on deposits of $100, and +15% on deposits of $200. Credit never expires, and you are charged based on real token usage. Errors and refusals are free, so you only pay for successful completions. If you double-charged, use the Support page to fix it.

Questions and answers

Do I need to link a credit card?

No, you do not need a credit card to sign up or use the trial credit. All top-ups are processed by crypto (USDT on TRC20, USDC on Base), and if you choose crypto, you never need to provide card details or link a bank account.

What happens when my trial credit ends?

Your trial credit expires after 7 days if not used. To continue making requests, you must top up your account by crypto (USDT on TRC20, USDC on Base). You can deposit any whole amount between $20 and $500, and you will receive bonus credit for larger deposits.

How do I replace a leaked key?

You can generate a new API key directly from your account dashboard. The new key becomes active immediately, and the old key is invalidated. You only have one active key per account at any time.

Is the trial credit refundable?

No, trial credit is provided for testing purposes and is not refundable. It is separate from your paid crypto balance. Paid credit never expires, but trial credit is lost if not used within the 7-day window.