EN ▾

Switch your client in three lines

Get your first response from the uncensored API in under five minutes. This quickstart covers authentication, basic requests, and streaming with the standard OpenAI-compatible clients.

Base URL and Authentication

Our API follows the standard OpenAI structure, which means you can use the same SDKs you already know. The base URL is https://api.unrestrictedgrok.top/v1. You do not need a complex OAuth flow or a service account. Instead, you generate a single API key via our dashboard using Google or email. This key is the only credential you need to authenticate your requests. Keep it secure, as it provides full access to your prepaid credit. Unlike many providers, we do not require a credit card on file to start, and the key is displayed immediately upon creation.

  • Base URL: https://api.unrestrictedgrok.top/v1
  • Auth Header: Authorization: Bearer YOUR_API_KEY
  • Model ID: uncensored

First Request

Start by sending a simple text completion. This confirms your key works and connects you to the uncensored model. The model is designed to answer without content refusals for lawful adult use, making it ideal for creative writing, data extraction, or testing boundaries. You can send this request using any HTTP client. The response will include the generated text in the choices array.

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

Most developers prefer using the official openai Python package. You simply point the client to our base URL and provide your key. The code structure remains identical to standard OpenAI usage. This approach ensures that if you switch back to another provider later, you only need to change the base URL. The SDK handles tokenization and JSON serialization automatically. Remember that the model identifier is always uncensored.

from openai import OpenAI

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

For JavaScript and TypeScript environments, the Node SDK works out of the box. Set the baseURL to our endpoint and pass your API key. This allows you to integrate uncensored generation directly into your web apps, scripts, or backend services. The SDK supports modern async/await patterns. You can pass standard parameters like temperature and top_p to control creativity. Ensure you are using a recent version of the SDK for full compatibility.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.unrestrictedgrok.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 applications, enable streaming by setting stream: true. The API returns data as Server-Sent Events (SSE). Each chunk contains a partial token. The final chunk includes the full token usage statistics for the request. This is efficient for displaying text as it is generated. You do not need to wait for the entire response to arrive. Handle the stream events to render text incrementally in your UI or log it to a file.

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

Understand the constraints to build reliable integrations. The context window is 100,000 tokens total, with no separate output cap (if unspecified, the response can run to the end of the window). You are limited to 300 requests per minute and 8 concurrent requests per key. Errors are standard HTTP codes: 401 for invalid keys, 402 if your prepaid credit is exhausted, and 429 for rate limits. Errors and refusals do not consume credit. Requests are capped at 8 MB body size.

API specifications

The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.

ItemValue
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
Base URLhttps://api.unrestrictedgrok.top/v1
AuthenticationBearer token in the Authorization header
EndpointsPOST /v1/chat/completions · GET /v1/models
Modeluncensored
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Sampling parameterstemperature, top_p, stop, seed and the two penalties are passed through
SSE streamingSupported (stream: true), usage included at the end
JSON modeJSON object mode via response_format json_object
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Max context100,000 tokens, input and output combined
Request sizeup to 8 MB per request
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrency8 requests at the same time per key
Requests per minute300/min per key
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
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
Credit expirypaid credit never expires, no subscription
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
How you payprepaid credit, charged by real token usage; errors and refusals are free
Key managementone active key per account; a new key replaces the old one
Content policyadult content allowed; sexual content involving minors is refused
Sign-insign in with Google or with e-mail + password

Error reference

Every error is JSON with a type you can switch on. You are never charged for an error.

CodeTypeMeaning
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditout of credit; add credit and retry
403content_blockedsexual content involving minors — refused, not billed
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busymodel busy — retry in a few seconds

Questions and answers

Is this the official Grok API?

No. We are an independent service running our own uncensored model compatible with the OpenAI API format. We do not serve the official Grok model from xAI. Check the official provider's documentation for their specific limits and pricing.

How do I top up my credit?

We accept crypto only: USDT (TRC20) or USDC (Base). You can top up any whole amount between $20 and $500. Bonuses apply for larger amounts. No credit cards or PayPal are accepted.

What happens if I get a 402 error?

A 402 error means your prepaid credit is exhausted. Your API key remains valid, but you must top up via the dashboard to continue making requests. Errors do not consume credit, so you can retry safely once funded.

Your key is one form away

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

Get API key