Quick Start Guide: 2-Minute Integration
Integrate our uncensored AI API in minutes with native OpenAI compatibility. Get direct answers, without unnecessary filters, for your creative or adult projects.
https://api.apiiasanscensure.com/v1uncensored
Basic Setup
To get started, create an account on the Get API key page. Simply enter your email and a password; no credit card is required for the trial. You immediately receive a unique API key. Your base URL is https://api.apiiasanscensure.com/v1. This URL works with official OpenAI SDKs and any compatible client. The model to use is specified by the ID uncensored. It is an open-weight model hosted on our servers, tuned to answer questions directly without the generic filters of large proprietary models.
Chat Completions Endpoint
The main endpoint is POST /v1/chat/completions. It accepts a standardized message format (role and content) and returns generated text. You can also list available models via GET /v1/models. Unlike other services, we do not offer embeddings, image generation, or video. Our AI API specializes in raw text processing. You can send requests up to 8 MB. The model supports a context of 100,000 tokens, which allows analyzing long documents or maintaining extended conversations without losing immediate context.
cURL Request Example
Here is how to make your first request directly from the terminal. Replace VOTRE_CLE_API with your actual API key. The request sends a simple user message and asks for a concise response. The server returns the generated text in JSON format. This method is ideal for quick scripts or connectivity tests before implementing more complex logic in your application.
curl https://api.apiiasanscensure.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."}]
}'
SSE Streaming Support
For a smooth user experience, enable streaming by adding "stream": true to your payload. The server then sends Server-Sent Events (SSE) as the text is generated. This allows displaying the response word by word without waiting for processing to finish. This feature is crucial for modern chat interfaces where the user expects an immediate response. You must parse these chunks to reconstruct the final text or display it progressively.
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)
Python SDK Example
Use the official openai package for seamless integration in Python. Configure the API key and custom base URL. The code below illustrates a simple request with the uncensored model. You can handle standard errors like rate limits or authentication errors. The SDK automatically handles JSON serialization and reading response streams. This is the recommended method for robust backend applications requiring deep integration with the Python ecosystem.
from openai import OpenAI
client = OpenAI(base_url="https://api.apiiasanscensure.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 SDK Example
The JavaScript SDK for Node.js works similarly. Install the openai package and configure the same URL and key parameters. This approach is perfect for modern backend servers or client-side applications using JavaScript environments. You can also enable streaming for real-time responses. Make sure to handle promises and asynchronous errors correctly to ensure your application's stability during traffic spikes or network timeouts.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.apiiasanscensure.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);Frequently Asked Questions
What happens if I run out of credit?
You will receive a 402 error indicating insufficient balance. You must top up your account to continue using the API. Prepaid credit never expires, so you can use your balance whenever you want without time pressure.
How does the rate limit work?
You are limited to 300 requests per minute per API key. If you exceed this threshold, the server returns a 429 error. You can regenerate your API key at any time from your dashboard, which invalidates the old key and lets you reset the rate limit counter to zero.
Are my data used for training?
No, your prompts are not used to train the model. Privacy is ensured by the fact that we do not store your data for base model improvement. Only one strict limit applies: sexual content involving minors is always blocked, even in a fictional context.
Your key is one step away
Create an account, copy the key, modify the base URL. That's it.
Under the hood: specs
Before you integrate, here is exactly what you get with a key.
| Parameter | Details |
|---|---|
| Protocol | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Model | uncensored |
| Base URL | https://api.apiiasanscensure.com/v1 |
| Authentication | Bearer token in the Authorization header |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Max context | 100,000 tokens (prompt + completion together) |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Structured output | JSON object mode via response_format json_object |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Concurrency | 8 requests at the same time per key |
| Requests per minute | 300/min per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Request size | up to 8 MB per request |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Subscription | no monthly fee; paid credit does not expire |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| 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 |
| 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 codes
The type field is stable, the message is for humans. Errors cost nothing.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
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 | 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 |