EN ▾
Get API key

Switch your client in three lines

Connect to the uncensored grok API in under five minutes using standard OpenAI-compatible SDKs. No credit card, no model routing, just raw text generation.

Base URL & Auth

Our API mirrors the OpenAI structure but serves a single, uncensored model optimized for direct answers without corporate refusals. You authenticate using an API key generated via the dashboard, accessible via Google or email. The base URL is https://api.unhingedgrok.top/v1. This ensures your existing client code works without modification, provided you update the base URL and inject your key into the authorization header. There is no subscription; you pay only for what you use. Credit is prepaid via USDT (TRC20) or USDC (Base), and errors do not consume tokens.

Chat Completions

Send a standard chat-completions request to generate text. The endpoint accepts a list of messages and returns a completion. The model identifier is always uncensored. This is an open-weight model, not GPT-4 or Grok from xAI. It handles context windows up to 100,000 tokens, with no separate output cap. If you do not specify max_tokens, the response can run to the end of the window. Use this endpoint for text-in, text-out scenarios where you need unfiltered responses for adult or controversial topics without gatekeeping.

curl https://api.unhingedgrok.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

Integrate quickly using the official OpenAI Python library. Point the client to our base URL and supply your API key. The code structure remains identical to standard OpenAI usage, ensuring a smooth transition for developers already familiar with the ecosystem. The model responds to prompts without the usual conversational filler or refusal patterns common in commercial models. This approach works for both simple queries and complex multi-turn conversations, provided you manage the message history correctly on the client side.

from openai import OpenAI

client = OpenAI(base_url="https://api.unhingedgrok.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

For JavaScript and TypeScript environments, the Node SDK follows the same pattern. Initialize the client with the correct base URL and key. The uncensored model handles natural language processing tasks efficiently. You can configure parameters like temperature and top_p to control randomness. This SDK is ideal for backend services or serverless functions that need to generate text programmatically. It supports streaming natively, allowing you to push tokens to the client as they are generated, reducing perceived latency for end-users.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.unhingedgrok.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

Enable real-time token delivery by setting stream: true. The API returns Server-Sent Events (SSE) with incremental JSON objects. Each chunk contains partial text and token usage statistics. The final chunk includes the full usage summary. This is critical for applications requiring immediate feedback, such as chat interfaces. Streaming does not affect token billing; you are charged for the total tokens generated, regardless of the streaming method. Errors during streaming are reported in the final chunk or via the connection close event.

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 & Errors

Respect the hard limits to avoid service interruption. You are allowed 300 requests per minute and 8 concurrent requests per key. The maximum request body size is 8 MB. If you send an invalid key, you will receive a 401 Unauthorized error. If your prepaid credit is exhausted, the API returns a 402 Payment Required error. A 429 status indicates you have exceeded the rate limit. These limits apply per API key. If you need more throughput, you can generate a new key to replace the old one, as each account is limited to one active key at a time.

Capabilities and limits

A quick checklist for developers: format, limits, features, billing.

SpecValue
ProtocolOpenAI Chat Completions schema; official openai SDKs work unchanged
AuthenticationAuthorization: Bearer YOUR_KEY
Base URLhttps://api.unhingedgrok.top/v1
Modeluncensored
EndpointsPOST /v1/chat/completions · GET /v1/models
JSON modeJSON object mode via response_format json_object
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Max context100,000 tokens (prompt + completion together)
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
StreamingSupported (stream: true), usage included at the end
Rate limit300 requests per minute per key
Parallel requests8 requests at the same time per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Request sizeup to 8 MB per request
Price$0.15 per 1M input tokens · $0.50 per 1M output tokens
Subscriptionpaid credit never expires, no subscription
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
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
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Contentuncensored for adults; the only hard rule: no sexual content involving minors
Accountsign in with Google or with e-mail + password
Key managementone active key per account; a new key replaces the old one

HTTP errors

Errors come back as JSON with a stable type; failed and refused requests are not billed.

CodeTypeMeaning
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditout of credit; add credit and retry
403content_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busymodel busy — retry in a few seconds

Questions and answers

Is this the official Grok API from xAI?

No. We are an independent service hosting an uncensored large language model. While we are compatible with the same client code, our model is not GPT, Claude, or Grok. We do not route requests to xAI's servers.

How do I top up my credit?

Payments are crypto-only via USDT (TRC20) or USDC (Base). You can top up any whole amount between $20 and $500. Credits never expire, and you receive a bonus for larger deposits.

What happens if I get a 402 error?

A 402 error means your prepaid credit is depleted. You can top up immediately via the dashboard using crypto. Errors and refusals do not consume credit, so you only pay for successful token generation.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key