EN ▾
Get API key

Uncensored text API for unrestricted content pipelines

Quickstart: Integrate Uncensored Text into Your Pipeline

Integrate our uncensored text engine into your AI image pipeline in minutes. This guide covers the essential steps to authenticate, send requests, and handle streaming responses using standard OpenAI-compatible libraries.

Base URL and Authentication

Our API mimics the OpenAI chat-completions interface, allowing you to swap in our service without rewriting your logic. Use https://api.unrestrictedaiimage.top/v1 as your base URL. Authentication relies on a Bearer token passed via the Authorization header. Generate your key instantly by signing up with Google or email; no phone number is required. The key is shown immediately upon creation and remains the sole credential for your account.

The /v1/chat/completions Endpoint

Send your prompt to the /v1/chat/completions endpoint. The model identifier is uncensored. This endpoint handles text input and returns text output. It does not generate images, audio, or video. Use this to refine prompts, extract metadata, or post-process captions for your visual models. Ensure your requests stay within the 8 MB body limit.

Python SDK Integration

Using the official openai Python library simplifies integration. Initialize the client with your key and the custom base URL. Pass the model name and your message array. This approach works seamlessly with existing pipelines that expect standard OpenAI responses. Remember, this library handles the HTTP transport; you still need to manage the logic for parsing the uncensored text output.

Node SDK Integration

For JavaScript environments, the openai Node.js package provides a straightforward interface. Set the baseURL to our endpoint and specify the uncensored model. This allows you to integrate uncensored text generation directly into your web apps or serverless functions. The SDK handles serialization and error parsing, letting you focus on the text logic that drives your image generation workflow.

Streaming Responses with SSE

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE), delivering tokens in real-time. This is crucial for long-form caption generation or script writing where latency matters. The final chunk of the stream includes the total token usage statistics. Streaming reduces perceived latency for your users, making the text generation feel instantaneous compared to waiting for the full response.

Rate Limits, Errors, and Context

Monitor your usage against the hard limits: 300 requests per minute and a concurrency limit of 8 simultaneous requests per key. If you exceed these, you will receive a 429 error. Authentication failures return 401, and insufficient credit returns 402. Errors are free; you are only charged for successful token consumption. The context window supports 100,000 tokens total, with no separate output cap per request.

cURL

curl https://api.unrestrictedaiimage.top/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.unrestrictedaiimage.top/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.unrestrictedaiimage.top/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)

Technical reference

Before you integrate, here is exactly what you get with a key.

FeatureSupport
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
API keyAuthorization: Bearer YOUR_KEY
Modeluncensored
MethodsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.unrestrictedaiimage.top/v1
Structured outputJSON object mode via response_format json_object
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Max context100,000 tokens, input and output combined
StreamingYes — server-sent events; the last chunk carries token usage
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Max body8 MB request body
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Parallel requests8 requests at the same time per key
Requests per minute300/min per key
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
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Subscriptionno monthly fee; paid credit does not expire
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Billingprepaid credit, charged by real token usage; errors and refusals are free
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
Contentuncensored for adults; the only hard rule: no sexual content involving minors
AccountGoogle or e-mail and password
Keysone active key per account; a new key replaces the old one

HTTP errors

The type field is stable, the message is for humans. Errors cost nothing.

HTTPTypeWhat to do
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditbalance is empty — top up, requests resume at once
403content_blockedrefused by the content policy
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busymodel busy — retry in a few seconds

Questions and answers

Does this API generate images or video?

No. This is a text-only API. It processes text input and returns text output. It is designed to handle the prompt engineering, captioning, and logic layers for your image or video pipelines, but it does not generate visual assets itself.

How is billing handled?

Credit is topped up using crypto (USDT on TRC20 or USDC on Base). You are charged per 1M input and output tokens. Errors and refusals are free. Credit never expires, and no monthly subscription is required.

What is the maximum output length?

There is no separate output cap. If you do not set max_tokens, the response can run to the end of the window. The total context window, including the prompt, is 100,000 tokens.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key