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.
| Parameter | Details |
|---|---|
| Protocol | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Model ID | uncensored |
| API key | Bearer token in the Authorization header |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.unrestrictedgpt.cc/v1 |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Structured output | response_format: {"type": "json_object"} |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Context window | 100,000 tokens (prompt + completion together) |
| Concurrency | 8 requests at the same time per key |
| Max body | up to 8 MB per request |
| Requests per minute | 300 requests per minute per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Credit expiry | no monthly fee; paid credit does not expire |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Token prices | input $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 policy | adult content allowed; sexual content involving minors is refused |
| Sign-in | Google or e-mail and password |
| Key management | one 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.
| Code | Type | Meaning |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | balance is empty — top up, requests resume at once |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | temporary overload, retry shortly |