EN ▾
Try with trial credit

Integrating the Uncensored Text API

Connecting an uncensored AI API to your application requires understanding the specific payload structure and error handling mechanisms. This guide covers the essential steps for developers using standard SDKs to ensure reliable text-in, text-out functionality.

Developer workspace with code and chat interface for API integration

Setting Up Your Environment

This site is an independent service and is not affiliated with F Filter Without AI.

Before you can send any requests, you need to establish the basic connection parameters for our API. The base URL for all endpoints is https://api.filterwithoutai.com/v1. This is the foundation upon which all other interactions are built. You will need to include this base URL in your SDK configuration or HTTP client setup.

Your API key is the primary credential for authentication. You can obtain this key by signing up with Google or using an email and password combination. The key is displayed immediately upon registration, so make sure to copy it securely. This key must be included in the Authorization header of your requests.

Our API supports standard OpenAI-compatible endpoints, which means you can likely use existing SDKs with minimal modification. The primary endpoints you will interact with are POST /v1/chat/completions and POST /v1/responses. Additionally, you can use GET /v1/models to verify available model configurations.

It is important to note that this service is hosted and independent. It does not serve as an official partner or reseller for any other major vendor. When configuring your environment, ensure that your SDK is pointed specifically to our base URL to avoid routing issues or unexpected behavior from other providers.

Constructing the Payload

When sending requests to our API, the payload structure is straightforward. You are dealing with a text-in, text-out model, which simplifies the data you need to send. The model identifier you must send is "uncensored". This ensures that the correct uncensored open-weight text model processes your input.

The payload typically includes parameters such as temperature, top_p, stop sequences, and seed. These parameters allow you to control the randomness and reproducibility of the output. You can also use function calling (tools) and JSON mode if your application requires structured data outputs.

Streaming is supported over Server-Sent Events (SSE). This allows you to receive usage information in the last chunk of the stream. Streaming is particularly useful for real-time applications where you want to display responses to users as they are generated.

Remember that the context window for this API is 100,000 tokens, which includes both the prompt and the completion. This is a generous limit that allows for extensive conversations or large documents to be processed in a single request. Ensure your input fits within this limit to avoid truncation or errors.

Handling Errors and Limits

Effective error handling is important for a smooth user experience. Our API returns specific HTTP status codes to indicate the status of your request. A 401 error indicates an invalid key, so verify your credentials if you encounter this. A 402 error means you have no credit remaining, and a 429 error indicates that you have hit the rate limit.

The rate limit for this API is 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. It is important to implement exponential backoff or queuing mechanisms in your application to handle these limits gracefully. This prevents your application from overwhelming the API and ensures fair usage.

Errors and refusals are free, which means you are only charged for successful token usage. This is a significant advantage for developers who are testing their applications or handling edge cases. You can experiment with different parameters without worrying about accumulating costs for failed requests.

When debugging, always check the response body for detailed error messages. This will help you identify whether the issue is with your payload, your authentication, or your rate limit status. Proper logging of these errors will aid in troubleshooting and optimization.

Pricing and Credit Management

Understanding the pricing model is essential for budgeting your API usage. Our API charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Credits are prepaid and charged based on real token usage. This means you pay only for what you use, with no hidden fees or monthly subscriptions.

Top-ups can be made using crypto only, specifically USDT on TRC20 or USDC on Base. You can top up any whole amount between $20 and $500. If you top up $50 or more, you receive a bonus credit ranging from +5% to +15%. This bonus can help stretch your budget further.

Your paid credit never expires, so you can accumulate credits over time. This is beneficial for long-term projects or intermittent usage patterns. You can start with a trial credit of $0.50, which requires no card, allowing you to test the API without any financial commitment.

Since payments are crypto-only, there are no cards, PayPal, or bank transfers accepted. Ensure your payment gateway supports these cryptocurrencies before attempting to top up. This model offers flexibility and speed for international users who prefer decentralized payment methods.

When This API Is Not the Right Choice

While our API is powerful for text generation, it is not a universal solution for all AI needs. It is important to recognize its limitations to avoid frustration. Our API serves only one uncensored open-weight text model. It does not support embeddings, image generation, audio, video, or OCR.

If your application requires multi-modal capabilities, such as generating images from text or analyzing audio files, our API will not suffice. You would need to integrate additional services or use a different provider that offers these features. Our API is strictly for text-in, text-out operations.

Additionally, if you need fine-tuning or model routing, our API does not support these features. You cannot fine-tune the model or route requests to different models based on specific criteria. This makes it less suitable for complex enterprise workflows that require dynamic model selection.

Finally, if you require an SLA guarantee or certifications like SOC2 or HIPAA, our API does not currently offer these. It is an independent service focused on providing uncensored text generation. For applications with strict compliance or uptime requirements, you may need to evaluate other options that provide these specific guarantees.

Addressing Community Questions

Developers often ask about finding uncensored AI alternatives for specific languages or use cases. Threads on r/CharacterAi_NSFW frequently discuss the need for uncensored alternatives that support German speakers for pure roleplay scenarios. Our API supports any language since it is a text-in, text-out model, making it suitable for multilingual applications.

Another common question arises in r/grok regarding alternatives after censorship updates. Users look for uncensored image generation and text capabilities. While our API does not generate images, it provides reliable text generation that can be paired with other tools for a complete solution.

In r/ArtificialInteligence, discussions often center on finding no-filter AI models. Our API fits this description by not refusing lawful adult, fictional, or controversial topics. However, it does refuse sexual content involving minors, which is a hard content limit.

When evaluating alternatives, it is important to check the vendor's own documentation for current prices, limits, and features. Our API offers a straightforward integration for text-based uncensored generation, but it may need to be combined with other services for a full-featured experience.

Testing and Deployment Checklist

Before deploying your application, run a comprehensive test suite to ensure everything works as expected. Start by verifying your API key and base URL configuration. Send a simple request to GET /v1/models to confirm connectivity.

Next, test the POST /v1/chat/completions endpoint with various parameters. Check that streaming works correctly and that you receive the usage information in the last chunk. Verify that function calling and JSON mode produce the expected outputs.

Test error handling by simulating invalid keys, insufficient credit, and rate limit scenarios. Ensure your application handles 401, 402, and 429 errors gracefully. Implement logging to capture these errors for future debugging.

Finally, monitor your token usage to ensure you are within your budget. Since credits are prepaid and charged by real token usage, keeping an eye on your consumption will help you manage your credits effectively. This checklist ensures a smooth deployment and a reliable user experience.

Frequently asked questions

How do I get an API key?

You can get an API key by signing up with Google or using an email and password. The key is shown immediately after registration.

What cryptocurrencies are accepted for top-ups?

We accept USDT on TRC20 and USDC on Base. Top-ups range from $20 to $500.

Does the API support image generation?

No, this API is for text-in, text-out only. It does not support image, audio, or video generation.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion.