EN ▾
Get API key

Quickstart for Grok users

Connect your existing client code to our uncensored text API in minutes. Replace your base URL and key to start generating raw text outputs with zero configuration changes.

Prerequisites and Base URL

To use this grok api, you need an account and an API key. Sign up on the Get API key page using Google or email; your key appears immediately. No phone number is required. You also need the official OpenAI SDK for your language installed. We serve a single uncensored model under the ID uncensored, which is an open-weight model running on our servers. It is not GPT, Claude, or any other vendor's model.

Set your client's base URL to https://api.grokapi.cc/v1. This endpoint handles all text completions. We do not offer embeddings, images, audio, or video. The API is strictly text-in, text-out. If you need multimodal features, this API is not the right choice for those specific tasks. Our focus is raw text generation with no content filters for lawful adult use.

Make First Request

Send a standard chat-completions request to test connectivity. The model ID is uncensored. You can specify parameters like temperature and top_p to control output randomness. The context window supports 100,000 tokens total, with no separate output cap. If you do not set max_tokens, the response can run to the end of the window.

Below is a basic cURL example. Replace YOUR_API_KEY with your key from the dashboard.

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

This returns a JSON object with the generated text. If you get a 401, your key is invalid. If you get a 402, you need to top up credit. We accept only crypto (USDT on TRC20 or USDC on Base). There are no monthly fees or subscriptions.

Python SDK Integration

Use the official OpenAI Python SDK to interact with our API. Install the package via pip, then initialize the client with our base URL and your key. This ensures compatibility with existing workflows. The model ID remains uncensored.

The following Python snippet demonstrates a simple chat completion. It handles the request and prints the assistant's content. You can add stream=True for real-time output, but see the streaming section for best practices with Server-Sent Events.

from openai import OpenAI

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

This approach works for any OpenAI-compatible client library. You can adjust parameters like frequency_penalty or presence_penalty as needed. Errors are returned as standard HTTP status codes with JSON bodies describing the issue.

Node SDK Integration

For JavaScript environments, use the openai npm package. Initialize the client with our base URL and your API key. This allows you to integrate the uncensored model into your Node.js applications seamlessly. The model ID is still uncensored.

The example below shows a basic completion request. It sends a message and logs the response text. You can handle errors by checking the status code. A 429 indicates you have hit the rate limit of 300 requests per minute. A 402 means your balance is insufficient.

import OpenAI from "openai";

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

This code works with the latest SDK versions. Ensure you are using a version that supports the base_url configuration. Our API conforms to the OpenAI chat-completions specification, so most existing code should work with minimal changes.

Enable Streaming

Streaming is supported via Server-Sent Events (SSE). Enable it by setting stream: true in your request. The API sends chunks of tokens as they are generated. Token usage statistics are included in the final chunk. This is useful for real-time applications where you want to display output incrementally.

Below is a streaming example. It iterates over the chunks and prints the content. Note that the final chunk contains the usage data. You can parse this to track your token consumption for billing purposes.

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)

Streaming does not affect pricing. You are charged per 1M tokens for input and output, regardless of streaming. Errors during streaming are returned as SSE events with an error type. Handle these gracefully in your client code.

Limits, Errors, and Context

Our API has specific limits to ensure stability. You can make 300 requests per minute per key. Up to 8 requests can be active simultaneously. The maximum request body size is 8 MB. If you exceed these limits, you will receive a 429 Too Many Requests error. Increase your client's retry delay or reduce concurrency.

Common errors include 401 (invalid key), 402 (insufficient credit), and 400 (bad request). Context window is 100k tokens total. There is no separate output cap. We do not offer fine-tuning or model routing. If you need multiple models, you must manage that logic yourself. Our credit never expires, and errors/refusals are free. For refunds on mistakes like double charges, use the Support page.

Technical reference

If your tool speaks the OpenAI API, these are the details that matter.

SpecValue
ProtocolOpenAI Chat Completions schema; official openai SDKs work unchanged
API keyBearer token in the Authorization header
Model IDuncensored
MethodsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.grokapi.cc/v1
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Structured outputJSON object mode via response_format json_object
Max context100,000 tokens, input and output combined
StreamingYes — server-sent events; the last chunk carries token usage
Sampling parameterstemperature, top_p, stop, seed and the two penalties are passed through
Rate limit300/min per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Request size8 MB request body
Parallel requests8 requests at the same time per key
Subscriptionno monthly fee; paid credit does not expire
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Billingprepaid credit, charged by real token usage; errors and refusals are free
Price$0.15 per 1M input tokens · $0.50 per 1M output tokens
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
Accountsign in with Google or with e-mail + password
Contentuncensored for adults; the only hard rule: no sexual content involving minors
Keysone key per account, regenerate any time (the old one stops working)

HTTP errors

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

StatusTypeReason
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_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly

Questions and answers

What is the uncensored model ID?

The model ID is "uncensored". It is an open-weight model running on our servers, tuned to answer without content refusals for lawful adult use. It is not GPT, Claude, Gemini, Grok, DeepSeek, Qwen, Llama or any other vendor's model.

How do I top up my credit?

We accept only crypto: USDT (TRC20) or USDC (Base). You can top up any whole amount from $20 to $500. Credits are charged by real token usage, and errors/refusals are free. Credit never expires.

What are the rate limits?

You are limited to 300 requests per minute per key and 8 simultaneous active requests per key. The maximum request body size is 8 MB. If you exceed these, you will receive a 429 error.

Your key is one form away

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

Start with trial credit

Email and password, key on screen right away.