EN ▾
Get API key

Unfiltered Image Generator: Uncensored Text API Quickstart

Start using the uncensored text API in minutes with this quickstart guide. Connect your AI media pipeline to a reliable, refusal-free model for prompt engineering and content extraction.

Base URL and Authentication

To integrate our unfiltered image generator text engine into your workflow, you need two things: a valid API key and the correct base URL. Create an account via the Get API key page using Google or email. Your key appears immediately. The base URL is https://api.unfilteredimagegenerator.top/v1. This URL works with any OpenAI-compatible SDK. Replace the default placeholder with your actual key in the authorization header. This setup ensures your requests reach our uncensored large language model directly. You do not need to manage certificates or complex endpoints. Just set the environment variable or pass the key in the client configuration. This standardization means you can switch between different parts of your pipeline without rewriting your HTTP client logic. Our API is designed to plug into existing media pipelines that use text for control, captioning, or logic.

First Request

Send your first prompt to verify connectivity and response quality. Use the POST /v1/chat/completions endpoint. The model ID is uncensored. This model answers without content refusals for lawful adult, fictional, or controversial topics. It is not GPT, Claude, or any other vendor model. It is an open-weight model run on our servers. The request body must include the model, messages, and max_tokens fields. You can adjust temperature for creativity or top_p for diversity. If you omit max_tokens, the response can run to the end of the 100,000-token window. The total context window is 100,000 tokens. This includes both your input and the generated output. Use this endpoint for generating prompts, writing scripts, or extracting structured data from text. It is the engine behind your media pipeline’s logic layer.
curl https://api.unfilteredimagegenerator.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 SDK Integration

Integrate the API into your Python applications using the official OpenAI SDK. Install the package via pip. Configure the client with your API key and the custom base URL. This ensures all requests route to our uncensored model. The SDK handles serialization and streaming automatically. You can use standard methods like chat.completions.create(). Pass the model name uncensored in every call. This approach works seamlessly with existing codebases that already use OpenAI’s interface. You do not need a custom parser. The response structure matches the OpenAI standard. This includes tool usage, JSON mode, and streaming chunks. Use this integration for backend services that process text before or after image or video generation. It keeps your pipeline consistent and reduces dependency on multiple SDKs.
from openai import OpenAI

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

For JavaScript and TypeScript environments, use the OpenAI Node SDK. Set the apiKey and basePath properties in the client constructor. This directs traffic to our servers. The model ID remains uncensored. You can use the same chat.completions.create() method as in Python. This ensures parity between your frontend and backend text processing. Use this for real-time prompt generation, captioning, or metadata extraction. The SDK supports promises and async/await patterns. This fits naturally into modern web apps and serverless functions. You can handle errors gracefully by catching network issues or API errors. The response format is consistent across all clients. This allows you to build complex media pipelines that rely on text logic without worrying about protocol differences.
import OpenAI from "openai";

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

Enable streaming by setting the stream parameter to true. The API returns Server-Sent Events (SSE). Each chunk contains a partial response. The final chunk includes token usage statistics. This is useful for real-time applications where you want to display text as it is generated. Streaming reduces perceived latency for users. It also allows you to stop generation early if needed. The SDKs handle the parsing of SSE streams automatically. You do not need to write custom HTTP listeners for basic streaming. Use this feature for chat interfaces, live captioning, or progressive text rendering in media pipelines. The uncensored model supports streaming for all request types, including function calling and JSON mode. This ensures consistent behavior across all use cases.
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)

Rate Limits and Errors

Monitor your usage to avoid service interruptions. The limit is 300 requests per minute per key. You can have 8 requests active simultaneously. The request body must be under 8 MB. If you send an invalid key, you get a 401 error. If you run out of credit, you get a 402 error. If you exceed the rate limit, you get a 429 error. Errors do not consume credit. Refusals do not consume credit. This means you can test freely without worrying about costs. The prepaid credit never expires. You can top up anytime using crypto. Use these limits to design your pipeline’s retry logic. Implement exponential backoff for 429 errors. Handle 402 errors by prompting the user to add funds. This ensures your media pipeline stays operational without unexpected downtime.

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

Technical reference

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

SpecValue
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
MethodsPOST /v1/chat/completions · GET /v1/models
API keyBearer token in the Authorization header
Modeluncensored
Base URLhttps://api.unfilteredimagegenerator.top/v1
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
StreamingSupported (stream: true), usage included at the end
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
Context window100,000 tokens (prompt + completion together)
JSON moderesponse_format: {"type": "json_object"}
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Requests per minute300 requests per minute per key
Parallel requests8 requests at the same time per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Request sizeup to 8 MB per request
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Bonus credit+5% from $50, +10% from $100, +15% from $200
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Free trial$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
Credit expiryno monthly fee; paid credit does not expire
How you payprepaid credit, charged by real token usage; errors and refusals are free
Contentuncensored for adults; the only hard rule: no sexual content involving minors
Accountsign in with Google or with e-mail + password
Keysone key per account, regenerate any time (the old one stops working)

Error reference

Every error is JSON with a type you can switch on. You are never charged for an error.

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_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largerequest body larger than 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

What is the context window size?

The total context window is 100,000 tokens, including both input and output. There is no separate output cap per request, and if you do not set the max_tokens parameter, the response can run to the end of the window. This allows for long documents or complex prompt chains.

Does the API support function calling?

Yes, the API supports function calling (tools) and tool_choice. You can define tools in your request and the model will return structured JSON for tool usage. This is useful for extracting structured data or controlling downstream processes in your media pipeline.

How do I handle errors in my pipeline?

Errors return standard HTTP status codes. A 401 indicates an invalid API key. A 402 indicates insufficient credit. A 429 indicates you have exceeded the rate limit of 300 requests per minute. Errors and refusals do not consume your prepaid credit, so you can retry safely.

Your key is one form away

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

Get API key