First request in five minutes
Get started with the Apertus uncensored LLM API in minutes. This quickstart guide covers authentication, basic requests, and streaming using the OpenAI-compatible interface.
Base URL & Auth
Access the API using the dedicated base URL https://api.apertus.top/v1. The service is OpenAI-compatible, meaning you can use standard SDKs by updating the base_url and providing your API key. Sign up on the Get API key page using Google or an email address. Your key is displayed immediately upon creation. Each account holds one active key; generating a new one replaces the previous key. There are no monthly subscriptions or key expiration dates. Prepaid credit never expires, and unused funds remain available for future requests. Errors and refusals do not consume your credit.
First Request
Send a simple text completion request to test connectivity and billing. Use the model ID uncensored to access the single open-weight model hosted on our servers. This model is tuned to answer without content refusals for lawful adult use. The base URL is https://api.apertus.top/v1. Pricing is transparent: $0.15 per 1M input tokens and $0.50 per 1M output tokens. You only pay for what you use.
curl https://api.apertus.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."}]
}'
The response returns the generated text. If your credit is insufficient, you will receive a billing error. Errors during processing do not charge your account. You can top up by crypto (USDT on TRC20, USDC on Base) via the dashboard.
Python SDK Integration
Use the official OpenAI Python SDK or any compatible client. Set the base_url to https://api.apertus.top/v1 and provide your API key. This allows you to leverage existing codebases designed for OpenAI. The endpoint /v1/chat/completions handles all text generation. The model ID is uncensored. Parameters like temperature, top_p, and stop are supported. Streaming responses include token usage details in the final chunk. Function calling and JSON mode are also available for structured outputs.
from openai import OpenAI
client = OpenAI(base_url="https://api.apertus.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 SDK Integration
Initialize the client with the Apertus base URL. The OpenAI class accepts the standard configuration parameters. Pass your API key and set the base URL to https://api.apertus.top/v1. This ensures compatibility with existing Node.js applications. The uncensored model ID is required for all requests. You can control output length using max_tokens. If it is not specified, the response can run to the end of the 100,000-token window.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.apertus.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 Responses
Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial text. The final chunk includes the complete token usage statistics for the request. This allows you to display results in real-time while tracking costs. Streaming works with all parameters, including function calling. Ensure your client handles SSE events correctly. The context window supports up to 100,000 tokens for prompt and completion combined.
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)
Limits, Errors & Context
The API enforces a limit of 300 requests per minute per key and allows 8 concurrent requests. The maximum request body size is 8 MB. If the authentication key is invalid, you receive a 401 error. If your prepaid credit is exhausted, you receive a 402 error indicating insufficient funds. Rate limiting is applied based on the per-minute quota. The context window is 100,000 tokens total. There is no separate output cap. Requests exceeding the window are handled by the model's standard behavior. No SLA percentages are guaranteed. Privacy is maintained; prompts are not used for training.
Capabilities and limits
A quick checklist for developers: format, limits, features, billing.
| Parameter | Details |
|---|---|
| Protocol | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.apertus.top/v1 |
| Model | uncensored |
| Authentication | Authorization: Bearer YOUR_KEY |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| SSE streaming | Supported (stream: true), usage included at the end |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Sampling parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| JSON mode | JSON object mode via response_format json_object |
| Max context | 100,000 tokens, input and output combined |
| Rate limit | 300/min per key |
| Parallel requests | 8 requests at the same time per key |
| 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% on $50+, +10% on $100+, +15% on $200+ |
| Free trial | $0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Credit expiry | paid credit never expires, no subscription |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Account | sign in with Google or with e-mail + password |
| Content | adult content allowed; sexual content involving minors is refused |
| Key management | one active key per account; a new key replaces the old one |
Error reference
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | sexual content involving minors — refused, not billed |
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 | model busy — retry in a few seconds |
Questions and answers
Does my API key expire?
No, your API key does not expire. There are no monthly subscriptions or recurring fees associated with your account. You can use your key indefinitely until you choose to revoke it.
What happens if I hit the rate limit?
The API limits you to 300 requests per minute per key. If you exceed this, subsequent requests may be delayed or rejected. You can also make 8 concurrent requests at a time. Monitor your usage to stay within these bounds.
Is the output truncated if it reaches the end of the 100,000-token window?
The model can generate output up to the end of the 100,000-token window. If the generated text reaches the end of the window, the response is truncated. You can adjust the max_tokens parameter to control the output length within the window.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.