Unfiltered Grok: Switch your client in three lines
Connect your existing code to our uncensored LLM API in minutes. This guide covers the essential endpoints, authentication, and client configurations needed to start sending requests immediately.
Authentication and Base URL
To use our uncensored model, you need an API key from your account dashboard. Our endpoint is fully OpenAI-compatible, so you can use the same SDKs and client libraries you already know. Simply update your client configuration to point to our base URL and provide your key.
- Base URL:
https://api.unfilteredgrok.top/v1 - Model ID:
uncensored - Auth Header:
Authorization: Bearer YOUR_API_KEY
This setup ensures that your existing logic for handling chat completions works without modification. You are connecting to an independent service, not the official vendor's infrastructure.
First Request
Send a standard chat completion request to test connectivity. The endpoint accepts text input and returns text output. Use the curl command below to verify your API key and model access. This confirms that your credentials are valid and the service is responding.
This raw HTTP request demonstrates the basic structure required for all subsequent interactions. If you receive a JSON response, your integration is working correctly.
Python SDK Integration
For Python developers, the official openai package works directly with our API. Configure the client with our base URL and your API key. This allows you to leverage familiar methods like chat.completions.create() while benefiting from our uncensored model's behavior.
Ensure you are using a recent version of the SDK to support all parameters. This approach minimizes code changes and reduces the risk of integration errors when switching from other providers.
Node.js SDK Setup
JavaScript and TypeScript developers can use the openai Node package. Initialize the client with the same base URL and key structure as the Python example. This ensures consistent behavior across your application's backend services.
The SDK handles serialization and request formatting automatically. You can continue using your existing prompt templates and logic without rewriting the core communication layer. This makes it easy to deploy the uncensored model into production environments quickly.
Streaming Responses
Enable streaming by setting the stream parameter to true. The API returns data incrementally via Server-Sent Events (SSE). This is ideal for real-time user experiences where latency matters.
Each chunk contains a portion of the response. The final chunk includes token usage statistics. Handle these chunks in your client to update the UI progressively. This method reduces perceived wait times and provides a smoother interaction for end-users.
Limits, Errors, and Context
Your API key is limited to 300 requests per minute and 8 concurrent requests. If you exceed this, you will receive a 429 rate limit error. Ensure your key has sufficient prepaid credit; a 402 error indicates a balance issue. An invalid key results in a 401 error.
The context window supports 100,000 tokens total, with no separate output cap. Use the max_tokens parameter to control output length. Errors and refusals do not consume credit, but valid token usage does. Keep request bodies under 8 MB to ensure reliable processing.
cURL
curl https://api.unfilteredgrok.top/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."}]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.unfilteredgrok.top/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)Node.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unfilteredgrok.top/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);Streaming
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)Technical reference
If your tool speaks the OpenAI API, these are the details that matter.
| Item | Value |
|---|---|
| API format | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Model ID | uncensored |
| API key | Authorization: Bearer YOUR_KEY |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.unfilteredgrok.top/v1 |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Context window | 100,000 tokens, input and output combined |
| JSON mode | JSON object mode via response_format json_object |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Request size | 8 MB request body |
| Rate limit | 300/min per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Parallel requests | 8 requests at the same time per key |
| Subscription | no monthly fee; paid credit does not expire |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Token prices | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Free trial | $0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| Account | Google or e-mail and password |
| Keys | one active key per account; a new key replaces the old one |
| Content policy | adult content allowed; sexual content involving minors is refused |
HTTP errors
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | balance is empty — top up, requests resume at once |
403 | content_blocked | refused by the content policy |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | temporary overload, retry shortly |
Questions and answers
Is this the official Grok API?
No, we are an independent service. We host an open-weight model tuned for uncensored responses, served via an OpenAI-compatible endpoint. It is not GPT, Claude, or the official Grok API.
How do I pay for usage?
We accept crypto only: USDT (TRC20) or USDC (Base). You can top up with whole amounts from $20 to $500. Prepaid credit never expires, and errors do not consume funds.
What is the maximum output length?
There is no separate output cap per response. If you do not set max_tokens, the response can run to the end of the window. The total context window, including the prompt, is 100,000 tokens.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Get API key