Quickstart for Grok Unhinged users
Drop-in integration for the uncensored model API using standard OpenAI SDKs. Switch your base URL and API key to run unrestricted text completions without changing your application logic.
Prerequisites
Before integrating the grok unhinged endpoint, ensure you have an active account. Sign up via Google or email on the dashboard to receive a single API key immediately. You do not need a credit card for the initial trial credit of $0.50. Claim this credit with one click on your API key page. For production use, top up with USDT (TRC20) or USDC (Base) via the billing page. The API supports standard OpenAI-compatible request structures, so your existing client code will work after updating the base URL and authentication header.
Install the SDK
Use the official OpenAI SDK for your preferred language. The package manages authentication and JSON serialization automatically. Ensure you are using a recent version of the SDK to support streaming and function calling features correctly. No additional dependencies are required beyond the standard SDK package.
Configure Base URL
Point your client to the hosted endpoint. Replace the default OpenAI base URL with our specific domain. This single change directs all requests to the uncensored model. The base URL is https://api.grokunhinged.cc/v1. Authentication is handled via the standard Authorization: Bearer header using your API key.
Basic Chat Completion
Send a standard chat completion request. The model accepts system, user, and assistant messages. It does not enforce content filters for lawful adult or controversial topics. Requests are processed as text-in, text-out. If the request body exceeds 8 MB or you hit the rate limit, the API returns an error. Errors and refusals consume no tokens.
Streaming Responses
Enable streaming by setting stream to true. The API returns tokens as they are generated via Server-Sent Events (SSE). Token usage statistics are included in the final chunk of the stream. This allows you to display partial results to users immediately. Streaming works with function calling and JSON mode responses.
Function Calling
Define tools in your request to enable function calling. The model returns structured tool calls that your code can execute. Pass the tool results back in the conversation history for further reasoning. The API supports tool_choice and standard tool definitions. This works seamlessly with the streaming endpoint for real-time tool execution feedback.
cURL
curl https://api.grokunhinged.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
from openai import OpenAI
client = OpenAI(base_url="https://api.grokunhinged.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.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.grokunhinged.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
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)Questions and answers
What happens if I run out of credit?
Requests will fail until you top up your account. You can add credit at any time using USDT (TRC20) or USDC (Base). Prepaid credit never expires, so you can use it whenever you are ready to continue.
How large is the context window?
The model supports a 100,000 token context window for prompt and completion combined. If you do not specify max_tokens, the response can run to the end of the window.
Is the model trained on my prompts?
No, your prompts are not used for training. The service uses your account email for identification only. You can manage your account and API key details through the dashboard without providing a phone number.
Start with trial credit
Email and password, key on screen right away.
Get API keyTechnical specifications
Everything the endpoint can and cannot do, in one place — check it before you top up.
| Parameter | Details |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Base URL | https://api.grokunhinged.cc/v1 |
| Model | uncensored |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Authentication | Authorization: Bearer YOUR_KEY |
| Streaming | Supported (stream: true), usage included at the end |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Max context | 100,000 tokens, input and output combined |
| JSON mode | JSON object mode via response_format json_object |
| Rate limit | 300 requests per minute per key |
| Concurrency | up to 8 in parallel per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Request size | 8 MB request body |
| 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 |
| Credit expiry | no monthly fee; paid credit does not expire |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Key management | one key per account, regenerate any time (the old one stops working) |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Account | Google or e-mail and password |
Errors and what to do
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 | 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 | unknown endpoint |
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 | temporary overload, retry shortly |