EN ▾
Get API key

Integrating Uncensored GPT: A Step-by-Step Checklist

Developers often seek reliable ways to integrate uncensored text models into their applications. This guide outlines a clear integration path for an API that handles text input and output without complex multimodal requirements.

Developer workspace with laptop code display and crypto coins on a dark desk

Understanding the API Scope and Base URL

Before writing any code, it is essential to understand what this service actually provides. The API is designed specifically for text generation using a single uncensored open-weight model. You do not need to worry about configuring multiple models or routing requests to different endpoints. The model identifier you must send in your requests is simply uncensored. This simplifies the integration process significantly, as you only need to manage one model configuration.

The base URL for all your API calls is https://api.unsensoredgpt.com/v1. This is the foundation for every endpoint you will interact with. If you are sending chat completions or checking available models, this base URL remains constant. Keeping this URL handy in your environment variables or configuration files will prevent connectivity issues later.

It is important to note that this is a hosted service, meaning you do not need to manage server infrastructure yourself. The service handles the heavy lifting of serving the model, allowing you to focus on your application logic. However, because it is a hosted solution, you must ensure your application can handle standard HTTP requests and responses efficiently.

The API supports two main endpoints for generating text: POST /v1/chat/completions and POST /v1/responses. The GET /v1/models endpoint allows you to verify available models, though currently, there is only the one uncensored model. Understanding these endpoints is the first step in building a reliable integration that can handle various text generation tasks.

Authentication and Key Management

Authentication is straightforward and relies on a single API key. When you sign up, you can use Google or an email and password combination. Once registered, your API key is shown immediately, so you must copy it down securely. This key is the primary method for authenticating your requests to the API. You do not need to manage complex OAuth flows or refresh tokens for this service.

When making requests, you must include your API key in the authorization header. If the key is invalid or missing, the API will return a 401 error. This is a clear signal that your authentication credentials need to be checked. It is good practice to handle this error gracefully in your application, perhaps by prompting the user to re-enter their key or refresh their session.

The service also imposes a rate limit of 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. This limit is per key, so if you have multiple keys, you can distribute the load. However, for most individual developers or small teams, a single key should be sufficient. Monitoring your usage and handling rate limit errors appropriately is important for a smooth developer experience.

Errors are handled via standard HTTP status codes. A 402 error indicates that you have no credit left. Since the service is prepaid, you cannot make requests without funds. This is different from subscription-based models where you might have a grace period. Ensuring you have sufficient credit before making bulk requests can prevent unexpected interruptions in your application's functionality.

Pricing and Payment Methods

Understanding the pricing structure is important for budgeting your API usage. The service charges $0.15 per one million input tokens and $0.50 per one million output tokens. This pricing model is straightforward and based on actual token usage. You are charged for the tokens you send and receive, which means you pay for what you use. This can be cost-effective for applications with variable usage patterns.

Payment is accepted only via cryptocurrency. Specifically, you can use USDT on the TRC20 network or USDC on the Base network. There are no options for credit cards, PayPal, or bank transfers. This crypto-only approach may appeal to users who prefer decentralized payment methods. The minimum top-up amount is $20, and the maximum is $500. You can top up with any whole amount within this range.

There is also a bonus credit system for larger top-ups. If you top up from $50, you receive a bonus ranging from 5% to 15%. This bonus is added to your credit, giving you more value for your money. The bonus credit never expires, and prepaid credit is charged based on real token usage. Errors and refusals are free, which means you do not pay for failed requests or content that is refused by the model.

New accounts start with $0.50 of trial credit, allowing you to test the API without immediate payment. This trial credit is a great way to verify that your integration works before committing to a larger top-up. It is important to keep track of your credit balance, as you will need to top up again once the trial credit is exhausted. The prepaid nature of the service means you always know exactly how much you have spent.

Technical Parameters and Features

The API supports a range of technical parameters that allow you to fine-tune the model's behavior. You can control the randomness of the output using the temperature parameter. Higher values make the output more random, while lower values make it more deterministic. You can also use the top_p parameter to control the diversity of the output. These parameters are essential for achieving the desired tone and style in your generated text.

Streaming is supported over Server-Sent Events (SSE). This allows you to receive the model's response in real-time, chunk by chunk. The usage information is included in the last chunk of the stream. This is particularly useful for applications that display text to users in real-time, such as chat interfaces. Streaming can improve the perceived performance of your application by reducing the wait time for the first word.

