Integrating Our Unfiltered LLM API: A Developer Checklist
Developers often struggle with configuring headers and endpoints for uncensored text APIs. This guide provides a tested integration checklist to ensure reliable text-in, text-out responses without unnecessary overhead.
Understanding the API Basics
The foundation of integrating our API lies in understanding its core structure. We offer a hosted, OpenAI-compatible chat-completions API that serves one specific uncensored open-weight text model. The model ID you must send is simply uncensored. This ensures that the text you send in is processed and returned as text, maintaining a straightforward text-in, text-out workflow. There are no complications with multiple models or complex routing logic.
Our service operates on a single base URL: https://api.unfilteredchatgpt.com/v1. From this endpoint, you can access three primary methods. The POST /v1/chat/completions endpoint handles standard chat interactions. The POST /v1/responses endpoint is available for newer response formats. Additionally, the GET /v1/models endpoint allows you to verify available models, though we only serve the one uncensored model.
It is important to note that this API is strictly for text generation. We do not support embeddings, image generation, audio processing, or video creation. There is no OCR capability, no fine-tuning options, and no model routing features. Keeping your integration focused on text ensures you use the API's strengths without expecting features it does not provide. This simplicity reduces integration complexity and allows for faster development cycles.
When you begin your integration, start by familiarizing yourself with these basic endpoints. Ensure your client library is configured to point to our base URL. This sets the stage for all subsequent requests. By sticking to the text-only capabilities, you avoid unnecessary overhead and ensure that your application runs efficiently. The uncensored nature of the model means it does not refuse lawful adult, fictional, security-research, or controversial topics, providing a unique advantage for specific use cases.
Authentication and Access Keys
Accessing our API requires a valid API key, which is generated upon signup. You can create an account by continuing with Google or by using an email and password combination. The key is shown immediately after signup, so make sure to copy it securely. This key is essential for authenticating your requests to the API endpoints.
When making requests, include the API key in the authorization header. If the key is invalid, the API will return a 401 error. This indicates that the key provided is incorrect or has been revoked. It is important to handle this error gracefully in your application to inform the user or retry with a valid key.
Another common error is the 402 status code, which signifies that you have no credit left. Since our service operates on a prepaid credit system, you must ensure that your account has sufficient funds before making requests. If you run out of credit, your requests will be rejected until you top up your account.
Rate limits are also enforced to ensure fair usage. You are limited to 300 requests per minute per key. If you exceed this limit, the API will return a 429 error. It is advisable to implement exponential backoff in your client code to handle these rate limits effectively. This prevents overwhelming the API and ensures a smooth user experience.
Pricing and Payment Methods
Our pricing model is straightforward and based on token usage. You are charged $0.15 per one million input tokens and $0.50 per one million output tokens. This means that the cost of your requests is directly proportional to the amount of text processed. Errors and refusals are free, so you only pay for successful token generation.
Payments are accepted via cryptocurrency only. You can top up your account with 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 choose any whole amount within this range. This flexibility allows you to manage your budget effectively without being locked into fixed subscription plans.
Additionally, we offer bonus credit for larger top-ups. If you top up from $50, you receive a bonus ranging from 5% to 15%. This incentive encourages you to maintain a healthy credit balance. The prepaid credit never expires, so you can use it at your own pace without worrying about expiration dates.
It is important to note that we do not accept credit cards, PayPal, or bank transfers. All transactions are conducted using the specified cryptocurrencies. This method ensures fast and secure transactions while minimizing fees. Keep track of your token usage to estimate costs accurately and avoid unexpected charges.
Request Formatting and Parameters
When sending requests to our API, you can utilize various parameters to customize the response. These include temperature, top_p, stop, seed, and penalties. The temperature parameter controls the randomness of the output, while top_p adjusts the nucleus sampling. The stop parameter allows you to specify sequences that terminate the response.
The seed parameter is useful for reproducible results. By setting a specific seed, you can ensure that the same input produces the same output, which is valuable for testing and debugging. Penalties can be used to discourage certain patterns in the generated text, allowing for finer control over the output quality.
Our API supports function calling, also known as tools. This feature enables the model to call external functions based on the input context. You can define the structure of these functions and receive structured responses that can be easily integrated into your application logic. This capability enhances the versatility of the API for complex tasks.
Additionally, JSON mode is available for generating structured JSON output. This is particularly useful for applications that require data in a specific format. By enabling JSON mode, you can ensure that the output is parseable and ready for further processing. These parameters give you extensive control over the behavior of the model.
Streaming and Error Handling
Streaming is supported over Server-Sent Events (SSE), allowing you to receive responses in real-time. This is ideal for chat applications where immediate feedback is important. The usage information is included in the last chunk of the stream, providing details about token consumption. This feature enhances the user experience by reducing perceived latency.
When implementing streaming, ensure that your client can handle partial responses and reconnection scenarios. Network interruptions can occur, and your application should be resilient to such events. By handling SSE correctly, you can provide a smooth experience for your users.
Error handling is another critical aspect of integration. As mentioned earlier, you may encounter 401, 402, and 429 errors. It is important to log these errors and implement appropriate retry logic. For 429 errors, consider implementing exponential backoff to avoid overwhelming the API.
Additionally, be aware that the model refuses requests involving sexual content with minors. This is a hard content limit that cannot be bypassed. If your application involves such content, ensure that you handle these refusals gracefully. Understanding these limits helps in designing reliable error handling mechanisms.
Context Window and Limits
The context window for our API is 100,000 tokens, which includes both the prompt and the completion. This large context window allows for extensive conversations and complex inputs. It is suitable for applications that require long-term memory or processing of large documents.
However, it is important to manage the context window effectively. While the API supports large contexts, the cost will increase with the number of tokens. Be mindful of the input size to optimize costs. You can also use the stop parameter to limit the output length and control token usage.
Rate limits are set at 300 requests per minute per key. If you are building a high-throughput application, consider implementing request queuing or batching to stay within these limits. This ensures that your application does not get throttled due to excessive request volumes.
Understanding these limits helps in designing an efficient integration. By balancing the context window size and request frequency, you can achieve optimal performance. Always monitor your usage and adjust your strategy as needed to maintain reliability and cost-effectiveness.
When This API Is Not the Right Choice
While our API offers powerful uncensored 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. We do not support multimedia outputs, so projects relying on these features should look elsewhere.
Similarly, if you need embeddings for semantic search or clustering, our API does not provide this functionality. The focus is strictly on text generation. Applications that require vector embeddings should consider dedicated embedding APIs alongside our text API.
OCR capabilities are also absent. If your workflow involves extracting text from images, you will need an additional service for this task. Our API processes text inputs, so any preprocessing of images must be handled separately.
Finally, if you require fine-tuning or model routing, this API does not support these features. You are limited to the single uncensored model provided. Projects needing custom model training or dynamic model selection should evaluate other options. Understanding these limitations helps in making an informed decision about whether our API fits your specific needs.
Frequently asked questions
How do I top up my account?
You can top up your account with USDT on TRC20 or USDC on Base. The minimum amount is $20 and the maximum is $500. Credits are added immediately upon payment confirmation.
What happens if I run out of credit?
If you run out of credit, you will receive a 402 error on your requests. You must top up your account to resume using the API. Errors and refusals do not consume credit.
Can I use this API for image generation?
No, this API is strictly for text generation. It does not support image, audio, or video outputs. You will need a separate service for multimedia generation.
How is the context window calculated?
The context window is 100,000 tokens, which includes both the input prompt and the output completion. This limit applies to the total tokens processed in a single request.
More guides
- Unfiltered ChatGPT Free: What Is Actually Free
- ChatGPT Alternative Without NSFW Filter, via API
- ChatGPT Alternative No Filter: API Setup Guide
- Is There an Unfiltered Version of ChatGPT?
- Unfiltered ChatGPT Alternative: Uncensored LLM API
- Unfiltered Chatbot API: The Complete Guide for Developers
- Troubleshooting Unfiltered Chat Responses: Filters and Limits