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.
| Feature | Support |
|---|---|
| API format | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Base URL | https://api.unfilteredimagegenerator.com/v1 |
| Model ID | uncensored |
| Authentication | Authorization: Bearer YOUR_KEY |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Max context | 100,000 tokens (prompt + completion together) |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Structured output | response_format: {"type": "json_object"} |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Request size | up to 8 MB per request |
| Parallel requests | up to 8 in parallel per key |
| Rate limit | 300/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 |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| Credit expiry | no monthly fee; paid credit does not expire |
| Content | uncensored for adults; the only hard rule: no sexual content involving minors |
| Sign-in | Google or e-mail and password |
| Keys | one 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.
| HTTP | Type | What to do |
|---|---|---|
400 | bad_request | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | refused by the content policy |
404 | not_found | unknown endpoint |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | temporary 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.