Function calling and JSON mode are also supported. This allows you to integrate the API with other tools and systems that require structured data. You can define tools that the model can call, and the model will return the appropriate arguments. JSON mode ensures that the output is valid JSON, which can be easily parsed by your application. These features make the API versatile for a wide range of use cases.

Other parameters include stop sequences, seed, and penalties. Stop sequences allow you to define specific strings that signal the end of the output. The seed parameter allows you to reproduce the same output for a given input. Penalties can be used to discourage certain words or phrases from appearing in the output. These parameters give you fine-grained control over the generation process.

Context Window and Content Limits

The context window for this API is 100,000 tokens. This includes both the prompt and the completion. A large context window allows you to send longer inputs and receive longer outputs. This is beneficial for tasks that require understanding long documents or maintaining context over multiple turns in a conversation. However, it is important to monitor your token usage, as longer contexts can consume credit faster.

The model is uncensored, meaning it does not refuse lawful adult, fictional, security-research, or controversial topics. This makes it suitable for applications where content filtering is not desired. However, there is a hard content limit: the model will refuse requests involving sexual content with minors. This limit is enforced to ensure the service remains usable for a broad range of applications.

When designing your application, consider how you will manage the context window. If you are sending very long inputs, you may need to truncate or summarize the input to fit within the 100,000 token limit. Similarly, if the output is very long, you may need to handle partial responses or chunk the output. Understanding these limits helps you build a more reliable and reliable application.

The uncensored nature of the model means that the output can be unpredictable. It is important to have error handling in place to deal with unexpected output formats or content. While the model is powerful, it is not infallible. Testing your integration with a variety of inputs can help you identify potential issues and refine your prompt engineering strategies.

When This API Is Not the Right Choice

While this API is powerful for text generation, it may not be the right choice for every project. If your application requires image, audio, or video generation, this API will not suffice. The service is text-only, so you will need to find another provider for multimodal tasks. Similarly, if you need embeddings, OCR, or fine-tuning capabilities, this API does not offer those features.

If you are looking for a service with a free unlimited tier, this API may not fit your needs. The service is prepaid, and you must top up your credit to continue using it. While there is a trial credit, it is limited to $0.50. For applications with high volume and low budget constraints, the prepaid model may not be as cost-effective as a subscription-based service.

If you need on-premises deployment or specific certifications like SOC2, HIPAA, or ISO, this hosted service may not meet your requirements. The service is hosted, and you do not have control over the underlying infrastructure. If data privacy and security are critical, you may need to consider a self-hosted solution or a provider with specific compliance certifications.

Finally, if you need model routing or the ability to switch between different models, this API is limited to a single uncensored model. You cannot route requests to different models based on your needs. For applications that require flexibility in model selection, this API may be too restrictive. Always evaluate your specific requirements before integrating this API to ensure it aligns with your project goals.

Addressing Community Questions and Use Cases

Developers in online communities often ask how to set up uncensored GPT models on local hardware, such as converted Chromeboxes running Linux. They also seek recommendations for models that can store data locally. While this API is hosted, it can be integrated into local applications that run on Linux. The key is to ensure your local application can handle HTTP requests to the API endpoint.

Another common question is how to handle uncensored conversations similar to those on platforms like ChatGPT or Grok. This API supports unrestricted conversation, making it suitable for applications that require open-ended dialogue. Users can engage in conversations without the typical content filters found in other services. This is particularly useful for creative writing, role-playing, and research applications.

Some users are interested in creating ultra-realistic content, such as high-end fashion editorials. While this API is text-only, it can generate detailed descriptions and prompts that can be used in conjunction with image generation tools. The text output can serve as a blueprint for visual content, allowing for a more cohesive creative workflow.

For users who have previously used tools like Dig AI or are looking for alternatives, this API offers a reliable and straightforward integration path. The focus on text-only functionality simplifies the development process, allowing developers to concentrate on the core logic of their applications. By addressing these community questions, we can help developers make informed decisions about how to best utilize this API in their projects.

Frequently asked questions

How do I get an API key?

You can sign up using Google or an email and password. Your API key is shown immediately after registration, so make sure to copy it down securely.

What payment methods are accepted?

The service accepts only crypto payments: USDT on the TRC20 network or USDC on the Base network. Credit cards, PayPal, and bank transfers are not supported.

Is there a free tier?

New accounts receive $0.50 of trial credit, which requires no card. However, there is no free unlimited tier; you must top up with crypto to continue using the API.

What happens if I run out of credit?

If you have no credit, the API will return a 402 error. You will need to top up your account with crypto to resume making requests.