Integrate Uncensored Search: API Keys, SDKs, and Testing
Integrating an uncensored search API requires careful attention to key management and request formatting. This guide outlines the workflow for connecting your application to our text-in, text-out service using standard HTTP clients or SDKs.

Understanding the API Endpoint Structure
The foundation of integrating our service lies in understanding the specific endpoint structure. Our API operates as a hosted, OpenAI-compatible chat-completions service. This design allows developers to use familiar client libraries that expect standard chat completion formats. The base URL for all requests is https://api.unrestrictedsearch.top/v1. You will primarily interact with the POST /v1/chat/completions endpoint for generating text responses. This endpoint accepts a JSON payload containing your conversation history and model parameters. It is important to send the correct model identifier, which is simply "uncensored". This ensures the request routes to the correct uncensored open-weight text model. The service is text-in, text-out, meaning it processes text input and returns text output. There are no embeddings, image generation, or audio processing capabilities. Keeping this scope in mind helps you structure your application data correctly. You do not need to handle complex multimodal data structures. Focus on formatting your messages as an array of role and content pairs. This standard format is well-supported by most modern SDKs. The simplicity of the endpoint reduces integration friction. You can send requests directly via HTTP clients like cURL or use higher-level SDKs. The key is to ensure your HTTP client sends the correct Content-Type header, typically application/json. This ensures the server parses your request body correctly. Misformatted requests often lead to 400 errors, which are distinct from authentication or rate-limit errors. Always verify your JSON structure before sending bulk requests. This initial setup phase is critical for a smooth integration experience. It sets the stage for all subsequent interactions with the model.
Managing API Keys and Authentication
Authentication is handled through API keys that you generate during the signup process. You can create an account by continuing with Google or by using an email and password combination. Once you sign up, the API key is shown immediately. It is essential to copy this key and store it securely, as it may not be displayed again. The key is required for all requests to the API. You will include it in the Authorization header of your HTTP requests. The format is typically Bearer followed by your key. If the key is invalid or missing, the server returns a 401 error. This indicates that the key is either malformed or does not exist in our system. It is important to distinguish this from a 402 error, which means you have no credit left. A 401 error is purely an authentication issue. You can generate new keys or view existing ones in your dashboard. The key is tied to your account and allows you to monitor usage. Since there are no monthly fees, the key remains valid as long as you have credit. You do not need to renew subscriptions annually. The key also determines your rate limits, which are 300 requests per minute. If you exceed this limit, you will receive a 429 error. This limits how quickly you can send requests. Managing your keys securely prevents unauthorized usage. Store them in environment variables rather than hardcoding them in your source code. This practice enhances security and makes it easier to rotate keys if necessary. The simplicity of the key system reduces overhead for developers.
Formatting Requests and Parameters
Constructing your requests involves setting the correct parameters for the model. The API supports standard parameters like temperature, top_p, stop sequences, and seed. These parameters allow you to control the creativity and determinism of the output. The temperature parameter adjusts the randomness of the predictions. A higher value makes the output more creative, while a lower value makes it more focused. The top_p parameter controls the diversity of the output by filtering tokens based on cumulative probability. You can also specify stop sequences to halt generation when certain text is encountered. The seed parameter allows for reproducible results, which is useful for testing. The model has a context window of 100,000 tokens, which includes both the prompt and the completion. This large window allows for extensive conversation history or long document processing. You can send streaming responses over Server-Sent Events (SSE). This allows you to receive tokens as they are generated, improving the user experience. The usage information is included in the last chunk of the stream. Function calling is also supported, allowing the model to invoke tools. This is useful for building agents that can interact with external systems. JSON mode is available to ensure the output is valid JSON. This is critical for applications that parse the response programmatically. The penalties parameter allows you to adjust the frequency and presence penalties. These help control repetition and unwanted topics. Understanding these parameters helps you fine-tune the model's behavior. You should experiment with different values to find the best balance for your use case. The flexibility of the API allows for a wide range of applications. From simple chatbots to complex data extraction tools, the parameters provide the necessary control.
Testing Integration with Trial and Paid Credit
Before integrating into production, it is wise to test your integration thoroughly. Every new account comes with $0.50 of trial credit. This allows you to make requests without immediate payment. The trial credit is a great way to verify that your API key works and that your request format is correct. You do not need to provide a card for the trial. This lowers the barrier to entry for testing. Once you have verified the integration, you can top up your account. Top-ups are crypto-only, accepting USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500. You can top up any whole amount within this range. There is a bonus credit system for larger top-ups. Top-ups of $50 or more receive a bonus, ranging from +5% to +15%. This bonus credit is added to your balance immediately. The paid credit never expires, so you can use it whenever you need it. There are no monthly fees or subscriptions. You pay only for the tokens you use. Errors and refusals are free, which means you are not charged for failed requests. This is a significant advantage for testing and development. You can send requests that might fail without worrying about wasting credit. The prepaid model gives you full control over your spending. You can monitor your usage in the dashboard to ensure you do not run out of credit unexpectedly. The simplicity of the payment system makes it easy to manage your budget. You do not need to deal with invoices or bank transfers. The crypto-only approach ensures fast and secure transactions. It also aligns with the uncensored nature of the service, offering a degree of financial privacy.
Handling Errors and Rate Limits
Reliable error handling is essential for a reliable integration. The API returns specific HTTP status codes to indicate the result of your request. A 401 error indicates an invalid or missing API key. This is an authentication issue that you must resolve by checking your key. A 402 error indicates that you have no credit left. In this case, you need to top up your account before making further requests. A 429 error indicates that you have exceeded the rate limit of 300 requests per minute. This limit is per key, so if you have multiple keys, each has its own limit. To handle rate limits, you should implement exponential backoff in your retry logic. This means waiting longer between retries as the number of retries increases. This prevents overwhelming the server and helps you stay within the limit. It is also important to handle network errors and timeouts gracefully. These can occur due to transient network issues. Retrying these errors with a short delay is often effective. The API does not have an SLA, so you should design your application to be resilient. Do not rely on guaranteed uptime or speed. The uncensored model may refuse certain requests, such as those involving sexual content with minors. These refusals are free and do not consume credit. You should check the response body to see if a refusal occurred. This allows you to handle refusals differently from errors. The simplicity of the error codes makes it easy to debug issues. You can log the status code and the response body to understand what went wrong. This information is valuable for troubleshooting. It helps you identify whether the issue is with your key, your credit, or your request format. Proper error handling ensures a smooth user experience. It prevents your application from crashing or behaving unexpectedly. It also helps you maintain a good relationship with the API by respecting the rate limits.
When This API Is Not the Right Choice
While our API is powerful for text generation, it is not suitable for every use case. If you need image generation, audio processing, or video creation, this API will not meet your needs. The service is strictly text-in, text-out. There are no embeddings, OCR, or fine-tuning capabilities. If you need to search the web in real-time, this API does not provide that functionality. It is a chat-completions API, not a search engine. If you require model routing to switch between different models, this service only offers one uncensored model. If you need a dedicated SLA for critical production systems, our lack of an SLA might be a concern. The crypto-only payment method may not be suitable for all businesses. If your company requires invoicing or credit card payments, this service may not fit your financial workflow. The absence of named customers or benchmark scores means you cannot rely on social proof from other enterprises. If you need a model that is specifically tuned for a niche domain, the general uncensored model might not be the best fit. You would need to fine-tune the model yourself, which this API does not support. The context window is large, but if you need even larger contexts, you might need a different solution. The price is competitive, but if you need a free unlimited tier, this prepaid model might not be ideal. It is important to evaluate your specific needs before integrating. If your primary need is high-quality, uncensored text generation, this API is an excellent choice. But if you need a broader suite of AI tools, you might need to combine it with other services. Understanding these limitations helps you make an informed decision. It ensures that you use the right tool for the job. This prevents frustration and ensures that your application performs as expected. The simplicity of the service is a strength, but it also means it does not do everything. Be clear about your requirements and choose accordingly.
Addressing Common Developer Questions
Developers often ask about the privacy and scope of uncensored search. Threads on r/ask discuss how to find a good uncensored search engine, highlighting the need for reliable sources. The concern is often about finding a service that truly delivers on its uncensored promise without hidden filters. Another common question arises from discussions on r/WouldYouRather, where users debate the trade-offs of privacy. For example, having your entire uncensored search history made public versus your live bank balance. This highlights the value users place on privacy in the context of uncensored search. Users want to know if their data is safe and if the service respects their anonymity. On r/polls, there are discussions about the consequences of having private data published. This raises questions about data retention and logging. Users want to know if their conversations are stored and how long they are kept. Although we do not make specific claims about logging, the uncensored nature implies a need for trust. Developers also ask about the technical aspects of integration, such as how to handle streaming responses. The ability to stream tokens is a key feature for building responsive chat interfaces. Users want to know how to implement this effectively. Another question is about the cost structure. With the prepaid model, users want to know how to estimate their usage. The ability to top up with crypto and get bonuses is a unique feature that developers appreciate. It allows for flexible spending. The lack of a subscription model is also a point of discussion. Users prefer pay-as-you-go models that do not lock them into monthly commitments. These questions reflect a desire for transparency and control. By addressing these concerns, we can build trust with developers. It shows that we understand their needs and have designed the API to meet them. The focus on text-in, text-out functionality ensures that the service is easy to integrate. The uncensored model provides the freedom to explore creative and controversial topics. This is a key selling point for developers who need flexibility. By answering these questions, we help developers make informed decisions. It reduces the friction of integration and increases the likelihood of successful adoption.
Frequently asked questions
How do I get an API key?
You can sign up using Google or email. The API key is displayed immediately after signup. Store it securely in your environment variables.
What happens if I run out of credit?
You will receive a 402 error. You can top up with USDT on TRC20 or USDC on Base. Credit never expires.
Can I use this API for image generation?
No, this API is text-in, text-out only. It does not support image, audio, or video generation.
Is there a rate limit?
Yes, there is a limit of 300 requests per minute per key. Exceeding this results in a 429 error.