Quickstart: Integrate the Uncensored AI Image Text API
Get your text pipeline running in minutes with our OpenAI-compatible chat API. This guide covers the base URL, authentication, and the specific constraints for generating uncensored text for your media workflows.
Base URL and Authentication
Our API follows the standard OpenAI chat-completions structure. To begin, you need a valid API key from your dashboard. The base URL for all requests is https://api.uncensoredaiimage.top/v1. You pass your key in the Authorization header as a Bearer token. This setup allows you to use existing OpenAI SDKs with a simple configuration change. We do not offer alternative base URLs or regional endpoints. Ensure your key is active and has sufficient credit before making requests. If you receive a 401 error, verify your key or regenerate it from the dashboard. Remember that we do not use embeddings or other non-chat endpoints, so stick to the chat-completions path for all interactions.
First Request
Send a standard POST request to /v1/chat/completions. The model identifier is "uncensored". This model is tuned to answer without content refusals for lawful adult use. It accepts standard parameters like temperature and top_p. The response returns text content in the choices array. You can use this output directly for prompt generation, captioning, or metadata extraction. The API returns token usage in the response object for billing transparency. Errors are returned as standard HTTP codes with a JSON error object. Keep your requests concise to optimize cost and latency.
Python SDK Integration
Using the official OpenAI Python library is the fastest way to integrate. Set the base URL to our endpoint and provide your API key. The client will handle serialization and retries automatically. You can stream responses or get them synchronously. The model ID remains "uncensored". This approach works for both simple text generation and more complex function calling scenarios. Ensure you are using a recent version of the library to support all parameters. The library abstracts the HTTP details, letting you focus on the prompt logic and post-processing of the generated text.
Node SDK Integration
The Node.js OpenAI package works identically to the Python version. Initialize the client with the custom base URL and your API key. Pass the model "uncensored" in your chat completions call. This is useful for server-side scripts that prepare prompts for image or video generation tools. The SDK handles the request lifecycle efficiently. You can process the output in real-time or batch it for later use. Make sure to handle potential network errors gracefully. The text output can be piped directly into your media generation pipeline without additional parsing.
Streaming Responses
Enable streaming by setting stream to true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial text and token usage data. The final chunk includes the total token count for the request. This feature reduces perceived latency for long outputs. It is ideal for real-time captioning or progressive prompt generation. The stream ends normally when the model finishes. If an error occurs, the stream will terminate with an error event. Monitor the token usage in each chunk to stay within your budget and context limits.
Rate Limits and Constraints
Each API key is limited to 300 requests per minute. You can have up to 8 concurrent requests at any time. The maximum request body size is 8 MB. The context window is 100,000 tokens total, including both input and output. There is no separate output cap per request. If you do not specify max_tokens, the response can run to the end of the window. A 429 error indicates you have exceeded the rate limit. A 402 error means your prepaid credit is exhausted. Refunds are not issued for credit; errors and refusals do not consume tokens. Use these constraints to design your pipeline's retry logic and batching strategy.
cURL
curl https://api.uncensoredaiimage.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
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredaiimage.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
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredaiimage.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
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)API facts in one table
One table with every limit, feature and price that applies to your key.
| Feature | Support |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Model | uncensored |
| API key | Bearer token in the Authorization header |
| Base URL | https://api.uncensoredaiimage.top/v1 |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Context window | 100,000 tokens, input and output combined |
| Structured output | response_format: {"type": "json_object"} |
| Completion length | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Rate limit | 300 requests per minute per key |
| Request size | 8 MB request body |
| 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 |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| 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 |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Subscription | paid credit never expires, no subscription |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| Key management | one key per account, regenerate any time (the old one stops working) |
| Account | Google or e-mail and password |
| Content policy | 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 | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | out of credit; add credit and retry |
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 | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
What is the maximum output length?
There is no separate output cap per response. If you do not set the max_tokens parameter, the response can run to the end of the window. The total context window, including your input, is 100,000 tokens.
Does this API support image generation?
No, this is a text-only chat-completions API. We do not generate images, audio, or video. You can use this API to generate prompts, captions, or metadata for your image generation pipelines. For visual media, you would use a separate image generation API.
How do I pay for the API?
We accept prepaid credit via cryptocurrency (USDT on TRC20 or USDC on Base). Payments range from $20 to $500. There are no monthly subscriptions or credit card options. Credit never expires, and errors do not consume your balance.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.