EN ▾
Try with trial credit

Step-by-Step Guide to Integrating Uncensored LLMs

Integrating abliterated models into your application is straightforward when you treat the API as a drop-in replacement for standard OpenAI endpoints. This guide walks you through the specific configuration steps, from SDK installation to handling real-time streaming, ensuring you get raw, unfiltered responses without the overhead of complex routing.

Last updated

Why use an OpenAI-compatible endpoint for uncensored models?

Using an OpenAI-compatible endpoint removes the learning curve for abliterated models integration. You already know the SDKs. You already know the parameters. Most major providers force you to learn new JSON structures or use proprietary libraries. Here, you send a standard chat-completions payload. The difference is in the base URL and the model ID. You get a raw, unfiltered text response. No hidden moderation layers block your creative writing or roleplay scenarios. This compatibility means you can swap in uncensored capabilities without rewriting your entire application logic.

Prerequisites: Installing the SDK and setting your API key

Start by installing the official SDK for your preferred language. For Python, use pip. For JavaScript, use npm. You need a valid API key from the dashboard. No phone number is required. Just email or Google login. Get your key immediately after signup. It appears on the screen. Store it securely. Do not hardcode it in production code. Use environment variables. This keeps your credentials safe while you test the integration locally. The key grants access to the single uncensored model. It is all you need to start sending requests.

Step 1: Configure the Base URL for the uncensored endpoint

Point your SDK client to the correct base URL. The default OpenAI endpoint is not where your uncensored model lives. You must specify https://api.aiabliterated.cc/v1. This tells the SDK where to send your POST requests. Without this change, you will hit the standard OpenAI servers. They have different models and different pricing. Our endpoint serves the specific uncensored large language model. It is tuned for adult use. It ignores standard content filters. Ensure your client configuration is correct before sending any data. This step is critical for getting the right response format.

Step 2: Sending your first chat completion request

Send a POST request to /v1/chat/completions. Set the model parameter to "uncensored". This is the only model ID available. Include your system prompt and user message. The API returns a text response. It does not refuse lawful adult content. It does not block controversial topics. The response is plain text. You get token usage data in the final chunk if streaming. If you do not stream, you get the full text in one go. The context window is 100,000 tokens. You can write long stories. You can paste large code blocks. The model handles it all.

Step 3: Enabling streaming for real-time token display

Streaming is essential for a good user experience. Set the stream parameter to true. The API returns chunks of text. Each chunk contains a partial response. You can display these tokens in real-time. This makes the app feel fast. The final chunk includes the complete token usage statistics. This includes input and output tokens. You need this data for billing and monitoring. Without streaming, the user waits for the entire response. With streaming, they see progress. It is better for long-form creative writing. It is better for debugging. Enable it by default in your client.

Step 4: Handling function calling and tool usage

You can use function calling with the uncensored model. Define your tools in the request. The model will return tool calls in JSON format. You execute the tool. You send the result back. The model continues the conversation. This works exactly like the OpenAI API. You do not need a custom parser. The model understands the tool schema. It returns valid JSON. You can build agents. You can automate tasks. The model does not refuse to call tools for adult functions. It follows instructions precisely. This is powerful for complex workflows.

Step 5: Optimizing performance with JSON mode

Force the model to output valid JSON. Set the response_format parameter to json_object. This reduces parsing errors. It ensures your code receives structured data. This is useful for extracting information. It is useful for generating config files. The model stays in JSON mode until you switch it. This is faster than asking for JSON naturally. The model understands the constraint. It prioritizes structure over flow. This is ideal for backend services. It reduces the need for regex cleaning. It makes your integration robust. Use it when you need strict data formats.

Step 6: Managing rate limits and retries

Respect the rate limits. You get 300 requests per minute per key. You can have 8 concurrent requests. The request body is limited to 8 MB. If you exceed these limits, you get an error. Implement exponential backoff in your code. Do not spam the endpoint. This ensures stable performance. You can generate a new key if needed. One active key per account. A new key replaces the old one. This is useful for rotating keys. It keeps your service running smoothly. Monitor your usage. The final streaming chunk gives you the token count. Use this to track your spending. Crypto payments make this easy.

Troubleshooting common integration errors

If you get a 401 error, check your API key. It must be valid. If you get a 404, check the base URL. It must be correct. If you get a 429, you hit the rate limit. Wait and retry. If you get a 500, the server had an error. Retry once. Check your model ID. It must be "uncensored". Check your payload. It must be valid JSON. Ensure you are not sending unsupported parameters. This API does not support images or audio. It does not support fine-tuning. Stick to the chat-completions endpoint. This keeps things simple. Errors are usually configuration issues. Fix them quickly. Get back to generating content.

Frequently asked questions

Can I use the abliterated AI API with the standard OpenAI SDK?

Yes, it is fully compatible. You just need to change the base URL to HTTPS://api.aiabliterated.cc/v1 and set the model to "uncensored". All standard parameters like temperature, top_p, and stream work exactly as documented.

What is the pricing for abliterated models?

Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens. There are no monthly fees. You pay for what you use. Errors are free. Credit never expires.

How do I pay for the API?

Payments are crypto-only. You can top up with USDT (TRC20) or USDC (Base). Amounts range from $20 to $500. You get bonus credit for larger deposits.

Is there a trial available?

Yes, new accounts get $0.50 in trial credit. It is valid for 7 days. You just need an email or Google login.

Secure your API key

Register, copy your token, update your base URL. That is the entire process.

Try with trial creditView documentation