EN ▾
Get API key
Uncensored, OpenAI-compatible API for developers https://api.apertus.cc/v1

Quickstart for Apertus users

Integrate the Apertus uncensored API using standard OpenAI-compatible clients. Configure your base URL and API key to send text requests to our single open-weight model.

Prerequisites

To use the apertus API, you need an account and an API key. Sign up via Google or email on the Get API key page. You receive a key immediately; no phone number is required. If you want to test first, new users get $0.50 in trial credit, one per person, valid for 7 days. Claim this credit with one click on your API key page. No card is needed for the trial. For production, top up with crypto (USDT on TRC20 or USDC on Base). The credit never expires, and errors do not consume balance. You get one active key per account; generating a new one replaces the old. Keep your key secure and pass it in the Authorization header as a bearer token. The API is strictly text-based, serving one uncensored model optimized for answering without content refusals.

Base URL and Authentication

Direct all requests to https://api.apertus.cc/v1. This base URL works with the official OpenAI SDKs and any compatible client by simply changing the endpoint. Include your API key in the header: Authorization: Bearer YOUR_API_KEY. The only supported endpoint is POST /v1/chat/completions. A GET /v1/models endpoint is also available to verify connectivity. The model ID to use is uncensored. This is an open-weight model running on our servers, distinct from GPT, Claude, or other vendors. It handles text input and returns text output. Do not expect embeddings, images, or audio. The API is designed for developers who want a straightforward integration without model routing complexity.

First Request

Send a basic completion request to verify your setup. Use the curl command to POST to the chat completions endpoint. Set the model to uncensored and include a simple message. This confirms your API key works and the base URL is correct. You can adjust parameters like temperature or max_tokens as needed. The response will contain the model's text output. If you receive a 401 error, check your key. A 402 error indicates insufficient credit. A 429 error means you have hit the rate limit. This simple request demonstrates the raw API access without any middleware. It is the fastest way to validate your integration before building more complex logic.

Python Integration

Use the official openai Python SDK to interact with the API. Initialize the client with the base URL https://api.apertus.cc/v1 and your API key. Set the model to uncensored. Send messages as a list of dictionaries. The SDK handles serialization and error parsing automatically. This approach is ideal for backend services or data processing scripts. You can stream responses or get full blocks. The client code is identical to what you would use for OpenAI, just with a different base URL. This reduces friction when switching from other providers. Ensure you have the latest SDK version for best compatibility. The integration is minimal, requiring only configuration changes to your existing client setup.

Node.js Integration

For JavaScript or TypeScript environments, use the openai npm package. Configure the client with the same base URL and key as in Python. Call chat.completions.create() with the uncensored model. Pass your messages in the standard format. This works well for serverless functions or Node.js backends. The SDK manages the HTTP requests and response parsing. You can handle errors gracefully by checking the response status. The code remains portable across different OpenAI-compatible services. This makes it easy to swap providers if needed. The Node.js integration supports both synchronous and asynchronous patterns. Use it for building APIs, bots, or automated workflows that require uncensored text generation.

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns chunks of text as they are generated. This improves perceived latency for long responses. Each chunk contains part of the completion. The final chunk includes token usage statistics. Streaming is supported via Server-Sent Events (SSE). Use the SDK's streaming helpers to process chunks efficiently. This is useful for chat interfaces or real-time applications. Note that streaming consumes the same tokens as non-streaming. Errors can occur mid-stream, so handle interruptions. The uncensored model supports streaming by default. This feature allows you to display text incrementally. It is a standard feature in modern LLM APIs. Ensure your client code handles partial responses correctly.

Limits, Errors, and Context

The context window is 100,000 tokens total, including prompt and completion. There is no separate output cap, and if max_tokens is unset, the response can run to the end of the window. Rate limits are 300 requests per minute and 8 concurrent requests per key. Request bodies must be under 8 MB. Common errors include 401 for invalid keys, 402 for no credit, and 429 for rate limits. The model refuses sexual content involving minors. It does not refuse other lawful adult, fictional, or controversial topics. Pricing is transparent: $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors are free. Credit is prepaid and never expires. Use these limits to plan your application's scale. The API is designed for high-volume, cost-effective text generation.

cURL

curl https://api.apertus.cc/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.apertus.cc/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.apertus.cc/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)

Technical reference

Everything the endpoint can and cannot do, in one place — check it before you top up.

ItemValue
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
EndpointsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.apertus.cc/v1
API keyAuthorization: Bearer YOUR_KEY
Modeluncensored
Context window100,000 tokens, input and output combined
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
StreamingYes — server-sent events; the last chunk carries token usage
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
JSON modeJSON object mode via response_format json_object
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Requests per minute300/min per key
Max body8 MB request body
Parallel requestsup to 8 in parallel per key
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Billingprepaid 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
Top-upUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Credit expiryno monthly fee; paid credit does not expire
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Key managementone active key per account; a new key replaces the old one
Sign-inGoogle or e-mail and password
Contentadult content allowed; sexual content involving minors is refused

When a request fails

Errors come back as JSON with a stable type; failed and refused requests are not billed.

CodeTypeMeaning
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditout of credit; add credit and retry
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly

Questions and answers

Is this the official GPT or Claude API?

No, this is an independent service running an open-weight uncensored model. It is compatible with the OpenAI API format but uses a different model. It is not GPT, Claude, Gemini, or any other vendor's model. Check the vendor's own documentation for their specific model details.

How do I top up my credit?

Top up using crypto: USDT on TRC20 or USDC on Base. Minimum top-up is $20, maximum is $500. You get a 5% bonus for $50 and 10% for $100. No cards or PayPal are accepted. Credit never expires and is charged by real token usage.

Does the API support function calling?

Yes, the API supports function calling with tools and tool_choice. You can also use JSON mode by setting response_format to json_object. Parameters like temperature, top_p, and stop are fully supported. This allows for structured outputs and tool integration in your applications.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Start with trial credit

Email and password, key on screen right away.