Switch your client in three lines
Get your first response from the uncensored API in under five minutes. This quickstart covers authentication, basic requests, and streaming with the standard OpenAI-compatible clients.
Base URL and Authentication
Our API follows the standard OpenAI structure, which means you can use the same SDKs you already know. The base URL is https://api.unrestrictedgrok.top/v1. You do not need a complex OAuth flow or a service account. Instead, you generate a single API key via our dashboard using Google or email. This key is the only credential you need to authenticate your requests. Keep it secure, as it provides full access to your prepaid credit. Unlike many providers, we do not require a credit card on file to start, and the key is displayed immediately upon creation.
- Base URL:
https://api.unrestrictedgrok.top/v1 - Auth Header:
Authorization: Bearer YOUR_API_KEY - Model ID:
uncensored
First Request
Start by sending a simple text completion. This confirms your key works and connects you to the uncensored model. The model is designed to answer without content refusals for lawful adult use, making it ideal for creative writing, data extraction, or testing boundaries. You can send this request using any HTTP client. The response will include the generated text in the choices array.
curl https://api.unrestrictedgrok.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 SDK Integration
Most developers prefer using the official openai Python package. You simply point the client to our base URL and provide your key. The code structure remains identical to standard OpenAI usage. This approach ensures that if you switch back to another provider later, you only need to change the base URL. The SDK handles tokenization and JSON serialization automatically. Remember that the model identifier is always uncensored.
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedgrok.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 SDK Integration
For JavaScript and TypeScript environments, the Node SDK works out of the box. Set the baseURL to our endpoint and pass your API key. This allows you to integrate uncensored generation directly into your web apps, scripts, or backend services. The SDK supports modern async/await patterns. You can pass standard parameters like temperature and top_p to control creativity. Ensure you are using a recent version of the SDK for full compatibility.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedgrok.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 Responses
For real-time applications, enable streaming by setting stream: true. The API returns data as Server-Sent Events (SSE). Each chunk contains a partial token. The final chunk includes the full token usage statistics for the request. This is efficient for displaying text as it is generated. You do not need to wait for the entire response to arrive. Handle the stream events to render text incrementally in your UI or log it to a file.
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)
Limits, Errors, and Context
Understand the constraints to build reliable integrations. The context window is 100,000 tokens total, with no separate output cap (if unspecified, the response can run to the end of the window). You are limited to 300 requests per minute and 8 concurrent requests per key. Errors are standard HTTP codes: 401 for invalid keys, 402 if your prepaid credit is exhausted, and 429 for rate limits. Errors and refusals do not consume credit. Requests are capped at 8 MB body size.
API specifications
The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.
| Item | Value |
|---|---|
| API format | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Base URL | https://api.unrestrictedgrok.top/v1 |
| Authentication | Bearer token in the Authorization header |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Model | uncensored |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Sampling parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| SSE streaming | Supported (stream: true), usage included at the end |
| JSON mode | JSON object mode via response_format json_object |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Max context | 100,000 tokens, input and output combined |
| Request size | up to 8 MB per request |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Concurrency | 8 requests at the same time per key |
| Requests per minute | 300/min per key |
| Trial credit | $0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Token prices | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Credit expiry | paid credit never expires, no subscription |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Key management | one active key per account; a new key replaces the old one |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Sign-in | sign in with Google or with e-mail + password |
Error reference
Every error is JSON with a type you can switch on. You are never charged for an error.
| Code | Type | Meaning |
|---|---|---|
400 | bad_request | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
Is this the official Grok API?
No. We are an independent service running our own uncensored model compatible with the OpenAI API format. We do not serve the official Grok model from xAI. Check the official provider's documentation for their specific limits and pricing.
How do I top up my credit?
We accept crypto only: USDT (TRC20) or USDC (Base). You can top up any whole amount between $20 and $500. Bonuses apply for larger amounts. No credit cards or PayPal are accepted.
What happens if I get a 402 error?
A 402 error means your prepaid credit is exhausted. Your API key remains valid, but you must top up via the dashboard to continue making requests. Errors do not consume credit, so you can retry safely once funded.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.