EN ▾
Get API key

Unfiltered Image Generator: API Documentation

This quickstart guides you through integrating our uncensored text API into your multimodal pipeline using standard OpenAI-compatible clients. You will generate prompts, scripts, and post-processing text for your image or video workflows in minutes.

Authentication and Base URL

Our API is fully compatible with the OpenAI SDK ecosystem. To begin, obtain your API key from the Get API key page after signing up with Google or an email. Use the base URL https://api.unfilteredimagegenerator.com/v1 and set your key in the OPENAI_API_KEY environment variable or pass it directly in your client configuration. This setup ensures that all requests are routed to our uncensored model, identified by the model ID uncensored.

First Request

Send your first prompt to generate text for your image generation pipeline. The API accepts standard chat completion parameters. Below is a basic cURL example demonstrating a simple text exchange. This confirms your authentication is working and the model is responding to your input.

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

The response will contain the generated text, which you can then pass as a prompt to your image generation tool. Remember that this API handles text only; it does not generate images, audio, or video.

Python SDK Integration

For Python developers, the official OpenAI SDK works seamlessly with our endpoint. Initialize the client with your API key and the correct base URL. This approach allows you to leverage existing Python libraries and tools designed for OpenAI-compatible services. Use this method to programmatically generate scripts, captions, or detailed prompts for your visual AI agents.

from openai import OpenAI

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

The model ID uncensored ensures that your text output is not filtered for adult or controversial topics, making it ideal for creative or niche use cases.

Node SDK Integration

Node.js developers can integrate the API using the openai npm package. Configure the client with the base URL and your API key. This enables you to build serverless functions or backend services that generate text for image generation workflows. The SDK handles pagination and error retries automatically.

import OpenAI from "openai";

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

Ensure you pass the model ID uncensored to access the uncensored model. This setup is ideal for dynamic prompt generation where context length and content freedom are critical.

Streaming Responses

For real-time applications, enable streaming by setting stream: true. The API returns Server-Sent Events (SSE), allowing you to process tokens as they are generated. This is useful for chat interfaces or live text generation in your pipeline. Token usage statistics are included in the final chunk of the stream.

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)

Streaming reduces perceived latency by delivering text incrementally. However, note that the total context window is 100,000 tokens, with no separate output cap.

Rate Limits and Errors

Each API key is limited to 300 requests per minute and 8 concurrent requests. If you exceed these limits, you will receive a 429 error. Authentication errors (401) indicate an invalid key, while 402 errors mean you have insufficient prepaid credit. Errors and refusals do not consume your credit balance. The maximum request body size is 8 MB. If you need more concurrent capacity, consider using multiple API keys, keeping in mind that each account is limited to one active key unless you replace it.

API facts in one table

The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.

FeatureSupport
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
Base URLhttps://api.unfilteredimagegenerator.com/v1
Model IDuncensored
AuthenticationAuthorization: Bearer YOUR_KEY
EndpointsPOST /v1/chat/completions · GET /v1/models
SSE streamingYes — server-sent events; the last chunk carries token usage
Max context100,000 tokens (prompt + completion together)
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Structured outputresponse_format: {"type": "json_object"}
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Request sizeup to 8 MB per request
Parallel requestsup to 8 in parallel per key
Rate limit300/min per key
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
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Credit expiryno monthly fee; paid credit does not expire
Contentuncensored for adults; the only hard rule: no sexual content involving minors
Sign-inGoogle or e-mail and password
Keysone active key per account; a new key replaces the old one

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_revokedcheck the Authorization header or use your current key
402no_creditout of credit; add credit and retry
403content_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly

Questions and answers

Is this API the same as the official OpenAI API?

No, this is an independent service using an open-weight uncensored model, not GPT-4 or GPT-3.5. However, it is fully compatible with the OpenAI SDKs, so you can use the same client code with our base URL.

What happens if I exceed my prepaid credit?

You will receive a 402 error for subsequent requests. Your prepaid credit never expires, so you can top up via crypto (USDT or USDC) at any time. Errors and refusals do not consume your balance.

Can I use this API for generating images directly?

No, this is a text-only chat-completions API. It generates the text prompts, scripts, or post-processing text that you can then use with image generation tools. It does not output images, audio, or video.

Your key is one form away

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