EN ▾
Get API key

Quickstart for Grok users

Start sending requests to our uncensored LLM API in under five minutes. Drop in your base URL and API key, and your existing OpenAI-compatible client code runs immediately.

Base URL & Authentication

Point your client to our OpenAI-compatible base URL and pass your key in the Authorization header. This is the only configuration change required for most SDKs. https://api.uncensoredgrok.cc/v1 works with the official OpenAI SDKs and any compatible client. Generate your key on the Get API key page via Google or email. You see the key immediately; keep it secure.

We do not use API version prefixes in the base URL. The endpoint structure mirrors /v1/chat/completions exactly. No subscriptions, no monthly fees, no enterprise SLAs. Just a pure REST API that accepts text and returns text.

curl https://api.uncensoredgrok.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."}]
  }'

Authentication is strict. If the key is missing or invalid, the API returns a 401 error. If you have no prepaid credit, it returns a 402 error. Errors and refusals do not consume your balance.

Chat Completions Endpoint

Send your prompt to POST /v1/chat/completions. The model ID is uncensored. This is an open-weight model tuned to answer without content refusals for lawful adult use. It is not GPT, Claude, or Grok. It is an independent uncensored LLM API.

  • Context window: 100,000 tokens total (prompt + completion).
  • Max output: up to the end of the window (if max_tokens is unset).
  • Parameters: temperature, top_p, stop, seed, presence_penalty, frequency_penalty.

Use this endpoint for standard text generation. We do not offer embeddings, images, audio, or fine-tuning. Keep your requests under 8 MB.

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE). Each chunk contains part of the completion. Token usage details appear only in the final chunk.

Streaming reduces perceived latency for long outputs. It does not change the pricing model. You pay for the total tokens used, whether streamed or not. Errors during streaming still return a final chunk with an error code.

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)

Handle stream termination gracefully. If the connection drops, you may not receive the final token count. Always check the final chunk for accurate usage data.

Function Calling

Define tools in your messages array using the standard OpenAI format. Set tool_choice to auto or a specific tool name. The model returns structured JSON when a tool is invoked.

Function calling works exactly as documented for OpenAI-compatible clients. Pass the tool definitions in the request body. The model decides whether to call a tool or generate text. No extra configuration is needed.

from openai import OpenAI

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

Parse the tool calls from the response. Execute the function locally. Send the result back in the conversation history. Repeat until the model generates a final text response.

JSON Mode

Force structured output by setting response_format to {"type": "json_object"}. The model returns valid JSON instead of free-form text. This is useful for parsing data or generating structured content.

JSON mode does not guarantee perfect schema compliance. The model may still produce invalid JSON if the prompt is ambiguous. Always validate the output in your client code. Use temperature settings to control randomness.

This feature works with the uncensored model ID. It is not available for embeddings or image generation since we only serve text completions.

Error Handling & Rate Limits

Handle common errors explicitly. A 401 error means your API key is invalid. A 402 error means you need to top up your crypto credit. A 429 error means you hit the rate limit.

  • Rate limit: 300 requests per minute per key.
  • Concurrency: 8 simultaneous requests per key.
  • Request size: max 8 MB body.

One active key per account. A new key replaces the old one. Refunds are not issued for used credit. Mistakes like double charges are fixed via the Support page. Credit never expires.

Node.js

import OpenAI from "openai";

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

Capabilities and limits

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

ItemValue
ProtocolOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
EndpointsPOST /v1/chat/completions · GET /v1/models
API keyBearer token in the Authorization header
Base URLhttps://api.uncensoredgrok.cc/v1
Modeluncensored
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
StreamingYes — server-sent events; the last chunk carries token usage
Sampling parameterstemperature, top_p, stop, seed and the two penalties are passed through
Context window100,000 tokens, input and output combined
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Structured outputresponse_format: {"type": "json_object"}
Concurrencyup to 8 in parallel per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Request size8 MB request body
Rate limit300 requests per minute per key
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
Subscriptionpaid credit never expires, no subscription
Top-upUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Volume bonus+5% from $50, +10% from $100, +15% from $200
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Key managementone key per account, regenerate any time (the old one stops working)
Content policyuncensored for adults; the only hard rule: no sexual content involving minors
Sign-insign in with Google or with e-mail + password

Errors and what to do

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_creditbalance is empty — top up, requests resume at once
403content_blockedsexual content involving minors — refused, not billed
404not_foundonly /v1/chat/completions and /v1/models exist
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

Do I need to change my client code to use this API?

No. If your client uses the OpenAI SDK or any OpenAI-compatible library, you only need to update the base URL and API key. The endpoint structure and request format are identical.

What happens if I hit the rate limit?

The API returns a 429 status code. You are limited to 300 requests per minute and 8 concurrent requests per key. Wait and retry, or upgrade your usage if needed.

Is the trial credit renewable?

No. New users get $0.50 of trial credit valid for 7 days, one per person. It is one per person. Claim this credit with one click on your API key page. After that, you must top up with crypto (USDT or USDC) 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.