EN ▾
Get API key

Quickstart: Integrate Uncensored Text API

Integrate our uncensored text API into your content pipeline with this quickstart guide. Use the OpenAI-compatible endpoints to generate scripts, captions, or metadata without content refusals.

Base URL and Authentication

Start by authenticating your requests. Our API uses standard OpenAI-compatible headers. Replace your-api-key with the key generated from your account dashboard. The base URL is https://api.unfilteredaiimage.com/v1. This URL works with any standard OpenAI SDK or compatible client. You do not need to install custom libraries. The Authorization header requires the Bearer prefix. Keep your key secure. If you lose it, generate a new one from the dashboard. A new key replaces the old one immediately. You can have only one active key per account. This simplifies rotation and security management for your pipeline. The endpoint structure mirrors OpenAI's chat completions API, making migration easy if you are switching from another provider. The uncensored model responds to text inputs and returns text outputs. It does not generate images, audio, or video directly. Use this API for prompt engineering, script generation, or metadata extraction within your creative workflow.

First Request

Make your first API call to verify connectivity. Send a POST request to /v1/chat/completions. Include the model ID uncensored in the request body. Set the messages array with a user prompt. The model will return a text response. This confirms that your authentication is correct and the uncensored model is processing requests. Use this step to test your integration before scaling. The uncensored model handles diverse topics without standard content refusals. This makes it ideal for creative pipelines where specific styles or themes might be blocked by other models. Check the response object for the generated text. It is located in the choices array. Use this text as input for subsequent steps in your pipeline. You can adjust parameters like temperature to control creativity. The uncensored model is tuned for lawful adult use, ensuring broad applicability for content generation tasks.

Python SDK Integration

Use the official OpenAI Python SDK for easy integration. Install the package and configure the base URL to point to our endpoint. This allows you to use familiar methods like chat.completions.create. The uncensored LLM API works seamlessly with this setup. Pass your API key and the model ID. The SDK handles serialization and response parsing. This reduces boilerplate code in your pipeline. You can stream responses or get full text at once. The uncensored model supports standard parameters. Use this approach for script generation or metadata extraction. It integrates well with other Python libraries for image or video processing. The uncensored API provides a reliable text layer for your creative tools. You can process large batches of prompts efficiently. The uncensored model ensures that your content pipeline remains uninterrupted by unexpected refusals. This reliability is critical for automated workflows.

Node.js SDK Usage

Integrate with Node.js using the OpenAI SDK. Set the base URL to our endpoint. This enables you to use the same methods as with OpenAI. The uncensored text API works identically. Pass your API key and the model ID. The SDK handles the HTTP requests. You can use async/await for cleaner code. This is useful for server-side generation of scripts or captions. The uncensored model supports all standard parameters. Use this for real-time prompt generation in web applications. The uncensored API provides consistent text outputs. This ensures your pipeline functions correctly. The uncensored model is optimized for text completion. It does not generate images or video. Use it for the text layer of your AI pipeline. The uncensored API is compatible with common Node.js frameworks. This makes it easy to add uncensored text generation to your existing stack. The uncensored model handles diverse topics without refusals.

Streaming Responses

Enable streaming for real-time text generation. Set the stream parameter to true. The API returns a stream of tokens. This allows you to display text as it is generated. Streaming is useful for user-facing applications. It provides a better user experience. The uncensored model supports streaming via SSE. You can process each token as it arrives. This reduces perceived latency. The uncensored API provides accurate text outputs. Streaming does not affect the uncensored nature of the model. It works with all parameters. Use this for live prompt generation or script writing. The uncensored model ensures that the stream is continuous. It does not block mid-stream. This reliability is important for interactive pipelines. The uncensored API supports standard streaming headers. Use this to build responsive text features. The uncensored model handles diverse topics without interruptions.

Parameters, Limits, and Errors

Manage your requests effectively. The context window is 100,000 tokens. There is no separate output cap. If max_tokens is not specified, the response can run to the end of the window. Rate limits are 300 requests per minute per key. Concurrency is limited to 8 simultaneous requests. Request body size must not exceed 8 MB. Handle errors appropriately. A 401 status indicates an invalid key. A 402 status means no credit. A 429 status signals rate limiting. The uncensored API returns clear error messages. Use these to debug your pipeline. The uncensored model supports standard parameters. Use temperature to control creativity. The uncensored API is reliable for content pipelines. Monitor your token usage. The uncensored model processes requests efficiently. This ensures your pipeline runs smoothly. The uncensored API provides a robust text layer for your creative tools.

cURL

curl https://api.unfilteredaiimage.com/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.unfilteredaiimage.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.unfilteredaiimage.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)

API specifications

Use this table to decide whether the API fits your project before you buy credit.

ItemValue
ProtocolOpenAI Chat Completions schema; official openai SDKs work unchanged
Model IDuncensored
Base URLhttps://api.unfilteredaiimage.com/v1
EndpointsPOST /v1/chat/completions · GET /v1/models
AuthenticationBearer token in the Authorization header
JSON moderesponse_format: {"type": "json_object"}
Context window100,000 tokens, input and output combined
StreamingSupported (stream: true), usage included at the end
Sampling parameterstemperature, top_p, stop, seed and the two penalties are passed through
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Max body8 MB request body
Requests per minute300/min per key
Concurrencyup to 8 in parallel per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Trial credit$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Subscriptionno monthly fee; paid credit does not expire
Content policyadult content allowed; sexual content involving minors is refused
Accountsign in with Google or with e-mail + password
Key managementone 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.

StatusTypeReason
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_blockedsexual content involving minors — refused, not billed
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly

Questions and answers

What is the uncensored model's context window?

The context window is 100,000 tokens for both prompt and completion. There is no separate output cap. If you do not set max_tokens, the response can run to the end of the window. This allows for long scripts or detailed metadata extraction.

How do I handle rate limits?

You are limited to 300 requests per minute per key. You can have 8 simultaneous requests. If you exceed these limits, you will receive a 429 status code. Use exponential backoff to retry requests. This ensures your pipeline remains stable under load.

Does the uncensored API support function calling?

Yes, the uncensored LLM API supports function calling. You can define tools and use tool_choice to control the model's behavior. This is useful for structured data extraction or automated actions. The uncensored model handles tool calls reliably without refusals.

Your key is one form away

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

Get API key