EN ▾

Uncensored Image Generator: Uncensored Text API Quickstart

Integrate an uncensored LLM into your image generation pipeline for precise prompt engineering and metadata extraction. This OpenAI-compatible API delivers text-only responses without content refusals, powering the logic behind your visual outputs.

Authentication

Access the API by obtaining a key from the Get API key page. Sign in with Google or create an account with an email and password; no phone number is required. Your key is displayed immediately upon creation. Use this key as a Bearer token in the Authorization header for all requests. The API serves a single uncensored model, so you do not need to specify a model name in the header, though the model ID is uncensored for reference.

Chat Completions

Send text prompts to generate refined instructions for your image generator. The endpoint accepts standard chat/completions payloads. Ensure you set the base URL to our specific host to route requests correctly. This text-only response can then be fed into your image pipeline to drive the visual output without intermediate refusals.

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

Each request supports a context window of 100,000 tokens, shared between input and output. If you do not specify max_tokens, the response can run to the end of the window. Set max_tokens explicitly if you want to cap the response length.

Python SDK

Use the official OpenAI Python SDK to interact with the API. Configure the client with our base URL and your API key. This allows you to leverage familiar methods like chat.completions.create while benefiting from the uncensored model's behavior. The client handles serialization and error parsing automatically.

from openai import OpenAI

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

Remember that this client connects to our single model, not GPT-4 or other vendor models. Adjust parameters like temperature and top_p to control creativity. The model does not refuse lawful adult content, making it suitable for diverse creative workflows.

Node SDK

Integrate with Node.js applications using the official OpenAI npm package. Point the client to our base URL and provide your API key. This setup enables you to generate text responses directly within your Node environment, perfect for server-side prompt refinement.

import OpenAI from "openai";

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

Handle responses as standard JSON objects. The API returns structured data that your Node scripts can parse and forward to image generation services. Ensure you manage asynchronous calls properly to avoid blocking your event loop during high-latency requests.

Streaming Responses

Enable real-time token delivery by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial text, allowing you to display progress or process tokens incrementally. The final chunk includes usage statistics, such as token counts, for billing transparency.

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 for long outputs. However, ensure your client handles partial JSON structures correctly if you are using JSON mode. The uncensored model maintains consistency across chunks, so you can rely on coherent text generation even in streaming mode.

Rate Limits and Errors

Monitor your usage to avoid interruptions. The API enforces a limit of 300 requests per minute per key and allows up to 8 concurrent requests. The maximum request body size is 8 MB. If you exceed these limits, you will receive a 429 error.

Authentication failures return a 401 error if the key is invalid. A 402 error indicates insufficient prepaid credit. Errors and refusals are free, so you only pay for successful token usage. Prepaid credit never expires, but the trial credit expires after 7 days. Manage your keys carefully; creating a new key replaces the old one.

What the API supports

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

FeatureSupport
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
MethodsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.uncensoredimagegenerator.com/v1
AuthenticationBearer token in the Authorization header
Model IDuncensored
StreamingSupported (stream: true), usage included at the end
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
JSON moderesponse_format: {"type": "json_object"}
Context window100,000 tokens (prompt + completion together)
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrency8 requests at the same time per key
Rate limit300/min per key
Max bodyup to 8 MB per request
Bonus credit+5% from $50, +10% from $100, +15% from $200
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Subscriptionpaid credit never expires, no subscription
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Free trial$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Sign-inGoogle or e-mail and password
Contentuncensored for adults; the only hard rule: no sexual content involving minors
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.

CodeTypeMeaning
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_blockedrefused by the content policy
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

Does this API generate images or video?

No. This is a text-only API. It generates text responses that you can use to write prompts for image or video generators. It does not produce visual media itself.

How do I top up my credit?

Tops up are done via cryptocurrency only. You can pay with USDT (TRC20) or USDC (Base) in whole amounts between $20 and $500. Credit is charged based on actual token usage, and errors are free.

Is the trial credit permanent?

No. New accounts receive $0.50 in trial credit, which is valid for 7 days. Claim this credit with one click on your API key page. After 7 days, the trial credit expires. Regular prepaid credit does not expire.

Uncensored text API for image pipelines

per 1M input tokens
$0.15
Output tokens / 1M
$0.50
token context
100,000
trial credit
$0.50
requests per minute
300

Your key is one form away

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

Get API key
Get API key