First request in five minutes
Migrate your Grok API integrations to a direct, uncensored alternative with this quickstart guide. We provide an OpenAI-compatible endpoint for the "uncensored" model, allowing you to drop in your existing client code with minimal changes.
Base URL and Authentication
Replace your existing Grok or OpenAI base URL with https://api.grokuncensored.top/v1. Authentication uses a standard API key passed in the Authorization header. You can generate a key by signing up with Google or email on our Get API key page. Your key is displayed immediately and should be treated like any other secret token.
The service supports standard OpenAI SDKs. By updating the base_url and providing your key, your existing client code will route requests to our uncensored model without modification. We do not offer image, audio, or embedding endpoints, so ensure your payload targets POST /v1/chat/completions.
Basic Chat Completion
Send a standard chat completion request to test connectivity and response quality. The model ID is uncensored. This endpoint accepts text input and returns text output, supporting parameters like temperature, top_p, and stop. Requests are billed based on actual token usage, so errors and refusals incur no charge.
curl https://api.grokuncensored.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."}]
}'Review the response to confirm the model is answering without the content refusals typical of other providers. The system handles standard JSON payloads, making it easy to integrate into existing workflows.
Python SDK Integration
Use the official OpenAI Python library to interact with our API. Initialize the client with your API key and the specific base URL for our service. Set the model to uncensored to ensure you are hitting our uncensored instance. This approach allows you to leverage familiar SDK methods for building prompts and parsing responses.
from openai import OpenAI
client = OpenAI(base_url="https://api.grokuncensored.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)Ensure you are using a recent version of the SDK that supports custom base URLs. The client handles retries and standard HTTP errors, allowing you to focus on application logic rather than network handling.
Node SDK Integration
For JavaScript or TypeScript applications, the OpenAI Node SDK works directly with our endpoint. Configure the client with the baseURL pointing to our service and provide your API key. Set the model to uncensored in your completion calls. This ensures compatibility with existing Node.js codebases that rely on the OpenAI standard.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.grokuncensored.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);As with other SDKs, you can pass standard parameters to control output behavior. The SDK handles streaming and parsing, providing a consistent developer experience regardless of the underlying server.
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream, delivering tokens as they are generated. This reduces perceived latency for end-users and allows for real-time display of content. Token usage is reported in the final chunk of the stream.
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)Implement standard SSE handling in your client to process each chunk. This method is ideal for chat interfaces where immediate feedback is preferred over waiting for the full response. Billing reflects the actual tokens generated during the stream.
Limits, Errors, and Context Window
The context window supports up to 100,000 tokens for input and output combined. There is no separate output cap per request, and if max_tokens is unspecified, the response can run to the end of the window. Rate limits are set to 300 requests per minute and 8 concurrent requests per key. If you exceed these limits, you will receive a 429 error. Authentication errors return 401, and account issues return 403. Prepaid credit is charged by real token usage; errors and refusals are free. Credit never expires. The model is tuned for uncensored responses but blocks sexual content involving minors. Use JSON mode via response_format: {"type": "json_object"} for structured outputs. Function calling is supported with tools and tool_choice parameters.
Under the hood: specs
If your tool speaks the OpenAI API, these are the details that matter.
| Spec | Value |
|---|---|
| Protocol | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Base URL | https://api.grokuncensored.top/v1 |
| Methods | POST /v1/chat/completions · GET /v1/models |
| API key | Bearer token in the Authorization header |
| Model | uncensored |
| JSON mode | response_format: {"type": "json_object"} |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| SSE streaming | Supported (stream: true), usage included at the end |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Max context | 100,000 tokens, input and output combined |
| Request size | 8 MB request body |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Concurrency | 8 requests at the same time per key |
| Rate limit | 300/min per key |
| Credit expiry | paid credit never expires, no subscription |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Token prices | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Trial credit | $0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| How you pay | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Key management | one key per account, regenerate any time (the old one stops working) |
| Content | uncensored for adults; the only hard rule: no sexual content involving minors |
| Account | sign in with Google or with e-mail + password |
Error codes
The type field is stable, the message is for humans. Errors cost nothing.
| Code | Type | Meaning |
|---|---|---|
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 | 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 | 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
Does this API support image or audio generation?
No. We provide a text-only chat-completions API. There are no endpoints for images, audio, video, or embeddings. If you need multimodal features, you must use a different service for those specific tasks.
How is billing handled for errors or refusals?
Billing is based strictly on real token usage. If a request results in an error or a content refusal, you are not charged for those tokens. This applies to all types of refusals, including the hard limit on minor sexual content.
What happens if I hit the rate limit?
If you exceed 300 requests per minute or 8 concurrent requests, the API returns a 429 status code. You can retry after a brief delay. Ensure your application handles these errors gracefully by implementing exponential backoff.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.