EN ▾
Try with trial credit

Integrating Uncensored Text APIs with Standard SDKs

Many developers seek to replace standard providers with uncensored alternatives without rewriting their entire codebase. This guide provides a tested checklist for configuring standard SDKs to point to our compatible endpoint. We ensure smooth text-in, text-out functionality for your applications.

Abstract illustration of data streams and code tokens flowing into a central processor for AI API integration.

Why Swap Providers for Uncensored Text?

Developers often encounter content filters that refuse lawful adult, fictional, or security-research topics. These refusals can disrupt workflows that require raw model outputs. By switching to an uncensored provider, you gain control over the model's willingness to generate content. Our API serves one uncensored open-weight text model, ensuring that requests are processed without the typical safety refusals found in other services.

The primary benefit is reliability for niche use cases. If you are building a creative writing assistant or a data extraction tool, the model does not refuse controversial topics. This consistency allows you to build applications that trust the model to answer directly. You avoid the frustration of a request being blocked for no clear reason.

Another key advantage is the simplicity of the integration. Our API is OpenAI-compatible, meaning you can use existing SDKs with minimal changes. You do not need to learn a new protocol or rewrite your entire application logic. This reduces the cost and time associated with migrating from a standard provider to an uncensored alternative.

Finally, the pricing model is straightforward and prepaid. You pay only for real token usage, with no monthly subscription fees. This transparency helps you budget accurately for your project. You can start with a small trial credit and scale up as needed, making it accessible for indie builders and small teams.

Configuring the Base URL and Endpoint

To integrate our API, you must first update the base URL in your SDK configuration. The standard endpoint for chat completions is POST /v1/chat/completions. You need to change the base URL to https://api.openaiapialternatives.com/v1. This ensures that your requests are routed to our uncensored model instead of the default provider. It is important to verify this change before making any live requests.

Next, you must specify the correct model ID in your request payload. Our service uses the model id 'uncensored'. This identifier tells the API which model to run. Without this specific ID, your requests may fail or default to an incorrect model. Ensure that your code explicitly sets the model field to 'uncensored' in every chat completion call.

You should also test the connectivity using the GET /v1/models endpoint. This endpoint allows you to verify that your API key is valid and that you can access the model list. It serves as a quick health check before you begin integrating the chat functionality. If this endpoint returns a success response, your authentication is working correctly.

Remember that our API supports only text generation. There are no embeddings, image, audio, or video generation capabilities. If your application relies on multimodal features, you will need to handle those separately. This API is strictly for text-in, text-out scenarios, so keep your expectations aligned with this limitation.

Handling Streaming and Function Calling

Streaming is a common requirement for modern chat applications. Our API supports streaming over Server-Sent Events (SSE). This allows you to receive token-by-token updates as the model generates text. The usage information is included in the last chunk of the stream. This feature enables a smooth user experience by displaying text in real-time.

Function calling is another powerful feature available in our API. You can define tools in your request payload, and the model will return structured JSON output. This allows your application to trigger specific actions based on the model's response. The API supports the standard function calling format used by most SDKs.

To implement function calling, you need to define your tools in the request. The model will then return a response with tool calls if necessary. Your application must parse these calls and execute the corresponding functions. This process is similar to how you would handle function calling with other OpenAI-compatible providers.

Ensure that your SDK is configured to handle streaming responses correctly. Some SDKs require specific flags to enable streaming. Check your SDK documentation for the correct syntax. By enabling streaming, you can provide a more responsive interface to your users. The combination of streaming and function calling makes our API suitable for complex applications.

Managing Parameters and Penalties

Our API supports several parameters to control the model's behavior. You can adjust the temperature to influence the randomness of the output. A higher temperature results in more creative and varied responses. A lower temperature produces more deterministic and focused outputs. This flexibility allows you to tune the model for different use cases.

The top_p parameter is also supported. This parameter controls the nucleus sampling, which limits the model's choices to the most probable tokens. You can use this parameter to refine the quality of the output. Combining temperature and top_p gives you fine-grained control over the generation process.

You can also specify stop sequences to halt the generation at specific points. This is useful for formatting output or preventing the model from going off-topic. The seed parameter allows you to reproduce the same output for a given input. This is helpful for debugging and testing your application.

Penalties are another important feature. You can adjust penalties to discourage certain tokens or patterns. This helps in shaping the style and tone of the generated text. By experimenting with these parameters, you can optimize the model's performance for your specific needs. Always test different configurations to find the best balance for your application.

Pricing, Credits, and Payment Methods

Our pricing is simple and transparent. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This prepaid credit is charged based on real token usage. Errors and refusals are free, so you only pay for successful completions. There is no monthly subscription fee, which makes it cost-effective for variable workloads.

To add credit, you must use crypto. We accept USDT on TRC20 or USDC on Base. You can top up any whole amount from $20 to $500. If you top up $50 or more, you receive bonus credit ranging from +5% to +15%. This bonus helps you get more value from your purchases. No cards, PayPal, or bank transfers are accepted.

New accounts start with $0.50 of trial credit. No credit card is needed to sign up. This allows you to test the API without any financial commitment. The key is shown immediately after signup, so you can start making requests right away. The prepaid credit never expires, so you can use it at your own pace.

Understanding the pricing model is essential for budgeting. You can estimate your costs by calculating the token usage. For example, if you use 1 million input tokens, you will be charged $0.15. If you use 1 million output tokens, you will be charged $0.50. Keep track of your usage to avoid running out of credit unexpectedly.

When Our API Is Not the Right Choice

While our API is excellent for uncensored text generation, it may not be the right choice for every project. If you need image, audio, or video generation, our API cannot provide those capabilities. It is strictly a text-in, text-out service. You will need to integrate with other services for multimodal features.

Similarly, if you require embeddings for vector search, our API does not support this feature. You will need to use a separate embedding service. The same applies to OCR, fine-tuning, and model routing. Our API focuses solely on chat completions. If your application relies on these additional features, you may need a more comprehensive solution.

Another limitation is the context window. Our API supports a 100,000 token context window. While this is substantial, it may not be enough for very long documents. If you need to process extremely long texts, you may need to implement chunking strategies. This requires additional development effort to manage the context effectively.

Finally, if you need strict SLA guarantees or certifications like SOC2 or HIPAA, our API does not offer these. We are an independent service and do not claim these certifications. If your project requires high availability or specific compliance standards, you should evaluate other providers. Our API is best suited for developers who prioritize uncensored text generation and flexible pricing.

Addressing Common Developer Questions

Developers often ask about price confusion and model availability. Some users have noted that pricing structures can be unclear, especially with newer models. In our case, the pricing is fixed and transparent. You pay per token, with no hidden fees. The model ID 'uncensored' is consistent, so you do not need to worry about model versioning.

Another common question is about the availability of the latest models. While other providers may release new models frequently, our API focuses on one uncensored open-weight model. This model is continuously updated to provide the best performance. You do not need to migrate your code when new models are released.

Users also ask about the reliability of the API. Our API is designed to be stable and reliable. We have a rate limit of 300 requests per minute per key. This ensures fair usage and prevents abuse. If you exceed the rate limit, you will receive a 429 error. You can monitor your usage to stay within the limits.

Finally, developers often inquire about the onboarding process. Our API is easy to integrate. You can sign up with Google or email and password. The API key is shown immediately, so you can start testing right away. The trial credit of $0.50 allows you to explore the API without any risk. This makes it easy for developers to evaluate the service before committing to a larger purchase.

Frequently asked questions

How do I change the base URL in my SDK?

Update the base URL in your SDK configuration to https://api.openaiapialternatives.com/v1. This ensures your requests are routed to our uncensored model. Verify this change before making live requests.

What model ID should I use?

Use the model id 'uncensored' in your request payload. This identifier tells the API which model to run. Without this ID, your requests may fail or default to an incorrect model.

Can I use credit cards for payment?

No, we accept only crypto. You can top up with USDT on TRC20 or USDC on Base. No cards, PayPal, or bank transfers are accepted. You can top up any whole amount from $20 to $500.

Does the API support image generation?

No, our API is strictly for text-in, text-out. It does not support image, audio, or video generation. If you need multimodal features, you will need to integrate with other services.