Uncensored Image API Quickstart
Integrate our uncensored text API into your image and media pipelines with this quickstart guide. Use the standard OpenAI-compatible endpoints to power prompt engineering, script generation, and metadata extraction.
Base URL and Authentication
Our API uses the standard OpenAI-compatible endpoint structure. To begin, visit the Get API key page and sign in using Continue with Google or an email and password. Your API key is displayed immediately; no phone number is required. Store this key securely, as you will need it for all requests. The base URL for all API calls is https://api.uncensoredimage.com/v1. You can use the official OpenAI SDKs or any OpenAI-compatible client by configuring the base_url and providing your API key. Our service supports one active key per account; generating a new key replaces the previous one.
Sending a Completion Request
Send a text-in, text-out request to the POST /v1/chat/completions endpoint. The model ID is uncensored. This model is an open-weight LLM tuned to answer without content refusals for lawful adult use, making it ideal for raw prompt generation or script writing. You can control behavior using parameters like temperature, top_p, and stop. The model has a context window of 100,000 tokens, allowing for substantial input and output within a single request.
Python SDK Integration
For Python developers, initialize the client with your base URL and API key. This approach ensures compatibility with existing OpenAI SDK workflows. The client handles authentication and request formatting automatically. You can send messages as a list of dictionaries, specifying the role (system, user, or assistant). This is particularly useful for uncensored image workflows where you need to refine prompts or extract metadata from text descriptions before passing them to vision models.
Node SDK Integration
Node.js developers can use the standard OpenAI npm package. Set the baseURL to our API endpoint and provide your API key. This allows you to integrate uncensored text generation directly into your media processing scripts. You can handle responses synchronously or asynchronously. This method is effective for post-processing steps, such as generating captions or scripts for video content, ensuring the text layer is fully under your control without external content filters interfering with creative output.
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream, allowing you to receive tokens as they are generated. This reduces perceived latency for long-form content generation. The final chunk of the stream contains the complete token usage statistics, including input and output token counts. Streaming is supported for all standard parameters, including function calling and JSON mode, ensuring real-time feedback for interactive media pipelines.
Rate Limits and Errors
Each API key is limited to 300 requests per minute and 8 concurrent requests. The maximum request body size is 8 MB. If you send an invalid key, you will receive a 401 error. If your prepaid credit is exhausted, you will receive a 402 error, and no further requests will be processed until you top up. If you exceed the rate limit, you will receive a 429 error. Errors and refusals are free, so you only pay for successful token usage. Credit is topped up via crypto (USDT TRC20 or USDC Base) and never expires.
cURL
curl https://api.uncensoredimage.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.uncensoredimage.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.uncensoredimage.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)Questions and answers
What is the context window and max output size?
The model supports a 100,000 token context window, combining prompt and completion. There is no separate output cap. If you do not specify a max_tokens parameter, the response can run to the end of the window.
Does the API generate images or video?
No. This is a text-only chat-completions API. It is designed to power the text layer of your media pipeline, such as prompt engineering for uncensored image generation or script writing for video. It does not include image, audio, or video generation capabilities.
How do I top up my credit?
Top-ups are accepted via crypto only: USDT (TRC20) or USDC (Base). You can top up any whole amount between $20 and $500. Credits do not expire, and errors/refusals are free. No cards or bank transfers are accepted.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Get API keyUnder the hood: specs
Everything the endpoint can and cannot do, in one place — check it before you top up.
| Item | Value |
|---|---|
| API format | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Base URL | https://api.uncensoredimage.com/v1 |
| Model | uncensored |
| Authentication | Bearer token in the Authorization header |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Max context | 100,000 tokens (prompt + completion together) |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Sampling parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| JSON mode | JSON object mode via response_format json_object |
| Streaming | Supported (stream: true), usage included at the end |
| Request size | up to 8 MB per request |
| Rate limit | 300/min per key |
| Parallel requests | up to 8 in parallel per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| 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 |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Credit expiry | no monthly fee; paid credit does not expire |
| Key management | one active key per account; a new key replaces the old one |
| Sign-in | Google or e-mail and password |
| Content | uncensored for adults; the only hard rule: no sexual content involving minors |
Error reference
The type field is stable, the message is for humans. Errors cost nothing.
| Code | Type | Meaning |
|---|---|---|
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 | balance is empty — top up, requests resume at once |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | unknown endpoint |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | temporary overload, retry shortly |