EN ▾
Create key

Integrating Uncensored GPT API: SDK Setup and Testing Checklist

Developers often seek a reliable way to bypass standard safety filters using an OpenAI-compatible client. This guide walks you through the SDK setup for our uncensored text API and provides a testing checklist to ensure your connection is stable and ready for production.

Developer workspace with monitor showing code and abstract data flow visuals

Understanding the Uncensored Text API

Our API serves a single uncensored open-weight text model, identified by the model ID uncensored. This means the model does not refuse lawful adult, fictional, security-research, or controversial topics. The service is designed for text-in, text-out interactions, providing a straightforward way to integrate AI into your applications without the typical safety refusals found in other models.

The API is hosted and compatible with the OpenAI chat-completions format. This compatibility allows you to use existing OpenAI SDKs with minimal changes. You only need to update the base URL and the model ID to point to our service. The base URL for our API is https://api.gptunhinged.com/v1 .

Unlike many other services, we do not offer embeddings, image generation, audio processing, or video generation. The focus is purely on text completion and chat completions. This simplicity makes it easier to integrate into projects that only require text outputs.

The context window for our model is 100,000 tokens, which includes both the prompt and the completion. This large context window allows you to send long prompts and receive long responses without losing information. It is ideal for applications that need to process large amounts of text in a single request.

SDK Configuration and Client Setup

To integrate the API, you need to configure your SDK client with the correct base URL and model ID. The base URL is https://api.gptunhinged.com/v1 . You should set the model ID to uncensored in your client configuration. This ensures that all requests are sent to the correct uncensored model.

You can use any OpenAI-compatible SDK, such as the Python, JavaScript, or Go SDKs. The configuration process is straightforward. You simply need to update the API base URL and the model ID in your client settings. The API key is generated when you sign up, and you should store it securely in your environment variables.

The API supports streaming over Server-Sent Events (SSE). This allows you to receive responses in real-time, which is useful for chat applications. You can also use function calling, JSON mode, and various parameters like temperature, top_p, stop, seed, and penalties. These features give you fine-grained control over the model's behavior.

When configuring your client, make sure to handle errors appropriately. The API returns specific error codes for different issues. A 401 error indicates an invalid key, a 402 error means you have no credit, and a 429 error indicates a rate limit. Handling these errors correctly will ensure a smooth user experience.

Pricing and Payment Methods

Our API uses a prepaid credit system charged by real token usage. The price is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Errors and refusals are free, so you only pay for successful completions. There is no subscription or monthly fee, and your paid credit never expires.

To top up your credit, you can use cryptocurrency. We accept USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. You can top up any whole amount within this range. For top-ups of $50 or more, you receive bonus credit, ranging from +5% to +15%.

We do not accept credit cards, PayPal, or bank transfers. This crypto-only payment method allows for fast and secure transactions. You can check your balance and usage in your account dashboard. The trial credit of $0.50 is available for new accounts without requiring a card.

When estimating costs, remember that the price is based on token counts. You can calculate the cost by dividing the token count by 1,000,000 and multiplying by the per-million price. This helps you budget for your API usage and avoid unexpected charges.

Testing Your Integration

Before deploying your integration to production, it is essential to test your connection thoroughly. Start by sending a simple text request to ensure that the API responds correctly. Use the uncensored model ID and verify that the response matches your expectations.

Next, test the streaming functionality. Send a request with the streaming parameter enabled and verify that you receive chunks of data in real-time. This is important for chat applications where user experience depends on fast responses. Check that the usage information is included in the last chunk.

You should also test the function calling and JSON mode features. Send a request with a function definition and verify that the model returns the correct JSON output. This is important for applications that need to interact with external APIs or databases. Ensure that the JSON output is valid and matches your schema.

Finally, test the error handling. Simulate different error conditions, such as an invalid key or a rate limit exceeded. Verify that your client handles these errors gracefully and provides meaningful feedback to the user. This will help you identify and fix any issues before they affect your production environment.

When Our API Is Not the Right Choice

While our uncensored text API is powerful, it may not be the right choice for every project. If you need image generation, audio processing, or video creation, our API does not support these features. You would need to use a different service for those capabilities.

Similarly, if you require embeddings for semantic search or fine-tuning for custom model behavior, our API does not offer these options. The focus is purely on text completion and chat completions. If your application relies on these advanced features, you might need to consider other solutions.

Additionally, if you need on-premises deployment for data privacy or compliance reasons, our hosted API may not meet your requirements. We do not offer on-premises deployment options. You would need to look for a service that provides local model hosting.

Finally, if you need a free unlimited tier or a subscription-based model with specific SLA guarantees, our prepaid credit system may not fit your budget or operational needs. We offer a prepaid system with no monthly fees, but you must manage your credit balance carefully.

Addressing Community Questions

Developers in communities like r/accelerate and r/AIJailbreak often discuss the need for uncensored models that do not refuse controversial topics. They appreciate services that provide a straightforward text-in, text-out experience without the hype or misleading claims found in other marketing efforts.

Users in r/deepweb and r/chatbot frequently ask for free and uncensored AI models that are reliable and do not go offline unexpectedly. They value stability and consistent performance, especially for applications that require continuous access to the API.

In r/CharacterAI_No_Filter, users look for chatbots that remember context and do not forget previous messages. They appreciate services that offer good memory and allow for long conversations without losing track of the context. Our 100,000 token context window helps meet this need.

Users in r/ChatbotRefugees often seek reasonably priced, uncensored chatbot sites with good memory. They want to make and engage with bots without being locked into subscriptions. Our prepaid credit system and lack of monthly fees make our API an attractive option for these users.

Best Practices for Production

When moving your integration to production, monitor your API usage closely. Keep track of your token consumption and credit balance to avoid unexpected service interruptions. You can check your usage in your account dashboard and top up your credit as needed.

Implement retry logic for handling rate limits and errors. The API has a limit of 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. Implementing exponential backoff can help you manage these limits effectively.

Use environment variables to store your API key and other sensitive information. This prevents your key from being exposed in your code repository. Ensure that your key is secure and only accessible to authorized users.

Regularly test your integration with new updates to the API. Stay informed about any changes to the model or features. This will help you ensure that your application continues to work correctly and takes advantage of new capabilities.

Frequently asked questions

How do I sign up for the uncensored GPT API?

You can sign up using your Google account or by creating an email and password. Once you sign up, you will receive an API key immediately. You can also get $0.50 of trial credit without needing to add a card.

What payment methods are accepted for top-ups?

We accept crypto only, specifically USDT on the TRC20 network or USDC on the Base network. You can top up any whole amount between $20 and $500. Credit cards, PayPal, and bank transfers are not accepted.

Does the API support streaming responses?

Yes, the API supports streaming over Server-Sent Events (SSE). This allows you to receive responses in real-time, which is useful for chat applications. The usage information is included in the last chunk of the stream.

What happens if I exceed the rate limit?

If you exceed the rate limit of 300 requests per minute per key, you will receive a 429 error. You should implement retry logic with exponential backoff to handle these errors gracefully and avoid overwhelming the API.