Start coding with our API
Drop our uncensored model into your existing pipeline with a single configuration change. We handle the infrastructure so you can focus on building.
Install the OpenAI SDK
Start by installing the standard library in your project environment. This ensures compatibility with our openai compatible api endpoints without requiring custom wrappers. The official package handles serialization and retries automatically.
pip install openai
Configure your base_url and API key
Point your client directly to our infrastructure using the dedicated base URL. Authentication relies on a single key generated instantly after signup. This setup bypasses generic proxies and connects straight to our uncensored model.
base_url="https://api.pricingapiopenai.com/v1"
API_KEY="your-key-here"
Send your first chat completion
Make a standard request to generate text responses. The model accepts system prompts and user messages just like any other provider. You will receive a direct text output without hidden filters or refusals for lawful content.
curl https://api.pricingapiopenai.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Send me the monthly pricing for the high tier plan"}]
}'
Enable streaming for real-time responses
Activate streaming to receive tokens as they are generated. This reduces perceived latency for end-users and keeps the connection open until completion. The final chunk includes the total token usage for billing transparency.
from openai import OpenAI
client = OpenAI(base_url="https://api.pricingapiopenai.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)
Use function calling and JSON mode
Request structured data or tool definitions to integrate with your backend logic. Set the response format to ensure strict JSON output when needed. You can also define tools for dynamic agent behaviors.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.pricingapiopenai.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);
Monitor your token usage
Track consumption through the response metadata or your dashboard. Errors do not charge credits, and prepaid credit never expires. You can monitor real-time usage to stay within your budget limits.
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)Common questions
What is the openai API pricing structure for this service?
We charge $0.15 per 1M input tokens and $0.50 per 1M output tokens. Prepaid credits are charged by real usage, and errors are free. No subscription fees apply.
What happens if I hit a rate limit?
You will receive a 429 status code if you exceed 300 requests per minute or 8 concurrent requests. The request is rejected immediately without consuming credit.
Why do I get a 401 or 402 error?
A 401 error indicates an invalid or missing API key. A 402 error means your prepaid credit balance is insufficient to cover the request. Top up via crypto to resume service.
Get your key in minutes
Register, grab the key, update the base URL. Simple.