EN ▾

Integrating Uncensored Search in Python Apps

Developers often struggle with setting up the correct headers and endpoints for a smooth connection to an uncensored search API. This guide provides a step-by-step integration checklist, including SDK configuration tips and a tested code snippet to ensure reliable text-in, text-out functionality. We focus on the specific mechanics of our service to help you build reliable applications without unnecessary complexity.

Developer workspace with glowing text lines and crypto tokens representing the uncensored search API integration

Setting Up the Base URL and Authentication

The first step in integrating our API is establishing the correct connection parameters. Our service operates as a hosted solution, meaning you do not need to manage server infrastructure or model weights. The base URL for all requests is https://api.uncensoredsearch.top/v1. This endpoint serves the uncensored open-weight text model, ensuring that text goes in and text comes out without additional processing layers. You must use this specific URL to access the API features correctly.

Authentication is handled via API keys, which are generated immediately upon signup. You can create an account using Google or an email and password combination. Once registered, your key is displayed right away, allowing you to start making requests without delay. Keep this key secure, as it grants access to your account and credits. The key is required for every request you make to the API.

When making requests, you must include the API key in the authorization header. This ensures that the server can identify your account and charge the appropriate credits for usage. The API supports standard OpenAI-compatible endpoints, which means you can use familiar libraries and tools in your Python environment. This compatibility reduces the learning curve for developers who have previously worked with other large language model APIs.

It is important to note that our API does not support embeddings, image generation, or audio processing. The focus is strictly on text completion and chat completions. By sticking to the text-in, text-out model, we keep the service lightweight and fast. This specialization allows us to offer competitive pricing and a straightforward integration process for developers who need reliable text generation capabilities.

Understanding Token Pricing and Budgeting

Our pricing model is based on token usage, which provides transparency and control over your costs. The cost is $0.15 per one million input tokens and $0.50 per one million output tokens. This means that the price you pay depends on the length of the prompt you send and the length of the response you receive. You are charged only for the tokens that are actually processed, not for the requests themselves.

To budget effectively, you should estimate the token count of your prompts and expected responses. Most Python libraries provide tools to count tokens accurately. By calculating the token count, you can estimate the cost using the formula: (tokens divided by 1,000,000) times the per-million price. This method allows you to predict costs before making requests, ensuring that you do not exceed your budget unexpectedly.

Errors and refusals are free, which means you are not charged for failed requests or content that does not meet the hard content limits. This feature protects you from unnecessary costs when testing your application or when the model refuses a request due to policy constraints. You only pay for successful completions that are returned to your application.

Prepaid credit is charged by real token usage, and there are no monthly fees or subscriptions. This pay-as-you-go model is ideal for developers who want to avoid recurring costs. Your paid credit never expires, so you can use it whenever you need it. This flexibility allows you to manage your budget according to your project's needs without worrying about losing unused credits.

Configuring Streaming and Function Calling

Our API supports streaming responses over Server-Sent Events (SSE), which allows you to receive text chunks as they are generated. This feature is useful for applications that need to display text in real-time, such as chat interfaces or live dashboards. The streaming response includes usage information in the last chunk, which helps you track token consumption accurately. You can configure your Python client to handle these streaming events efficiently.

Function calling is another powerful feature that allows your application to interact with the model dynamically. You can define tools or functions that the model can call to perform specific tasks, such as retrieving data or performing calculations. This capability enables more complex interactions and automates workflows that require external data or actions. You can define these tools in your request payload to guide the model's behavior.

JSON mode is also supported, which ensures that the model returns structured data that can be easily parsed by your application. This is particularly useful when you need to extract specific information from the model's response. By enabling JSON mode, you can guarantee that the output follows a specific format, making it easier to integrate with your existing codebase.

Parameters such as temperature, top_p, stop sequences, seed, and penalties allow you to fine-tune the model's behavior. Temperature controls the randomness of the output, while top_p influences the diversity of the text. Stop sequences allow you to define specific markers that end the response. These parameters give you precise control over the model's output, enabling you to tailor the results to your application's needs.

Managing Account Funding and Trials

Account funding is handled through cryptocurrency top-ups, specifically USDT on the TRC20 network or USDC on the Base network. You can top up your account with any whole amount between $20 and $500. This range allows you to choose an amount that fits your budget and usage patterns. The top-up process is straightforward, and you can add funds to your account whenever you need to.

