API Documentation
Start generating uncensored text immediately with our OpenAI-compatible API. You only pay for tokens used, ensuring zero waste on idle subscriptions or unused features.
Authentication and Base URL
Your API key authenticates every request. Pass it in the Authorization header as a bearer token. The base URL is https://api.aiohnefilter.com/v1. This endpoint works with any standard OpenAI SDK. You can switch providers by changing only the base URL and key. Your key is generated instantly after signup. Keep it secret. It grants full access to your prepaid credit.
Chat Completions Endpoint
Send messages to the uncensored model via POST /v1/chat/completions. Use the model ID uncensored. The API returns text responses directly. You control the context with a 100,000 token window. Input and output tokens count toward your balance. Errors do not consume credit. Use this endpoint for all text generation tasks.
curl https://api.aiohnefilter.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Set server timezone to UTC"}]
}'
Python SDK
Use the official openai Python package for easy integration. Set the base URL to our API endpoint. Initialize the client with your key. Call chat.completions.create with the uncensored model. This approach reduces boilerplate code. It handles JSON serialization automatically. Streaming is supported via the async client.
from openai import OpenAI
client = OpenAI(base_url="https://api.aiohnefilter.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 SDK
Install the openai npm package for JavaScript projects. Configure the base URL to point to our servers. Pass your API key during initialization. Request completions using the standard method. The Node SDK manages connection pooling efficiently. It works well for serverless functions. Handle errors gracefully to avoid unexpected costs.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.aiohnefilter.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);
Parameters and Streaming
Enable streaming by setting stream: true. You receive tokens as they generate. This reduces perceived latency for long outputs. You can adjust temperature and top_p for creativity. Use stop sequences to halt generation. JSON mode forces structured output. Set max_tokens to control output length. The last chunk contains total usage statistics.
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 and Errors
You get 300 requests per minute per key. Concurrency is limited to 8 simultaneous requests. Request bodies must stay under 8 MB. A 401 status means your key is invalid. A 402 status indicates insufficient credit. A 429 error signals rate limit exhaustion. Refused requests do not charge your balance. Errors are free. Retry with exponential backoff for 429s.
Common questions
What is the base URL for the API?
The base URL is HTTPS://api.aiohnefilter.com/v1. It is compatible with standard OpenAI SDKs. You only need to update the base URL and API key in your client configuration.
How does the token pricing work?
You pay $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors and refusals are free. Your prepaid credit never expires. You only pay for what you actually use.
Can I stream responses?
Yes, set the stream parameter to true. You receive tokens as they are generated. This reduces latency for long outputs. The final chunk includes total token usage statistics.
Generate your key
Register, copy the key, update base URL. That is all.