EN ▾
Create key

Uncencored chat gpt API Quickstart

Start generating text with our uncensored API using standard OpenAI SDKs. This quickstart guides you through authentication, basic requests, and streaming without unexpected refusals.

https://api.gptchatuncencored.com/v1uncensored

Base URL and Authentication

The base URL for all requests is https://api.gptchatuncencored.com/v1. You authenticate by passing your API key in the Authorization header as a Bearer token. This works with any OpenAI-compatible client by simply updating the base URL and key configuration.

Your API key is generated immediately after signup via Google or email. Keep it secure, as it grants access to your prepaid credit. Errors and refusals do not consume credit, but valid requests do.

Sending Your First Request

Send a POST request to /v1/chat/completions with your message and the model ID uncensored. This endpoint returns text responses without content filters for lawful adult use.

  • Set the model field to uncensored.
  • Include your system prompt if needed to guide tone.
  • Expect a JSON response with the generated text.

The context window supports 100,000 tokens total, allowing long conversations.


curl https://api.gptchatuncencored.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Return the HTTP status code for a 404 error"}]
  }'

Verify your key works before scaling usage.

Python SDK Integration

Use the official OpenAI Python SDK to interact with our API. Install the package via pip and configure the base URL to point to our endpoint.

This approach lets you reuse existing code that targets OpenAI. Pass your API key and set the model to uncensored. The SDK handles JSON serialization and error parsing automatically.


from openai import OpenAI

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

Test with a simple prompt to confirm connectivity. Adjust temperature and top_p for creative variations.

Node SDK Integration

The Node.js SDK works identically to the Python version. Install the package and initialize the client with your base URL and key.

This enables seamless integration into Node applications. Set the model to uncensored for unrestricted responses. You can control parameters like stop sequences or seed for reproducibility.


import OpenAI from "openai";

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

Handle responses asynchronously. Monitor token usage to manage your prepaid credit efficiently.

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE) with incremental token updates.

Token usage is reported in the final chunk. This reduces perceived latency for long responses. Handle the stream in your client to display text as it generates.


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 works with all parameters, including function calling. Ensure your client handles partial chunks correctly.

Limits, Errors, and Context

You are limited to 300 requests per minute and 8 concurrent requests per key. The maximum request body size is 8 MB. A 401 error indicates an invalid or missing API key. A 402 error means your prepaid credit is exhausted. A 429 error signals you have exceeded the rate limit.

The context window is 100,000 tokens for prompt plus completion. Output is capped at 16,000 tokens per request, or 2,048 if you omit max_tokens. Errors and refusals do not charge credit. Credit never expires, but prepaid funds are non-refundable.

Frequently asked questions

Is this the official uncencored chat GPT service?

No, we are an independent provider. We host a dedicated uncensored model that is compatible with OpenAI SDKs but is not GPT, Claude, or any other vendor's model. Check vendor documentation for their specific details.

How do I debug missing citations in parallel chat API responses?

Ensure your client handles SSE chunks correctly for streaming. For parallel requests, verify that each request has a unique key or thread context. Our API returns full responses per request, so parallelism depends on your client's concurrency limits.

What happens if I exceed the context window?

Requests exceeding the 100,000-token limit will likely fail or truncate depending on your client's implementation. The API accepts up to 100,000 tokens total. Output is capped at 16,000 tokens per request. Manage your history to stay within limits.

Secure your API key

Register, retrieve your key, and update the base URL. That is all there is to it.

Create keyView documentation