Bonus credit is available for top-ups of $50 or more, ranging from +5% to +15% extra credit. This bonus incentivizes larger top-ups and provides additional value for your money. The bonus credit is added to your account automatically, allowing you to use it for requests immediately. This feature helps you maximize your budget and extend the life of your account.

Every new account receives $0.50 of trial credit, which requires no card or payment method. This trial credit allows you to test the API and explore its features without any financial commitment. You can use this credit to make requests and see how the model performs with your specific use case. It is a great way to evaluate the API before deciding to top up your account.

Payments are accepted only in crypto, so there are no options for credit cards, PayPal, or bank transfers. This payment method ensures fast and secure transactions, and it aligns with the decentralized nature of the service. You can check your account balance and transaction history in your dashboard to keep track of your spending and credit usage.

Handling Errors and Rate Limits

When integrating the API, it is important to handle errors and rate limits gracefully. The API returns specific error codes to help you diagnose issues. A 401 error indicates an invalid key, which means you need to check your authentication credentials. A 402 error means you have no credit left, so you need to top up your account. A 429 error indicates that you have hit the rate limit.

The rate limit is set at 300 requests per minute per key. This limit ensures that the service remains responsive for all users. If you exceed this limit, you will receive a 429 error, and you need to wait before making more requests. You can implement retry logic in your Python code to handle these errors automatically, ensuring that your application does not fail unexpectedly.

It is also important to note the hard content limit regarding sexual content involving minors. Requests that violate this limit are refused, and you will receive an error response. This limit is enforced to maintain the quality and appropriateness of the service. You should design your application to handle these refusals gracefully, perhaps by notifying the user or adjusting the input.

By understanding these error codes and limits, you can build a more reliable application that handles issues effectively. Implementing proper error handling and retry mechanisms will ensure that your users have a smooth experience, even when technical issues arise. This proactive approach helps maintain the reliability of your application.

When This API Is Not the Right Choice

While our API is powerful for text generation, 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. The service is focused strictly on text, so you would need to integrate other tools for multimodal capabilities. This specialization means that you get the best possible text output, but you must handle other media types separately.

If you require fine-tuning of the model to adapt it to your specific domain, our API does not offer this feature. The model is fixed, and you cannot train it on your own data. This is a trade-off for the simplicity and speed of the service. If you need a model that learns from your data, you might need to look for a different provider that offers fine-tuning options.

Additionally, if you need model routing to switch between different models based on the task, our API does not support this. You are always connected to the uncensored open-weight text model. This is ideal for consistent behavior, but it means you cannot experiment with different models within the same request. If model diversity is important for your application, this limitation might be significant.

Finally, if you need on-premises deployment for data privacy or control, our hosted service may not fit your needs. All data is processed on our servers, so you must trust our infrastructure with your input and output. If you require complete control over the data lifecycle, you might need to consider a self-hosted solution. However, for most developers who need reliable text generation, this hosted service offers a great balance of ease and performance.

Developers and users often discuss privacy concerns related to search engines and data retention. On Reddit threads, users frequently ask about the best uncensored search engines and how to protect their search history. Some users wonder if there are single onion search engines that provide uncensored results without compromising privacy. These questions highlight the importance of understanding how data is handled in different services.

Another common topic is the trade-off between convenience and privacy. Users often debate whether they would prefer their entire uncensored search history to be made public or their live bank balance to be exposed. These discussions emphasize the value users place on their digital footprint and the potential risks of using online services. It is important to consider these factors when choosing a search engine or API for your application.

When integrating our API, you should be aware that it is a text-generation service, not a search engine in the traditional sense. While it can generate text based on prompts, it does not index the web or provide real-time search results. Users looking for a search engine to browse the web should check the documentation of dedicated search vendors for current features and limits. Our API complements these tools by generating text based on the data you provide.

By understanding these community concerns, you can design your application with privacy and user trust in mind. Clearly communicating how data is used and stored can help users feel more comfortable with your service. This transparency is important for building a loyal user base, especially in an era where data privacy is a top priority for many users.

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, allowing you to start using the service without delay.

What happens if I run out of credits?

You will receive a 402 error. You can top up your account with USDT on TRC20 or USDC on Base, with amounts ranging from $20 to $500.

Does the API support image generation?

No, the API is focused on text generation only. It does not support images, audio, video, or embeddings. You need to use other tools for those capabilities.

Is there a free trial available?

Yes, every new account gets $0.50 of trial credit, which requires no card or payment method. This allows you to test the API before funding your account.