EN ▾
Get API key

Avoiding Filter Bloat: Why Raw Text APIs Reduce Costs

Safety layers often add hidden costs to your API bills by injecting extra tokens into every prompt. This article explores how raw text APIs eliminate that overhead, offering a more efficient path for automation and research.

Server rack with glowing blue data streams symbolizing raw text processing

The Hidden Cost of Safety Filters

This site is an independent service and is not affiliated with Mistral AI.

When you use a standard LLM API, you are often paying for more than just the model's intelligence. Safety filters act as an additional layer of processing that sits between your request and the model's response. These filters analyze your prompt for potentially sensitive topics and often inject extra tokens into the context window. This means your input tokens count increases before the model even begins to generate a response.

Furthermore, if the model detects a borderline topic, the safety layer may force a refusal or a lengthy explanation of why it cannot answer. These refusals are not free; they consume output tokens just like a normal response would. For developers running high-volume automation, these extra tokens add up quickly, inflating your monthly bill without providing additional value to your application.

Consider a scenario where you are building a chatbot for internal use. If you send a prompt about a mature theme, the safety filter might trigger, causing the model to output a disclaimer before answering. You pay for the initial prompt, the filter's analysis tokens, and the disclaimer tokens. A raw text API removes this middleman, allowing the model to process your input directly and return the raw output.

This reduction in token usage is not just about saving money; it is also about latency. Fewer tokens mean less time spent processing each request. For real-time applications, this speed difference can be significant. By eliminating the safety layer, you ensure that every token you pay for contributes directly to the content your users see, rather than being wasted on administrative overhead.

How Raw Text APIs Simplify Automation

Raw text APIs provide a straightforward text-in, text-out experience. When you send a request to our API, the model processes your prompt and returns the generated text without any additional commentary or safety disclaimers. This simplicity is important for developers who need predictable outputs for their automation workflows. You can parse the response directly, knowing that it contains only the content you requested.

One key feature of our API is its support for streaming over SSE. This allows you to receive tokens as they are generated, providing a smoother user experience. Since there is no safety layer to interrupt the flow, the streaming experience is consistent and reliable. You can implement your own logic to handle the response, giving you full control over how the content is displayed or processed.

Additionally, our API supports function calling and JSON mode. This means you can structure your requests to get precise, machine-readable outputs. Without the interference of safety filters, the model is more likely to adhere to your specified format. This is particularly useful for developers who need to integrate LLM outputs into databases or other systems where strict formatting is required.

By using a raw text API, you also avoid the unpredictability of safety refusals. In a standard API, a request might be blocked due to a vague safety policy, forcing you to handle errors and retry. With our uncensored model, such refusals are rare, allowing your automation to run smoothly without constant interruptions. This reliability is essential for building reliable applications that depend on consistent LLM performance.

Uncensored Models for Controversial Topics

One of the main advantages of using an uncensored model is its ability to handle controversial or adult topics without unnecessary refusals. Standard models often have strict safety guidelines that can block requests related to mature themes, political opinions, or security research. Our model does not refuse these lawful topics, allowing you to explore a wider range of use cases without worrying about being blocked.

This flexibility is particularly valuable for developers working on creative writing tools, role-playing games, or research applications. You can generate content that might be considered sensitive in other contexts, giving you more freedom in how you design your application. The model remains focused on providing relevant and coherent text, rather than policing your input.

It is important to note that while the model is uncensored, it does have a hard limit on sexual content involving minors. Requests that violate this specific rule will be refused. However, for all other adult or controversial topics, the model will process your request and return a response. This balance allows for broad creative freedom while maintaining a basic standard of safety.

For developers who need to generate content for specific audiences, this uncensored capability can be a big change. You can tailor your application to serve users who prefer unfiltered content, without having to build complex workarounds for safety filters. This direct access to the model's raw output ensures that your application meets the needs of your target audience effectively.

Pricing and Payment Structure

Our API offers a transparent pricing model based on actual token usage. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. There are no monthly subscriptions or hidden fees. This pay-as-you-go structure ensures that you only pay for what you use, making it easy to budget for your projects.

Prepaid credit is charged based on real token usage, and errors or refusals are free. This means you do not lose credit if a request fails or is rejected by the model. Your prepaid credit never expires, so you can use it whenever you need it. This flexibility is ideal for developers who want to manage their costs without committing to a fixed monthly plan.

To add credit, you can use crypto payments, 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 provides additional value for larger investments, allowing you to test the API more extensively or run larger projects.

New accounts start with $0.50 of trial credit, so you can explore the API without any initial investment. The key is shown immediately after signup, allowing you to start making requests right away. This low barrier to entry makes it easy for developers to integrate our API into their workflows and see the benefits of raw text processing firsthand.

When Our API Is Not the Right Choice

While our raw text API offers many advantages, it may not be the best fit for every use case. If you need embeddings, image generation, audio processing, or OCR, our API does not support these features. We focus solely on text generation, so if your application requires multimodal capabilities, you may need to look elsewhere.

Additionally, if you require fine-tuning or model routing, our API does not offer these options. We provide a single uncensored open-weight model, which means you cannot customize the model for specific tasks or switch between different models. For developers who need advanced customization, this limitation might be a drawback.

Our API also does not offer an SLA or certifications like SOC2 or HIPAA. If you are building a enterprise application that requires strict compliance with these standards, our service might not meet your needs. We are an independent service, and we do not claim to meet the same rigorous standards as larger providers.

Finally, if you prefer to pay with credit cards or PayPal, our crypto-only payment system might not be convenient for you. We accept USDT on TRC20 and USDC on Base, so you will need a crypto wallet to top up your account. For developers who are not familiar with cryptocurrency, this could be a barrier to entry.

Addressing Community Concerns on Reddit

Developers on Reddit often discuss the challenges of managing API costs and dealing with safety filters. In threads on r/MistralAI, users ask how to set maximum spending limits to prevent unexpected bills. Our API addresses this by allowing you to monitor your token usage closely, as you pay only for what you use. You can set your own limits in your application to control spending.

On r/startup, developers debate whether they would pay for a reliable, uncensored LLM API. Many users express frustration with the unpredictability of safety filters and the cost of tokens used for refusals. Our API offers a reliable alternative by providing a raw text output that minimizes these issues. Users can appreciate the consistency and transparency of our pricing model.

Some users also mention building their own uncensored APIs to avoid fighting filters. Our API provides a ready-made solution for this, allowing developers to integrate an uncensored model without the overhead of building their own infrastructure. This saves time and resources, enabling developers to focus on their core application logic.

Overall, the community values the ability to control their spending and the reliability of the model. Our API meets these needs by offering a straightforward pricing structure and a consistent output format. Developers can trust that their requests will be processed efficiently, without the surprises of hidden fees or unexpected refusals.

Integrating and Troubleshooting

Integrating our API is straightforward, as it follows the OpenAI-compatible chat-completions format. You can use the same SDKs and libraries you are already familiar with, making it easy to switch to our service. The base URL for our API is https://api.mistralapi.cc/v1, and you can send requests to POST /v1/chat/completions or POST /v1/responses.

When troubleshooting, keep in mind the common error codes. A 401 error indicates an invalid key, while a 402 error means you have no credit left. A 429 error signifies that you have hit the rate limit of 300 requests per minute per key. Understanding these codes helps you diagnose issues quickly and adjust your application accordingly.

You can also use parameters like temperature, top_p, and stop sequences to control the model's behavior. This allows you to fine-tune the output to better suit your needs. For example, you can set a lower temperature to get more consistent results or use stop sequences to end the response at a specific point.

Finally, remember that our API supports streaming over SSE. This allows you to receive tokens as they are generated, providing a smoother user experience. By implementing streaming, you can reduce the perceived latency of your application, making it feel more responsive to users. This feature is particularly useful for chat applications where real-time feedback is important.

Frequently asked questions

How do I top up my account?

You can top up your account using USDT on TRC20 or USDC on Base. The minimum amount is $20, and the maximum is $500. You can also receive a bonus credit when you top up $50 or more.

Does the API support image generation?

No, our API is focused on text generation only. It does not support image, audio, video, or OCR capabilities. You can use it for text-in, text-out tasks.

What happens if I run out of credit?

If you run out of credit, you will receive a 402 error. You can top up your account with crypto to continue using the API. Your prepaid credit never expires.

Can I use the API for commercial projects?

Yes, you can use the API for any lawful purpose, including commercial projects. The model does not refuse adult or controversial topics, making it suitable for a wide range of applications.