EN ▾
Get API key

First request in five minutes

Get started with the unfiltered chatgpt API in minutes using standard OpenAI-compatible libraries. This quickstart covers authentication, basic requests, streaming, and configuration for uncensored text generation.

Authentication & Base URL

Access the uncensored llm api by setting your base URL to https://api.unfilteredchatgpt.cc/v1. You obtain a single API key via the Get API key page using Google or email. Pass this key in the Authorization header as a Bearer token. The base URL works with official OpenAI SDKs and any compatible client by updating the base_url parameter. This unfiltered chatbot api does not require a subscription; credit is prepaid and never expires. Errors and refusals consume no tokens, making cost forecasting precise for high-volume unrestricted use cases.

Basic Chat Completion Request

Send a standard chat completion request to generate text. The API accepts the model parameter set to uncensored. This open-weight model runs on our servers and answers without content refusals for lawful adult use. You can configure parameters like temperature, top_p, and stop to control the output. The request body includes the system prompt and user messages. Below is a basic curl example demonstrating a simple text generation call.

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

If the key is invalid, you receive a 401 error. If credit is exhausted, you receive a 402 error. The 401 status indicates an authentication failure, distinct from payment issues.

Python SDK Integration

Use the official OpenAI Python library to interact with the API. Set the base_url to the unfiltered chatgpt endpoint and provide your API key. This approach allows you to leverage existing Python code with minimal changes. The SDK handles tokenization and request formatting automatically. You can retrieve the model list using the /v1/models endpoint to confirm connectivity.

from openai import OpenAI

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

Ensure you are using a recent version of the SDK that supports custom base URLs. This method is ideal for developers who prefer programmatic control over request parameters and response handling in Python environments.

Node SDK Integration

Integrate the API into Node.js applications using the OpenAI npm package. Configure the client with the correct base URL and API key. This setup enables you to make text generation requests directly from your server-side code. The Node SDK simplifies the process of sending messages and handling responses asynchronously.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.unfilteredchatgpt.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 integration is suitable for building chatbots, content generators, or data processing pipelines that require uncensored text output. The SDK manages the HTTP connection and response parsing efficiently.

Streaming Responses (SSE)

Enable streaming by setting the stream parameter to true. The API returns Server-Sent Events (SSE) containing partial token updates. This allows you to display text as it is generated, improving perceived latency for users. The final chunk includes the complete token usage statistics for billing. Streaming is supported via both curl and the official SDKs.

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)

Use streaming for long-form content generation or interactive applications where immediate feedback is valuable. The uncensored api handles stream interruptions gracefully, ensuring you receive all generated tokens if the connection remains stable.

Token Limits & Context Window

The context window is 100,000 tokens, combining prompt and completion. If max_tokens is not specified, the response can run to the end of the window. Rate limits allow 300 requests per minute and 8 concurrent requests per key. Request bodies are limited to 8 MB. A 429 error indicates you have exceeded the rate limit. Errors and refusals are free, so you only pay for successful token generation. Credit never expires, and the trial provides $0.50 valid for 7 days.

Under the hood: specs

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

SpecValue
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
Base URLhttps://api.unfilteredchatgpt.cc/v1
MethodsPOST /v1/chat/completions · GET /v1/models
Modeluncensored
API keyBearer token in the Authorization header
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
SSE streamingYes — server-sent events; the last chunk carries token usage
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
JSON moderesponse_format: {"type": "json_object"}
Max context100,000 tokens (prompt + completion together)
Request sizeup 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
Concurrency8 requests at the same time per key
Bonus credit+5% from $50, +10% from $100, +15% from $200
Price$0.15 per 1M input tokens · $0.50 per 1M output tokens
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Billingprepaid credit, charged by real token usage; errors and refusals are free
Credit expirypaid credit never expires, no subscription
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
Keysone active key per account; a new key replaces the old one
Contentuncensored for adults; the only hard rule: no sexual content involving minors
Accountsign in with Google or with e-mail + password

Error codes

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

HTTPTypeWhat to do
400bad_requestmalformed request or too long for the context window
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_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

What happens if I make a request that exceeds the context window?

The API will return an error indicating that the input length exceeds the 100,000 token limit. You will not be charged for tokens in the prompt that exceed the window. Adjust your prompt or system message to fit within the limit.

Is the uncensored model the same as GPT-4?

No. The model ID is uncensored. It is an open-weight model run on our own servers, tuned to answer without content refusals. It is not GPT, Claude, Gemini, or any other vendor's model.

How do I know if my request failed due to credit or authentication?

A 401 status indicates an invalid or missing API key. A 402 status indicates insufficient credit. A 429 status indicates you have exceeded the rate limit of 300 requests per minute. Use these codes to troubleshoot your integration.

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.