EN ▾
Get API key

Uncensored text API for your content pipeline

https://api.unfilteredaiimage.top/v1

Uncensored API Quickstart: Chat Completions

This quickstart guides you through integrating the uncensored text API into your pipeline using standard OpenAI-compatible endpoints. Get your key, configure your client, and start processing prompts with no refusals for lawful adult content.

Base URL and Authentication

Start by pointing your OpenAI SDK or HTTP client to the base URL: https://api.unfilteredaiimage.top/v1. Authentication uses a standard Bearer token passed in the Authorization header. When you sign up via Google or email, your API key is displayed immediately. This key is your sole credential; generating a new one replaces the previous active key. Keep your key secure, as it grants full access to your prepaid credit.

Sending a Chat Completion Request

Send a POST request to /v1/chat/completions with the model ID "uncensored". The model responds to standard prompt structures without filtering lawful adult or controversial topics. Ensure you set the model field correctly. Below is a basic example using curl.

curl https://api.unfilteredaiimage.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."}]
  }'

The response includes the generated text in choices[0].message.content. If you exceed your context window (100,000 tokens total), the API returns an error. Errors and refusals do not consume your credit balance.

Python SDK Integration

Use the official OpenAI Python SDK to interact with the API. Configure the base URL and API key in your client initialization. This approach simplifies request handling and response parsing. The SDK handles streaming and JSON modes efficiently. Below is a Python example for a basic completion.

from openai import OpenAI

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

This method is ideal for scripts that process text in bulk or require immediate synchronous responses. Remember that the model ID must be "uncensored".

Node SDK Integration

For JavaScript or TypeScript projects, the OpenAI Node SDK works seamlessly. Set the apiKey and baseUrl properties in your client instance. This allows you to integrate the uncensored model directly into your web servers or Node.js applications. The following example demonstrates a simple text generation call.

import OpenAI from "openai";

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

Ensure your environment variables store the API key securely. The SDK manages the underlying HTTP requests, making it easy to switch between different clients if needed.

Streaming Responses with SSE

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE) containing incremental chunks of text. This reduces perceived latency for users waiting for long responses. Token usage details are included in the final chunk. Streaming is essential for real-time applications.

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)

Handle SSE events carefully to reconstruct the full response. Each chunk contains a portion of the generated text, allowing you to display progress as it happens.

Limits, Errors, and Context

Your API key is limited to 300 requests per minute and 8 concurrent requests. The maximum request body size is 8 MB. If authentication fails, you receive a 401 error. If your credit is exhausted, you receive a 402 error. Rate limits trigger a 429 error. All these errors are free and do not deduct from your prepaid balance. The context window is 100,000 tokens total, and output can run to the end of the window unless specified otherwise.

Under the hood: specs

One table with every limit, feature and price that applies to your key.

ParameterDetails
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
API keyBearer token in the Authorization header
Base URLhttps://api.unfilteredaiimage.top/v1
Modeluncensored
EndpointsPOST /v1/chat/completions · GET /v1/models
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
StreamingSupported (stream: true), usage included at the end
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Context window100,000 tokens, input and output combined
Structured outputresponse_format: {"type": "json_object"}
Parallel requestsup to 8 in parallel per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Requests per minute300 requests per minute per key
Request size8 MB request body
Top-upUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Credit expiryno monthly fee; paid credit does not expire
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Billingprepaid credit, charged by real token usage; errors and refusals are free
Trial credit$0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Content policyadult content allowed; sexual content involving minors is refused
Key managementone key per account, regenerate any time (the old one stops working)
AccountGoogle or e-mail and password

HTTP errors

Errors come back as JSON with a stable type; failed and refused requests are not billed.

CodeTypeMeaning
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditout of credit; add credit and retry
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

Does the model return markdown code blocks for JSON mode?

JSON mode uses the response_format parameter set to json_object. The model returns valid JSON, but it may still wrap the output in markdown code blocks depending on the model's training. Always parse the response robustly.

Are errors free?

Yes. Errors such as invalid keys (401), no credit (402), and rate limits (429) do not consume your prepaid credit. Refusals for content (e.g., minor sexual content) are also free.

How is the API key managed?

The key is shown immediately upon signup. You can generate a new key at any time, which replaces the previous active key. Only one key is active per account at a time.

Your key is one form away

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