How to Get a Grok API Key: Unhinged Alternative Guide
A Grok API key gives direct programmatic access to xAI’s models, but standard billing and content filters can limit specialized workflows. This guide explains how to obtain a key, compares the official offering to an uncensored alternative, and details the exact steps to integrate either API into your codebase.

Key points
- Official Grok API keys are managed through the xAI console with standard usage quotas.
- Unhinged Grok offers a prepaid, crypto-only model with no monthly fees and uncensored output.
- Both APIs follow the OpenAI chat-completions standard, allowing easy code swapping.
- The Unhinged trial provides $0.50 in credit without requiring a credit card or phone number.
Why You Need a Grok API Key
Programmatic access to large language models requires authentication. An API key serves as your unique credential, linking your code’s requests to your account and billing profile. Without it, applications cannot send prompts or receive completions from the model servers.
For developers, the key enables automation. You can integrate the model into chat interfaces, data processing pipelines, or autonomous agents. The key ensures that usage is tracked, billed correctly, and limited according to your plan.
Choosing the right provider depends on your needs. If you need specific model capabilities or brand reliability, the official Grok API is the standard choice. If you prioritize uncensored output, transparent prepaid billing, and crypto payments, an alternative like Unhinged Grok may offer a better fit for your project.
Unhinged Grok vs. Official Grok
The official Grok API provides access to xAI’s models through a standard subscription or pay-as-you-go model managed via their dashboard. It is designed for general-purpose applications and adheres to specific content policies.
Unhinged Grok operates as an independent, OpenAI-compatible API. It serves a single uncensored model optimized for adult, creative, or controversial topics without refusals. Unlike the official API, which may require complex subscription tiers, Unhinged Grok uses a pure prepaid credit system.
Both APIs use the same endpoint structure. This means your existing code can often switch between them by simply changing the base URL and the API key. However, the Unhinged model is distinct from GPT, Claude, or the official Grok models. It is an open-weight model tuned for high context and fewer content restrictions.
Step 1: Create Your Account
Start by visiting the Unhinged Grok dashboard. The signup process is designed for speed and minimal friction. You can create an account using Continue with Google or by providing an email address and password. No phone number is required, ensuring privacy for users who prefer not to link their identity.
Once you register, you will be directed to the Get API key page. Your API key is generated immediately. Copy this key and store it securely, as it will be used to authenticate all subsequent requests. Each account supports only one active key; generating a new one will replace the previous key instantly.
This simplicity contrasts with some enterprise solutions that require email verification, phone confirmation, and team setup before you can access the key. For individual developers and power users, this direct approach reduces time-to-code.
Step 2: Claim Your Free Trial
New accounts receive $0.50 of trial credit after sign-up. This credit is valid for 7 days, giving you enough room to test the API’s performance, latency, and output quality without any financial commitment. Claim this credit with one click on your API key page.
The trial requires no credit card and no phone number. This is important for developers who want to verify compatibility before committing funds. Many competitors require payment method verification even for free tiers, which can be a barrier to quick testing.
Use this trial to run your first requests. Check if the model handles your specific prompts well. Verify that the streaming responses work as expected with your client library. If the trial meets your needs, you can proceed to top up your account for production use.
Step 3: Top Up with Crypto
Unlike traditional vendors that rely on credit cards, PayPal, or bank transfers, Unhinged Grok accepts crypto payments only. You can top up using USDT (TRC20) or USDC (Base). This method is fast, irreversible, and accessible globally without banking restrictions.
- Amounts: Top up any whole amount between $20 and $500.
- Bonuses: Credits of $50 or more receive a +5% bonus. Credits of $100 or more receive a +10% bonus.
- No Expiration: Your prepaid credit never expires. You can top up once and use it over months or years.
Errors and refusals during testing are free. You only pay for actual tokens consumed. This model eliminates the risk of surprise monthly bills or subscription cancellations.
Step 4: Configure Your SDK
Unhinged Grok is fully OpenAI-compatible. This means you can use the official OpenAI SDKs for Python, Node.js, or other languages. You only need to change two things in your configuration:
- Base URL: Set the base URL to
https://api.unhingedgrok.cc/v1. - API Key: Insert your key from the dashboard.
The model identifier is uncensored. This is distinct from the official Grok model IDs. Ensure your code sends requests to this specific model ID to get the uncensored output.
This compatibility allows you to swap between the official Grok API and Unhinged Grok with minimal code changes. It is ideal for A/B testing or for projects that require uncensored responses without rewriting the entire integration layer.
Step 5: Test Your First Request
Send a test request to ensure your configuration is correct. Use the POST /v1/chat/completions endpoint. Here is a basic example using the Python SDK:
from openai import OpenAI
client = OpenAI(base_url="https://api.unhingedgrok.cc/v1", api_key="YOUR_KEY")
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)This request will return a text completion. If you enable streaming, you can receive tokens in real-time. The API supports Server-Sent Events (SSE) for streaming. Token usage details are included in the final chunk of the stream.
Check the response for the choices array. Ensure the content is not blocked. The model is tuned to answer without refusals for lawful adult use, making it suitable for creative writing, roleplay, or controversial topics.
Step 6: Monitor Usage & Billing
Usage is tracked in real-time. You can view your current balance and token consumption in the dashboard. The API returns token counts in the response headers and body, allowing you to track costs programmatically.
- Price: $0.15 per 1M input tokens and $0.50 per 1M output tokens.
- Limits: 300 requests per minute per key. 8 concurrent requests per key. 8 MB request body limit.
- Context Window: 100,000 tokens total (prompt + completion). There is no separate output cap, so a response can run to the end of the window.
Refunds are not issued for standard usage, but mistakes like double charges are handled via the Support page. Since credit never expires, you can top up whenever you are ready.
More guides
Questions and answers
Is the Unhinged Grok API the same as the official Grok API?
No. Unhinged Grok serves a different, uncensored open-weight model. While it uses the same OpenAI-compatible endpoint structure, the model ID is uncensored and the output behavior differs. It is not a reseller of xAI’s model.
Can I pay with a credit card?
No. Unhinged Grok accepts only crypto payments. You can top up with USDT (TRC20) or USDC (Base). No credit cards, PayPal, or bank transfers are supported for top-ups.
How long does my prepaid credit last?
Your prepaid credit never expires. You can top up once and use the credits over an indefinite period. The only expiration is the $0.50 trial credit, which is valid for 7 days after signup. Claim this credit with one click on your API key page.
Does the API support streaming?
Yes. The API supports Server-Sent Events (SSE) for streaming responses. You can enable streaming in your SDK by setting the stream parameter to true. Token usage details are provided in the final chunk.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.