EN ▾

Uncensored API. No refusals. Crypto only.

Create key

Integrating an Uncensored Text API via OpenAI SDK

Developers often seek uncensored text models for specific use cases, ranging from creative writing to security research. This guide explains how to integrate an uncensored open-weight model using the standard OpenAI SDK, ensuring you get text in and text out without unexpected refusals.

Neon text interface showing uncensored API integration with code snippets and crypto symbols on a dark background

Understanding the Uncensored Text API

When developers discuss uncensored LLMs, they often look for models that do not refuse lawful adult, fictional, or controversial topics. Our service provides a hosted, OpenAI-compatible chat-completions API serving one specific uncensored open-weight text model. The model ID you must send is 'uncensored'. This ensures that the model does not apply the heavy alignment-based filtering or fine-tuned safety layers that many commercial providers enforce.

The core function of this API is simple: text in, text out. It does not generate images, audio, or video, nor does it perform OCR or embeddings. This focus allows for high reliability in pure text generation tasks. You can use the API for creative writing, roleplay, or data extraction where standard safety filters might interfere with the output.

Integration is straightforward because the API follows the OpenAI chat-completions standard. This means you can use the existing SDKs you already know, such as the OpenAI Python or Node.js SDKs, by simply pointing them to our base URL. The endpoint for chat completions is POST /v1/chat/completions. You can also use POST /v1/responses for newer response formats or GET /v1/models to verify available models.

The API supports a wide range of parameters that you are likely familiar with from other providers. You can control the output using temperature, top_p, stop sequences, and seed values. Additionally, the API supports function calling (tools) and JSON mode, making it suitable for building complex applications that require structured data or tool usage. The context window is 100,000 tokens, allowing for long conversations or large document processing.

Setting Up the OpenAI SDK

To begin integration, you need to install the standard OpenAI SDK for your preferred language. For Python, you can use pip install openai. Once installed, you will configure the client with your API key and the custom base URL. The base URL for this service is https://api.llamaaiapi.com/v1. This tells the SDK where to send your requests instead of the default OpenAI servers.

You can sign up for an account using Google or an email and password. Upon signup, your API key is shown immediately, so you can start testing right away. Every new account also receives $0.50 of trial credit, so you do not need to add a card or pay upfront to verify the integration. This trial credit allows you to test the API without any financial commitment.

When configuring the SDK, set the API key in the authorization header. The SDK handles the rest of the authentication process. You can then create a client instance using the custom base URL. This setup ensures that all subsequent requests are routed to the uncensored model endpoint. The SDK will handle the JSON serialization and response parsing automatically.

It is important to note that the API key is specific to your account. You can generate multiple keys if needed, but each key has its own rate limits. The rate limit is 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. You can monitor your usage and manage your keys through the dashboard.

Making Your First Request

Once the SDK is configured, you can make your first request to the API. The request structure is identical to the OpenAI chat-completions endpoint. You need to specify the model ID as 'uncensored' and provide a list of messages. The messages should include a system prompt if you want to set the behavior of the model, followed by user messages.

For example, you can send a simple text query to the API. The API will return a response containing the generated text. You can also enable streaming by setting the stream parameter to true. This allows you to receive the response in chunks as it is generated, which is useful for real-time applications. The usage statistics are included in the last chunk of the stream.

The API supports various parameters to customize the output. You can adjust the temperature to control the randomness of the response. A higher temperature results in more creative outputs, while a lower temperature produces more deterministic results. You can also set top_p to control the diversity of the output. The stop parameter allows you to specify sequences that terminate the generation.

If you need structured output, you can use JSON mode. This ensures that the model returns a valid JSON object, which is useful for parsing the response in your application. You can also use function calling to allow the model to call specific functions based on the user's input. This feature is particularly useful for building agents that can interact with external tools or databases.

Pricing and Payment Methods

The pricing for this API is straightforward and based on token usage. The cost is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. You pay for real token usage, and errors or refusals are free. There is no monthly subscription fee, and your prepaid credit never expires. This model is ideal for developers who want to pay only for what they use.

To add credit to your account, you can use cryptocurrency. The accepted payment methods are USDT on the TRC20 network or USDC on the Base network. You can top up with any whole amount between $20 and $500. If you top up with $50 or more, you receive a bonus credit ranging from 5% to 15%. This bonus credit can help you get more value from your initial investment.

