How to Get a Grok API Key for Unfiltered Access
To get a Grok API key for unfiltered access, you need a service that provides an OpenAI-compatible endpoint with transparent, per-token billing. This guide explains how to secure an API key for an uncensored model, configure your SDK, and understand the exact costs without hidden subscriptions.

Key points
- Obtain an API key instantly via Google or email signup, with no phone number required.
- The API uses standard OpenAI-compatible endpoints, allowing you to swap base URLs without changing code.
- Billing is prepaid crypto only, with clear per-token rates and no monthly subscription fees.
- The model supports 100k context windows, streaming, and function calling for complex workflows.
What is the Unfiltered Grok API?
When developers search for a grok api key, they are often looking for unrestricted access to large language models without the content filters typical of mainstream providers. The Unfiltered Grok API is an independent, hosted service that provides an OpenAI-compatible interface to a single, open-weight uncensored model. It is not a reseller of XAI's official Grok model, nor is it affiliated with any major tech vendor. Instead, it serves a dedicated model tuned to answer questions without refusing lawful adult, creative, or controversial topics.
This service is designed for developers who want to avoid per-platform subscriptions. You receive a single API key that grants access to text generation via the standard /v1/chat/completions endpoint. The model accepts text input and returns text output, supporting a 100,000-token context window. It is an ideal alternative for users who need high-capacity inference for creative writing, roleplay, or data processing where content sensitivity might block standard models.
Unlike providers that lock you into complex tiers, this API offers straightforward economics. You pay only for the tokens you actually use. Errors and refusals do not incur charges. The service supports streaming via Server-Sent Events (SSE), allowing you to process responses token-by-token for better user experience in chat applications.
Why Choose an Uncensored Model?
Standard LLMs often employ strict safety filters that can block creative writing, medical advice, or controversial historical facts even when they are factually correct. An uncensored model removes these artificial boundaries, allowing the model to generate content based purely on its training data and the prompt provided. This is particularly valuable for adult creative work, security research, and testing model behavior under various constraints.
- Unrestricted Creativity: Generate stories, scripts, or dialogue without worrying about content policy violations for lawful adult themes.
- Predictable Behavior: The model does not randomly refuse prompts based on subjective safety criteria, providing more consistent outputs for automated pipelines.
- Developer Control: You control the context and prompts. The model will answer questions it might otherwise decline, giving you full agency over the content generation process.
However, uncensored models are not always the right choice. If you need strict brand-safe outputs for customer-facing applications, a filtered model might be preferable. Additionally, without safety rails, the model may generate factual errors or biased content that you must handle in your post-processing layer. The Unfiltered Grok API does not offer image, audio, or video generation, nor does it provide embeddings or fine-tuning. It is strictly a text completion engine.
Step 1: Create Your Account
Getting started requires no credit card and no phone number. The signup process is designed to be fast and privacy-friendly. You can create an account using your Google credentials or by setting up a simple email and password combination. This simplicity ensures that you can access the API immediately without waiting for verification delays common in traditional enterprise services.
Once you navigate to the "Get API key" page, you will be prompted to choose your preferred sign-in method. After authenticating, the system generates your account. The entire process is transparent, and you do not need to provide personal identifiable information beyond an email address. Your prompts are not used for training, ensuring your data remains private within the scope of the service.
New accounts receive a trial credit of $0.50, valid for 7 days. This allows you to test the API's performance, latency, and output quality before committing to a prepaid balance. Claim this credit with one click on your API key page. The trial requires no payment method, making it easy to evaluate the model's capabilities for your specific use case.
Step 2: Receive Your Grok API Key
Upon successful signup, your API key is displayed immediately. This key is the primary credential you will use to authenticate your requests to the API. Each account is limited to one active key at a time; generating a new key will replace the old one, so ensure you update your configuration in all your applications accordingly.
The key is generated instantly, allowing you to start making requests within seconds. There is no waiting period for approval or manual verification. You can copy the key directly from the dashboard and store it securely in your environment variables or secret manager.
Keep your key secure, as it grants access to your prepaid credit. If you lose your key, you can generate a new one from the dashboard, but remember that the old key will no longer work. The service does not offer email-based key recovery because the key is shown only once upon creation. Regularly rotate your keys if you suspect any compromise, as credit is charged by actual usage, not by the number of keys in circulation.
Step 3: Configure Your SDK
Since the API is OpenAI-compatible, you can use the official SDKs for Python, Node.js, and other languages. You only need to change the base URL and provide your API key. This compatibility means you can switch between different providers or models with minimal code changes.
For example, in Python, you would initialize the client with the custom base URL. The model ID to use is "uncensored". This model runs on our own servers and is not tied to any specific vendor's infrastructure. The API supports standard parameters such as temperature, top_p, stop sequences, and seed for reproducibility.
Streaming is supported via Server-Sent Events (SSE), which allows you to receive responses token-by-token. This is useful for chat interfaces where you want to display text as it is generated. The API also supports function calling, enabling you to define tools that the model can invoke. This feature is essential for building agents that can interact with external systems or databases.
Step 4: Make Your First Request
With your SDK configured, you can make your first request. The endpoint is POST /v1/chat/completions. You must include your API key in the Authorization header. The request body should contain the model ID, messages, and any additional parameters you wish to tune.
The model supports a context window of 100,000 tokens, which includes both the prompt and the completion. If you do not specify the max_tokens parameter, the response can run to the end of the window. This flexibility allows you to handle long documents or complex conversations without breaking the context window.
Here is an example of a basic request using Python:
from openai import OpenAI
client = OpenAI(base_url="https://api.unfilteredgrok.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)The response will contain the generated text, along with token usage statistics. You can monitor your usage and credit balance through the dashboard. The API does not support embeddings, image generation, or audio processing, so ensure your use case aligns with text-only operations.
Understanding Token Costs
Billing is transparent and based on actual token usage. There are no monthly fees or subscriptions. You pay $0.15 per million input tokens and $0.50 per million output tokens. This pricing model is straightforward and predictable, allowing you to estimate costs based on your expected usage.
Errors and refusals are free. If the model fails to generate a response due to a technical issue, you are not charged. This ensures that you only pay for successful completions. The prepaid credit never expires, so you can top up whenever you want and use the credit at your own pace.
Here is a breakdown of typical costs:
- Input: $0.15 per 1M tokens
- Output: $0.50 per 1M tokens
- Minimum charge: $0.01 per request
You can monitor your usage in real-time through the dashboard. The API supports streaming, which allows you to see token usage as the response is generated. This is useful for debugging and optimizing your prompts to reduce costs.
Crypto Payment Options
To add credit to your account, you must use cryptocurrency. We accept USDT on the TRC20 network and USDC on the Base network. You can top up any whole amount between $20 and $500. This flexibility allows you to choose the amount that best suits your budget and usage patterns.
For larger top-ups, we offer bonus credit. Adding $50 or more gives you a 5% bonus, while adding $100 or more gives you a 10% bonus. This incentive rewards higher usage and provides more value for your investment. The bonus credit is added immediately upon confirmation of the transaction.
Payments are processed automatically, and your credit balance is updated in real-time. There are no hidden fees or processing charges. The service does not accept credit cards, PayPal, or bank transfers, keeping the payment process simple and decentralized. You can view your transaction history and current balance on the dashboard.
More guides
Questions and answers
Is this the official XAI Grok API?
No, this is an independent service. We host an open-weight uncensored model that is compatible with the OpenAI API format. It is not affiliated with XAI or any other vendor.
What happens if I make a mistake and pay twice?
Credit is not refunded, but mistakes like double charges are fixed through the Support page. Since credit never expires, you can use it for future requests.
Can I use this API for commercial purposes?
Yes, the model does not refuse lawful adult or commercial content. However, you are responsible for ensuring your use case complies with applicable laws and regulations.
What is the maximum context window?
The context window is 100,000 tokens, including both input and output. There is no separate output cap.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.