de ▾
Try with trial credit

API Documentation: uncensored text model

Start generating uncensored text immediately with our OpenAI-compatible API. Authenticate with a key, send requests to the base URL, and receive raw tokens without content refusals.

Authentication: API Key & Base URL

Authenticate your requests using the API key generated during signup. Our service uses standard bearer token authentication, so you simply attach your key to the Authorization header of every HTTP request. This ensures your usage is tracked accurately against your prepaid credit balance.

The base URL for all endpoints is https://api.unfilteredaitextgenerator.com/v1. You can use any standard OpenAI SDK or HTTP client by pointing it to this URL and providing your key. This setup works seamlessly with existing tools, allowing you to switch from other providers with minimal code changes.

POST /v1/chat/completions: Request format

Send text requests to the /v1/chat-completions endpoint using the standard JSON format. You must include the model field set to uncensored, along with your messages and optional parameters like temperature or max_tokens. The API expects a structured conversation history, allowing you to maintain context across multiple turns.

  • model: Must be uncensored.
  • messages: Array of role/content objects.
  • max_tokens: Optional; defaults to 2,048 if omitted.

Ensure your request body stays under 8 MB to avoid rejection.

Response format: Streaming SSE & JSON mode

Receive responses as Server-Sent Events (SSE) when streaming is enabled, or as a single JSON object if streaming is disabled. Streaming allows you to display tokens as they are generated, reducing perceived latency for long outputs. You can force structured output by setting response_format to {"type": "json_object"}, which is ideal for programmatic integration.

The final chunk of a streaming response includes the complete token usage statistics, allowing you to track costs in real-time. Errors are returned as standard HTTP status codes with a JSON error object containing a code and message.

Model parameters: temperature, top_p, and seed

Control the randomness and reproducibility of your outputs using standard LLM parameters. Set temperature between 0 and 2 to adjust creativity, with lower values yielding more deterministic results. Use top_p for nucleus sampling, typically set between 0.1 and 1.0, to control the diversity of token selection.

The seed parameter allows you to reproduce identical outputs for testing and debugging. These parameters apply to the uncensored model running on our servers, ensuring consistent behavior across requests. Adjust these values to fine-tune the tone and precision of the generated text.

Function calling (tools) support

Enable tool usage by passing a tools array in your request body. The API supports standard OpenAI-style function definitions, allowing you to define custom schemas for structured data extraction or action execution. Use tool_choice to specify whether the model should automatically choose a tool, force a specific one, or disable tool usage entirely.

This feature is particularly useful for building agents or automating workflows with uncensored logic. Ensure your tool definitions adhere to the JSON schema format, and the API will handle the parsing and response formatting automatically.

Rate limits and constraints

Each API key is limited to 300 requests per minute and 8 concurrent requests. The maximum request body size is 8 MB, and the context window supports up to 100,000 tokens for prompt and completion combined. Output is capped at 16,000 tokens per request, or 2,048 if max_tokens is not specified.

Common errors include 401 for invalid keys, 402 for insufficient credit, and 429 for rate limit exceeded. These limits ensure fair usage across all users. Monitor your usage via the dashboard to avoid interruptions.

cURL

curl https://api.unfilteredaitextgenerator.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "List python imports for flask"}]
  }'

Python

from openai import OpenAI

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

import OpenAI from "openai";

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

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)

Common questions

How do I start using the uncensored AI text generator API?

Sign up via Google or email to receive an API key immediately. Use the base URL <code>https://api.unfilteredaitextgenerator.com/v1</code> and your key in the <code>Authorization</code> header. Send a POST request to <code>/v1/chat-completions</code> with the model set to <code>uncensored</code>.

What are the token usage and billing details?

You pay <code>$0.15</code> per 1M input tokens and <code>$0.50</code> per 1M output tokens. Credit is charged based on actual usage, and errors are free. Top up with crypto (USDT on TRC20 or USDC on Base) from <code>$20</code> to <code>$500</code>.

What is the context window limit?

The model supports a context window of <code>100,000</code> tokens, including both prompt and completion. The maximum output per request is <code>16,000</code> tokens, or <code>2,048</code> if <code>max_tokens</code> is not set.

Get your API key now

Sign up, retrieve your key, update your base URL. Simple setup.