First request in five minutes
Drop your existing client configuration into three lines and start sending prompts to our uncensored model. This guide covers the essential endpoints, streaming, and tool usage for the OpenAI-compatible API.
Base URL and Authentication
To interact with the uncensored model api, update your client's base URL to https://api.unrestrictedgrok.cc/v1. Authentication relies on a single API key per account, which you generate via Google or email on the signup page. Pass this key in the Authorization header as a Bearer token. Unlike traditional services, we do not require a credit card for the initial trial, and your prepaid credit never expires.
Sending a Completion Request
The core interaction uses the standard chat completions endpoint. Send a POST request with your prompt messages and the model identifier uncensored. The API returns text output directly. Note that we support a 100,000-token context window, and your prompt and output together must stay within it.
curl https://api.unrestrictedgrok.cc/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
Using the official OpenAI Python library simplifies integration. Set the base URL and API key in the client constructor, then call chat.completions.create. This approach works for both synchronous calls and streaming. The library handles the tokenization and request formatting automatically.
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedgrok.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)
Node SDK Integration
For Node.js developers, the @openai/openai package provides a straightforward interface. Initialize the client with your custom base URL and API key. You can then invoke the chat completion method just like any standard OpenAI-compatible service. This ensures your existing code requires minimal changes to switch providers.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedgrok.cc/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 via SSE
Enable streaming by setting the stream parameter to true. The API returns a Server-Sent Events (SSE) stream, allowing you to process tokens as they are generated. This is critical for long-form content generation or real-time applications. The final chunk of the stream contains the total token usage for billing purposes.
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 Window
Each API key is limited to 300 requests per minute and 8 concurrent connections. If you send too many requests, you will receive a 429 error. A 401 error indicates an invalid key, while 402 errors occur when your prepaid credit is exhausted. Errors and refusals do not consume tokens. Remember that the 100,000-token limit applies to the combined input and output length.
Specs at a glance
One table with every limit, feature and price that applies to your key.
| Spec | Value |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| API key | Authorization: Bearer YOUR_KEY |
| Base URL | https://api.unrestrictedgrok.cc/v1 |
| Model ID | uncensored |
| Methods | POST /v1/chat/completions · GET /v1/models |
| JSON mode | JSON object mode via response_format json_object |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Streaming | Supported (stream: true), usage included at the end |
| Max context | 100,000 tokens (prompt + completion together) |
| 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 |
| Request size | 8 MB request body |
| Response 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 |
| Rate limit | 300/min per key |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| How you pay | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| Subscription | no monthly fee; paid credit does not expire |
| 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 |
| Account | Google or e-mail and password |
| Content | uncensored for adults; the only hard rule: no sexual content involving minors |
| Key management | one key per account, regenerate any time (the old one stops working) |
Errors and what to do
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| 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 | 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 | unknown endpoint |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
Does the API support image or audio generation?
No, this is a text-only API. It serves one uncensored large language model for text input and text output. There are no embeddings, image, audio, or video generation capabilities.
How is billing calculated?
We charge $0.15 per 1M input tokens and $0.50 per 1M output tokens. Credit is charged by real token usage, and errors are free. Top-ups are crypto-only via USDT or USDC.
Is there a free tier?
New users get $0.50 of trial credit, one per person, valid for 7 days. Claim this credit with one click on your API key page. No credit card is needed to start. After the trial, you must top up with crypto to continue using the API.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
On this page
- Base URL and Authentication
- Sending a Completion Request
- Python SDK Integration
- Node SDK Integration
- Streaming Responses via SSE
- Limits, Errors, and Context Window
Email and password, key on screen right away.