First request in five minutes
Replace your existing base URL and API key to start sending requests to our uncensored endpoint. The following quickstart guide covers the essential OpenAI-compatible endpoints for text generation, streaming, and tool use.
Base URL and Authentication
Our API is fully OpenAI-compatible. You interact with it by setting the base_url to https://api.grokunhinged.top/v1 and providing your API key in the Authorization header. You can obtain a key immediately after signing up with Google or email on the Get API key page. The key is displayed once upon creation, so ensure you save it securely.
The API key authenticates your prepaid credits. If the key is missing or invalid, the server returns a 401 error. If your account balance is exhausted, you receive a 402 error. There are no subscriptions; you simply top up with crypto to continue using the service.
Sending a Chat Completion
To generate a response, send a POST request to /v1/chat/completions. The model identifier is uncensored. This model is an open-weight LLM tuned for fewer refusals on lawful adult and controversial topics, distinct from standard vendor models.
- Input: A list of message objects (system, user, assistant).
- Output: The generated text content.
Errors and refusals do not consume your prepaid credits, so you only pay for actual token usage. You can adjust parameters like temperature and top_p to control creativity.
curl https://api.grokunhinged.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
Using the official OpenAI Python library is the fastest way to integrate. Point the client to our base URL and supply your API key. This approach works for any standard OpenAI-compatible client library.
The uncensored model supports standard chat parameters. You can send single-turn or multi-turn conversations. The context window allows for a combined total of 100,000 tokens for prompt and completion, making it suitable for long documents or extensive conversation histories.
from openai import OpenAI
client = OpenAI(base_url="https://api.grokunhinged.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 Usage
For JavaScript/TypeScript developers, the openai npm package works directly with our endpoint. Configure the client with the correct base URL and your API key. This ensures that function calling and JSON mode features work exactly as documented in the OpenAI specs.
Node clients benefit from the same prepaid model. You can run this in serverless environments or standard Node.js servers. Ensure you handle the response asynchronously, as network latency may vary depending on server load.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.grokunhinged.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 user experiences, enable streaming by setting stream: true. The API returns a Server-Sent Events (SSE) stream of chunks. Each chunk contains partial text.
The final chunk in the stream includes the total token usage for that request, allowing you to track your prepaid balance accurately. Streaming is ideal for chat interfaces where immediate feedback is preferred over waiting for the full response to finish.
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)
Rate Limits and Context Window
Our API enforces specific limits to ensure stability. You are allowed 300 requests per minute per key and 8 concurrent requests. The maximum request body size is 8 MB. If you exceed these limits, you will receive a 429 Too Many Requests error.
The context window is 100,000 tokens total. If you do not specify max_tokens, the response can run to the end of the window. Remember that one account can only have one active key; generating a new key replaces the old one immediately.
Technical reference
Use this table to decide whether the API fits your project before you buy credit.
| Parameter | Details |
|---|---|
| Protocol | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Model | uncensored |
| Authentication | Authorization: Bearer YOUR_KEY |
| Base URL | https://api.grokunhinged.top/v1 |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Context window | 100,000 tokens, input and output combined |
| 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 |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Streaming | Supported (stream: true), usage included at the end |
| JSON mode | response_format: {"type": "json_object"} |
| Request size | up to 8 MB per request |
| Rate limit | 300/min per key |
| 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 |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Free trial | $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 |
| Credit expiry | no monthly fee; paid credit does not expire |
| Sign-in | sign in with Google or with e-mail + password |
| Content | adult content allowed; sexual content involving minors is refused |
| Keys | one active key per account; a new key replaces the old one |
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 | balance is empty — top up, requests resume at once |
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 |
Questions and answers
Does the API support image or audio generation?
No, this is a text-only API. It serves the uncensored LLM for text input and output. We do not offer embeddings, image, audio, or video generation endpoints.
How do I top up my credit?
You can top up using USDT (TRC20) or USDC (Base). Minimum top-ups are $20, and you receive a 5% bonus on $50+ and a 10% bonus on $100+. Credits never expire.
Is the model the same as Grok?
No. The model ID is uncensored. It is an open-weight model run on our own servers, tuned for fewer refusals, but it is not GPT, Claude, Gemini, Grok, or any other vendor's model.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.