EN ▾
Get API key

Quickstart for Unrestricted GPT users

Swap the base URL and API key to route your existing OpenAI SDK calls through our uncensored LLM API without changing your codebase. This guide covers the six critical steps to get your backend sending and receiving text tokens immediately.

Install Your SDK

Start by installing the official client library for your language. We rely on the standard openai package, ensuring that any code written for GPT-4 or GPT-3.5 works identically with our uncensored model. No custom drivers or extra dependencies are required.

  • Python: pip install openai
  • Node.js: npm install openai

Verify the installation by importing the library. You are now ready to configure the connection parameters for our dedicated endpoint.

Configure Base URL

Direct your client to our API endpoint by setting the base_url environment variable or passing it directly to the client constructor. This ensures all requests hit https://api.unrestrictedgpt.cc/v1 instead of the default OpenAI servers.

Authenticate using your API key, which you obtained during signup. The system validates the key on every request. If the key is invalid, you will receive a 401 error immediately.

Make Your First Request

Send a standard chat completion request using the model ID uncensored. This is an open-weight model tuned for minimal refusals on lawful adult and controversial topics. It is not GPT, Claude, or any other vendor model.

Set the max_tokens to control output length. If unspecified, the response can run to the end of the window. The context window supports 100,000 tokens total.

Enable Streaming

Enable streaming by setting stream=True. The API returns a Server-Sent Events (SSE) stream of tokens. Token usage statistics are included only in the final chunk of the stream.

This approach is ideal for low-latency applications where you want to display text as it is generated. Ensure your client handles the stream correctly to avoid memory leaks.

Use Function Calling

Define tools in the tools parameter and set tool_choice to auto or a specific function name. The model supports standard function calling formats compatible with the OpenAI SDK.

This allows you to extract structured data or trigger backend actions directly from the LLM. Use temperature and top_p to control creativity versus precision in your tool outputs.

Enforce JSON Mode

Set response_format to {"type": "json_object"} to force the model to output valid JSON. This is critical for parsing responses in automated pipelines.

Combine this with function calling or custom prompt engineering to ensure consistent schema compliance. The model is optimized to adhere to strict JSON structures without unnecessary conversational filler.

cURL

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

Python

from openai import OpenAI

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

Node.js

import OpenAI from "openai";

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

Streaming

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)

Questions and answers

What happens if I exceed the rate limit?

You will receive a 429 error. The limit is 300 requests per minute per key and 8 concurrent requests. Wait before retrying or upgrade your credit balance to handle higher throughput.

Why do I get a 402 error?

Your prepaid credit balance is insufficient to cover the token usage for the request. Top up by crypto (USDT on TRC20, USDC on Base) to resume service. Errors and refusals do not consume credit.

Is this the same as OpenAI's GPT model?

No. We serve a dedicated uncensored open-weight model. It accepts the same API structure but uses a different underlying architecture and training data, resulting in fewer refusals for adult or controversial topics.

Your key is one form away

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

Capabilities and limits

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

ParameterDetails
ProtocolOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
Model IDuncensored
API keyBearer token in the Authorization header
EndpointsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.unrestrictedgpt.cc/v1
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
StreamingYes — server-sent events; the last chunk carries token usage
Structured outputresponse_format: {"type": "json_object"}
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Context window100,000 tokens (prompt + completion together)
Concurrency8 requests at the same time per key
Max bodyup to 8 MB per request
Requests per minute300 requests per minute per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Credit expiryno monthly fee; paid credit does not expire
Billingprepaid credit, charged by real token usage; errors and refusals are free
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Bonus credit+5% from $50, +10% from $100, +15% from $200
Free trial$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Content policyadult content allowed; sexual content involving minors is refused
Sign-inGoogle or e-mail and password
Key managementone key per account, regenerate any time (the old one stops working)

Error reference

The type field is stable, the message is for humans. Errors cost nothing.

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_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 · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Start with trial credit

Email and password, key on screen right away.