hu ▾
AI Text GeneratorUncensored API, open wallet

Uncensored API Documentation

Start generating uncensored text with our OpenAI-compatible API. This quickstart guide covers authentication, basic requests, and streaming for immediate integration.

Base URL and Authentication

Your API key grants access to the uncensored model endpoint. Use the standard OpenAI-compatible base URL to route your requests. The key identifies your account and tracks token usage against your prepaid credit.

Authentication

  • Header: Authorization: Bearer YOUR_API_KEY
  • No additional headers required for basic text generation.

Generate your key via the dashboard. It works immediately with any OpenAI SDK or HTTP client.

Chat Completions Endpoint

Send text prompts to generate responses using the uncensored model. This endpoint handles standard chat interactions without content filters for lawful adult content.

Configure the model ID as uncensored to ensure you receive the unfiltered output. The API returns structured JSON responses containing the generated text.

Example Request

Use this structure to initiate your first conversation.

curl https://api.aitextgeneratornorestrictions.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Set up the API endpoint for the new server."}]
  }'

Python SDK Integration

Integrate quickly using the official Python library. Set the base URL to our endpoint and provide your API key. This method handles serialization and error parsing automatically.

Configure the model to uncensored for consistent results. The client manages connection pooling and retries efficiently.

from openai import OpenAI

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

Node.js SDK Integration

Deploy in JavaScript environments by pointing the SDK to our base URL. This approach works well for server-side rendering or backend services.

Ensure the model ID is set to uncensored to bypass standard filters. The SDK handles stream handling and token counting internally.

import OpenAI from "openai";

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

Streaming Responses and Token Usage

Receive text incrementally using Server-Sent Events (SSE). This reduces perceived latency for long outputs. Token usage details appear in the final chunk of the stream.

Parse the stream to update your UI in real time. The API ensures accurate token counting 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)

Limits, Errors, and Context

The context window supports up to 100,000 tokens for prompt and completion combined. Max output is 16,000 tokens per request. Errors like 401 indicate an invalid key, while 402 means insufficient credit. Rate limits cap at 300 requests per minute.

Common questions

What is the AI text generator no restrictions context window size?

The context window supports up to 100,000 tokens for the combined prompt and completion. This allows for substantial input data while maintaining response quality.

How do I handle API errors during integration?

A 401 status indicates an invalid or expired API key. A 402 status signals insufficient prepaid credit. A 429 error means you have exceeded the 300 requests per minute limit.

Is this an openai compatible API for uncensored content?

Yes, it is fully compatible with OpenAI SDKs. The <code>uncensored</code> model delivers unfiltered text generation for lawful adult content without standard content refusals.

Generate your API key

Register, grab the key, update your base URL. Simple setup.

Get your keyView documentation