Quickstart: Uncensored Image Text API
Connect your media pipeline to an uncensored text engine using standard OpenAI-compatible endpoints. Get your first response in seconds with our direct, filter-free LLM for prompt engineering and data extraction.
Base URL and Authentication
Access the API by pointing your client to https://api.uncensoredimage.top/v1. You need a valid API key to authenticate requests. Generate your key on the Get API key page using Google or email; the key is displayed immediately and replaces any previous key for that account.
Include the key in the Authorization header as a Bearer token. The API uses standard OpenAI SDKs, so you can often just change the base_url and api_key in your existing configuration. We do not require a phone number or credit card for the trial account.
First Request
Send a POST request to /v1/chat/completions with the model ID uncensored. This endpoint handles text input and returns text output, ideal for generating prompts or captions for your media pipelines.
The model responds without content refusals for lawful adult or controversial topics, ensuring your data extraction remains complete. Use the messages array to define the conversation history and the user prompt.
curl https://api.uncensoredimage.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
Use the official openai Python package to interact with the API. Initialize the client with your API key and the correct base URL. This approach allows you to leverage familiar methods like chat.completions.create while benefiting from our uncensored model's behavior.
Set the model to uncensored to ensure consistent performance across your pipeline. This integration works seamlessly with existing codebases that already use OpenAI-compatible endpoints.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredimage.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.js SDK Usage
For Node.js environments, install the openai package and configure the client similarly. Specify the baseURL and apiKey in the client options. This allows you to integrate the uncensored text API directly into your JavaScript or TypeScript applications.
The model ID remains uncensored. You can pass standard parameters like temperature and max_tokens to control the output. This method is suitable for server-side processing or edge functions.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredimage.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
Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream, delivering tokens as they are generated. This reduces perceived latency for your users or downstream processes.
The final chunk in the stream contains the total token usage for the request, allowing you to track costs accurately. Streaming is useful for real-time captioning or interactive prompt generation.
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)
Limits, Errors, and Context Window
The context window supports 100,000 tokens total (input + output). There is no separate output cap; if max_tokens is unset, the response can run to the end of the window. Rate limits are set at 300 requests per minute and 8 concurrent requests per key.
Handle standard HTTP errors: 401 for an invalid key, 402 if prepaid credit is exhausted, and 429 for rate limiting. Errors and refusals do not consume credit. The API does not offer an SLA or guarantees on uptime.
Capabilities and limits
Before you integrate, here is exactly what you get with a key.
| Feature | Support |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Model | uncensored |
| Base URL | https://api.uncensoredimage.top/v1 |
| API key | Bearer token in the Authorization header |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Structured output | response_format: {"type": "json_object"} |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Max context | 100,000 tokens (prompt + completion together) |
| Request size | 8 MB request body |
| Parallel requests | 8 requests at the same time per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Requests per minute | 300 requests per minute per key |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Credit expiry | no monthly fee; paid credit does not expire |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| 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 |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Account | sign in with Google or with e-mail + password |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
| Key management | one key per account, regenerate any time (the old one stops working) |
Error reference
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| 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 | balance is empty — top up, requests resume at once |
403 | content_blocked | refused by the content policy |
404 | not_found | only /v1/chat/completions and /v1/models exist |
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
How do I top up my credit?
Top up using crypto only: USDT (TRC20) or USDC (Base). Minimum top-up is $20, and amounts range up to $500. Credits never expire.
Is the model trained on my data?
No. Prompts sent to the API are not used for training. We value privacy and do not use your data to improve the model.
What content is blocked?
The model refuses requests containing sexual content involving minors. All other lawful adult, fictional, or controversial topics are allowed.