EN ▾

Uncensored text API for AI image pipelines

Get API key

Uncensored AI Image Prompt API Quickstart

Integrate our uncensored LLM into your visual pipelines with this quickstart guide for the chat-completions API. Use the provided code snippets to handle prompt generation, streaming outputs, and structured data extraction for image or video workflows.

Base URL and Authentication

Our API is an OpenAI-compatible text engine designed for prompt engineering and post-processing in visual workflows. The base URL is https://api.uncensoredaiimage.cc/v1. To authenticate, include your API key in the Authorization header as a Bearer token. You can obtain this key immediately on the 'Get API key' page by signing in with Google or using an email and password. No phone number is required, and the key is displayed right away for your integration.

First Request

Send a standard chat completion request to generate text prompts or scripts. The model ID is always uncensored. This endpoint supports the full range of parameters, including temperature and stop sequences, allowing you to fine-tune the output for your specific image generation needs. Ensure your request body follows the standard chat completion format.

curl https://api.uncensoredaiimage.cc/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

For Python developers, use the official OpenAI SDK or any compatible client. Set the base URL to our endpoint and provide your API key. This setup allows you to leverage familiar Python libraries to handle text generation, making it easy to integrate prompt generation into your existing data pipelines or image processing scripts.

from openai import OpenAI

client = OpenAI(base_url="https://api.uncensoredaiimage.cc/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 SDK Usage

Node.js developers can similarly use the standard SDK. Configure the client with our base URL and your credentials. This approach ensures that your text generation steps fit seamlessly into Node-based workflows, allowing you to programmatically construct prompts or process text outputs before passing them to image or video models.

import OpenAI from "openai";

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

For real-time feedback, enable streaming by setting stream: true. The API returns Server-Sent Events (SSE), delivering tokens as they are generated. The final chunk includes the full usage statistics. This is ideal for applications where latency matters, such as interactive prompt editors or dynamic script generation for video pipelines.

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)

Rate Limits, Errors, and Context

Your key allows 300 requests per minute and 8 concurrent requests. Request bodies must stay under 8 MB. If the key is invalid, you get a 401 error. If credit is low, errors and refusals are free, but specific billing errors may occur. The context window is 100,000 tokens total, and output can run to the end of the window. Content involving minors is always blocked.

Capabilities and limits

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

ItemValue
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
API keyBearer token in the Authorization header
EndpointsPOST /v1/chat/completions · GET /v1/models
Model IDuncensored
Base URLhttps://api.uncensoredaiimage.cc/v1
Max context100,000 tokens, input and output combined
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Structured outputresponse_format: {"type": "json_object"}
StreamingSupported (stream: true), usage included at the end
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Concurrency8 requests at the same time per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Max bodyup to 8 MB per request
Rate limit300 requests per minute per key
How you payprepaid credit, charged by real token usage; errors and refusals are free
Credit expirypaid credit never expires, no subscription
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
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Price$0.15 per 1M input tokens · $0.50 per 1M output tokens
Contentuncensored for adults; the only hard rule: no sexual content involving minors
AccountGoogle or e-mail and password
Keysone active key per account; a new key replaces the old one

HTTP errors

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_revokedno key, wrong key, or a key replaced by a newer one
402no_creditbalance is empty — top up, requests resume at once
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largerequest body larger than 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, we provide a text-only chat-completions API. It is designed to power the text layers of your visual pipelines, such as prompt generation or script writing, but does not produce images or video itself.

How do I top up my credit?

Top up using USDT (TRC20) or USDC (Base). Minimum amounts start at $20, with bonuses available for larger deposits. Credit never expires.

What is the context window size?

The total context window is 100,000 tokens for prompt and completion combined. There is no separate output cap per request, and if you do not set max_tokens, the response can run to the end of the window.

Your key is one form away

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