Key points
- The official Grok API is an OpenAI-compatible endpoint that supports chat completions and streaming but applies specific content filters.
- An unrestricted alternative uses the same standard protocol, allowing you to swap the base URL and API key without changing your client code.
- Our uncensored model offers a 100k context window and supports function calling, JSON mode, and streaming via SSE.
- Pricing is usage-based with no monthly fees, and crypto payments allow for instant top-ups with bonus credit.
Myth: It Is the Official Grok
When developers search for the grok api, they often assume they are interacting directly with xAI's proprietary infrastructure. However, the API endpoint you connect to is an OpenAI-compatible interface. This means it accepts standard JSON payloads and returns structured responses, but it is not necessarily the exact same backend as the web interface.
The official service applies its own content moderation policies, which can differ from the web version. For production workloads, this distinction matters. If your application sends sensitive data or requires consistent behavior without random refusals, relying on the official API's moderation layer might introduce unpredictability. This guide focuses on the protocol you use to interact with these models, whether official or third-party.
Understanding this distinction helps you choose the right endpoint for your needs. Some teams need the brand recognition and integration of the official model, while others prioritize raw output reliability and fewer content blocks. Both are valid choices, but they serve different architectural goals.
Fact: An Independent Uncensored Model
An unrestricted model operates independently of the major vendors. It is an open-weight model hosted on dedicated servers, tuned to answer without content refusals for lawful adult use, security research, or controversial topics. It is not GPT, Claude, Gemini, Grok, DeepSeek, Qwen, Llama, or any other vendor's model.
When you use this API, you are sending text in and receiving text out. The model does not refuse lawful adult, fictional, or security-research topics, which is a common pain point in production workflows. The only hard content limit that always applies is no sexual content involving minors; requests of that kind are refused.
This independence means you are not tied to a single vendor's pricing changes or policy updates. You can swap the base URL in your client code from the official Grok endpoint to our unrestricted endpoint and keep the same SDK logic. This is a pragmatic approach for teams that want control over their output without modifying their integration code.
Why Developers Want Unrestricted Access
Content refusals can disrupt production workflows, especially in applications that generate creative content, analyze political discourse, or process technical data. When a model refuses to answer a valid prompt, it breaks the user experience or requires complex fallback logic.
Developers seek unrestricted access to ensure consistent behavior. For a chatbot, a code assistant, or a data extraction tool, you need the model to output what you ask, provided it is lawful. This is particularly important for security researchers who need to test models against edge cases without hitting arbitrary filters.
The standard OpenAI SDKs handle this well because they are designed for flexibility. By using an OpenAI-compatible API, you can maintain your existing codebase while swapping the underlying model. This reduces technical debt and allows you to test different models without rewriting your integration layer.
OpenAI-Compatible Protocol
The protocol is simple: POST to /v1/chat/completions and GET to /v1/models. There are no embeddings, no image, audio or video generation, and no fine-tuning. This simplicity is a feature, not a limitation, for teams that only need text processing.
Features include streaming via SSE (with token usage in the last chunk), function calling (tools, tool_choice), and JSON mode (response_format json_object). You can control parameters like temperature, top_p, stop, seed, presence_penalty, and frequency_penalty.
This standardization means you can use any OpenAI-compatible client. Change the base_url and the API key, and your code works. This is ideal for teams that want to avoid vendor lock-in and keep their integration logic generic.
Performance & Context Window
The context window is 100,000 tokens, covering prompt + completion together. There is no separate output cap, and if max_tokens is not set, the response can run to the end of the window. This is sufficient for most long-form content generation and complex reasoning tasks.
The model runs on our own servers, ensuring consistent latency and throughput. There are no shared resources with other vendors, which can lead to unpredictable performance during peak times.
For high-throughput applications, the API supports 300 requests per minute per key and 8 requests at the same time per key. The request body is limited to 8 MB. These limits are generous for most use cases and allow for scalable deployment without immediate need for tier upgrades.
Pricing Compared to Major Vendors
Our pricing is straightforward: $0.15 per 1M input tokens and $0.50 per 1M output tokens. Prepaid credit is charged by real token usage, and errors and refusals are free. There is no subscription, no monthly fee, and paid credit never expires.
This contrasts with major vendors who often charge per token but may include hidden costs for premium features or higher latency tiers. Our model offers a transparent, usage-based structure that scales with your actual needs.
For context, major vendors like OpenAI or Anthropic have their own pricing structures, but they may not offer the same level of flexibility or lack of content filtering. Check their own documentation for current prices and limits, as they change frequently. Our model provides a stable alternative for teams that want predictable costs without surprise fees.
How to Integrate the API
Integration is simple. Change the base_url to https://api.unrestrictedgrok.com/v1 and set your API key. The model id to send is "uncensored". This works with the official OpenAI SDKs and any OpenAI-compatible client.
curl https://api.unrestrictedgrok.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedgrok.com/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)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedgrok.com/v1", apiKey: process.env.API_KEY });
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);stream = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Tell the story in second person."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)This code-first approach minimizes friction. You can test the endpoint immediately after signing up, which takes less than a minute. No phone number is required, and you can sign in with Google or email + password.
Content Limits & Refusals
The model does not refuse lawful adult, fictional, security-research, or controversial topics. This is the primary reason developers switch from standard models. However, there is one hard content limit: no sexual content involving minors. Requests of that kind are refused.
Refusals are rare but can occur if the content violates this specific limit. For all other lawful uses, the model will output a response. This makes it ideal for applications where content consistency is critical.
Privacy is also a key factor. An account needs only an email, and prompts are not used for training. This ensures your data remains yours, which is important for enterprise and privacy-conscious developers.
Getting Started Now
Sign up on the "Get API key" page. You can use "Continue with Google" or email + password. The key is shown immediately. No phone number is required.
You get $0.50 of trial credit valid for 7 days (one per person), no card needed. Claim this credit with one click on your API key page. To top up, use crypto only: USDT (TRC20) or USDC (Base), any whole amount from $20 to $500. You get a +5% bonus credit from $50, a +10% bonus from $100, and a +15% bonus from $200.
No cards, no PayPal, no bank transfer. Credit is not refunded but never expires. Mistakes like double charges are fixed through the Support page. Start integrating today with a model that respects your input and delivers consistent output.
More guides
Questions and answers
Is this the official Grok API?
No, this is an independent, uncensored model that uses the same OpenAI-compatible protocol. It is not GPT, Claude, Gemini, Grok, DeepSeek, Qwen, Llama, or any other vendor's model. It runs on our own servers and is tuned to answer without content refusals for lawful adult use.
What is the context window size?
The context window is 100,000 tokens, covering both the prompt and the completion. There is no separate output cap, and if max_tokens is not specified the response can run to the end of the window.
How do I pay for the API?
Payments are crypto-only: USDT (TRC20) or USDC (Base). You can top up any whole amount from $20 to $500, with bonus credit for larger amounts. No cards, PayPal, or bank transfers are accepted.
Are there any content restrictions?
The model is uncensored for lawful adult, fictional, and controversial topics. The only hard limit is no sexual content involving minors, which is always refused. All other requests are processed without content blocks.