Payments are processed securely, and you do not need to provide credit card details. The API supports crypto-only payments, which means no cards, PayPal, or bank transfers. This can be advantageous for users who prefer anonymity or want to avoid traditional payment processors. You can check your balance and transaction history in the dashboard.

If you run out of credit, you will receive a 402 error. You can top up your account at any time to continue using the API. The API also returns a 401 error if the API key is invalid, and a 429 error if you exceed the rate limit. These error codes help you debug your integration and manage your usage effectively.

When This API Is Not the Right Choice

While this API is excellent for pure text generation, it may not be the right choice for all developers. If you need image generation, audio synthesis, or video creation, this API does not support those features. It is a text-only service, so you will need to combine it with other tools if you want to build a multimodal application.

Similarly, if you require embeddings for semantic search or OCR for document processing, this API does not provide those capabilities. You will need to use a different provider for those specific tasks. The API is focused on chat-completions, so it is best suited for applications that rely on text-based interactions.

Another consideration is the lack of fine-tuning options. If you need to train the model on your own data, you will need to use a different service. This API serves a pre-trained open-weight model, so you cannot customize the model's behavior through fine-tuning. However, you can use system prompts to guide the model's responses.

Finally, if you need high availability guarantees or specific certifications like SOC2 or HIPAA, this API does not offer those. It is an independent service without SLA percentages or on-prem deployment options. For most developers, the flexibility and uncensored nature of the model are sufficient, but enterprise users with strict compliance requirements may need to evaluate other options.

Addressing Community Questions

Developers in communities like r/LocalLLM often ask about finding the best uncensored models for local use. Many users are looking for models that are genuinely unrestricted and free from alignment-based filtering. Our API provides a hosted solution for those who do not want to manage local hardware. You can access the uncensored model without the need for powerful GPUs or large RAM setups.

Another common question is whether there are better uncensored models than specific local models like Qwen3.6 35B. While local models can be powerful, they require significant resources. Our API offers a convenient alternative that works out of the box. You can use the standard OpenAI SDK to connect to the model, making it easy to integrate into existing projects.

Users also discuss the issue of over-moderation in online LLM providers. Many find that standard models refuse challenging questions or controversial topics. Our uncensored model does not have these restrictions, allowing for more natural conversations. You can use the model for creative writing, roleplay, or research without worrying about sudden refusals.

Finally, some developers ask about the difference between uncensored models and those with abliteration or heretic tags. Our model is designed to be uncensored by default, without the need for specific tags or modifications. This makes it easier to use in applications where you want consistent behavior. You can rely on the model to handle a wide range of topics without unexpected filters.

Troubleshooting and Best Practices

When integrating the API, you may encounter common errors such as 401, 402, or 429. A 401 error indicates an invalid API key, so you should check your key in the dashboard. A 402 error means you have no credit, so you can top up using crypto. A 429 error indicates that you have exceeded the rate limit of 300 requests per minute. You can reduce the frequency of your requests or use multiple keys to distribute the load.

To ensure smooth integration, use the standard OpenAI SDK and point it to the correct base URL. Make sure to handle streaming responses correctly if you enable the stream parameter. This allows you to receive the response in chunks, which is useful for real-time applications. You can also use the JSON mode to get structured output, which simplifies parsing.

It is important to monitor your token usage to manage costs effectively. The API charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. You can track your usage in the dashboard and set up alerts if needed. Since prepaid credit never expires, you can use your credit over time without worrying about expiration dates.

Finally, always test your integration with a variety of inputs to ensure the model behaves as expected. Use system prompts to guide the model's responses and adjust parameters like temperature and top_p to fine-tune the output. By following these best practices, you can build reliable and efficient applications using our uncensored text API.

Frequently asked questions

How do I connect to the uncensored API using the OpenAI SDK?

Install the OpenAI SDK and configure the client with your API key and the base URL https://api.llamaaiapi.com/v1. Then, set the model ID to 'uncensored' in your requests to start generating text.

What payment methods are accepted for topping up credit?

The API accepts only crypto payments: USDT on the TRC20 network or USDC on the Base network. You can top up with amounts between $20 and $500, and receive a bonus for larger deposits.

Does the API support streaming and function calling?

Yes, the API supports streaming over SSE, allowing you to receive responses in chunks. It also supports function calling (tools) and JSON mode for structured output, making it suitable for complex applications.

What happens if I exceed the rate limit?

If you exceed the limit of 300 requests per minute per key, you will receive a 429 error. You can reduce your request frequency or use multiple API keys to distribute the load across different keys.