EN ▾
Get API key

Qwen Abliterated API Cost Estimator

Developers often ask how to budget for high-volume uncensored text generation without hidden fees. This article teaches a method for estimating costs using our specific per-million-token rates, including a worked example to help you plan your crypto top-ups and trial usage.

Holographic display showing token flow and crypto coins for API cost estimation

Understanding the Pricing Model

Understanding the pricing model is the first step to managing your budget effectively. Our API operates on a prepaid credit system where you pay only for real token usage. Errors and refusals do not incur charges, which can significantly reduce costs during development and testing phases. This means you are not penalized for malformed requests or content that triggers our hard content limit regarding sexual content involving minors.

The pricing structure is straightforward: $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This model allows you to predict costs based on the volume of text you send and receive. Since there is no subscription fee or monthly charge, your costs scale directly with your usage. You can stop paying at any time by simply not topping up your account.

It is important to note that paid credit never expires. This feature is particularly useful for developers who may have sporadic usage patterns or who want to secure a bulk rate without worrying about losing unused funds. You can top up with crypto only, specifically USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500 per transaction.

For those who want to test the waters, every new account receives $0.50 of trial credit. This allows you to make your first requests without committing to a crypto payment. The key is shown immediately upon signup, either via Google or email and password. This trial credit is a great way to verify integration before diving into paid usage.

Calculating Input and Output Costs

Calculating input and output costs requires a clear understanding of how tokens are counted. The context window for our API is 100,000 tokens, which includes both the prompt and the completion together. This means that the total tokens consumed in a single request cannot exceed this limit. When estimating costs, you need to account for both the text you send and the text the model generates.

To calculate the cost of input tokens, you divide the total number of input tokens by 1,000,000 and multiply by $0.15. For example, if you send 500,000 tokens, the cost is calculated as (500,000 / 1,000,000) * $0.15. This formula ensures that you are only charged for the actual volume of data processed. It is a simple way to budget for large-scale data processing tasks.

Similarly, output tokens are charged at $0.50 per 1 million tokens. The formula for output cost is (output tokens / 1,000,000) * $0.50. Since output tokens can vary based on the model's response length, it is advisable to estimate a range for your expected output. This helps in creating a more accurate budget for your projects. You can also use parameters like temperature and top_p to control the length and variability of the output.

By combining these two calculations, you can estimate the total cost of a request. This method allows you to plan your crypto top-ups more effectively. Since the minimum top-up is $20, you might want to accumulate a certain number of requests before topping up to ensure your credit lasts. This approach minimizes transaction fees and maximizes the utility of your prepaid balance.

Planning Your Crypto Top-Ups

Planning your crypto top-ups is essential for maintaining a smooth workflow. Our API accepts only USDT on the TRC20 network or USDC on the Base network. This restriction means you need to have a compatible wallet and understand the basics of these cryptocurrencies. The minimum top-up amount is $20, and the maximum is $500. You can choose any whole amount within this range.

One advantage of our top-up system is the bonus credit available for larger amounts. If you top up from $50, you may receive a bonus ranging from +5% to +15%. This bonus is added to your balance, effectively reducing your cost per token. For developers with high-volume needs, taking advantage of these bonuses can lead to significant savings over time.

It is important to note that there are no cards, PayPal, or bank transfers accepted. This crypto-only approach ensures fast and borderless transactions. However, it also means you need to manage your crypto assets carefully. You should monitor the value of your USDT or USDC to ensure it covers your planned usage. Since the credit never expires, you can top up when prices are favorable.

When planning your top-ups, consider your projected usage for the next few weeks. If you expect high volume, you might want to top up at the maximum limit to secure any available bonuses. This strategy helps you avoid running out of credit unexpectedly. You can always check your balance in the dashboard to see how much credit you have left.

Using Trial Credit Effectively

Using trial credit effectively is a great way to start with our API. Every new account receives $0.50 of trial credit, and no card is needed to sign up. This allows you to test the API without any financial commitment. You can use this credit to make your first requests and verify that the integration works as expected.

The trial credit is perfect for developers who want to explore the features of our API. You can test different parameters like temperature, top_p, and stop sequences to see how they affect the output. You can also experiment with function calling and JSON mode to ensure your application handles the responses correctly. This hands-on experience helps you identify potential issues before you start using paid credit.

Since the trial credit is small, it is best used for short requests. You can send a few tokens and see how the model responds. This helps you understand the token counting mechanism and the cost structure. Once you are confident in your integration, you can proceed to top up your account with crypto. The key is shown immediately after signup, so you can start testing right away.

It is also worth noting that the trial credit does not expire. You can use it at your own pace. This flexibility allows you to test the API during off-peak hours or when you have spare time. It is a low-risk way to get familiar with the API before committing to a paid top-up. You can always refer to the documentation for more details on the parameters and endpoints.

When Our API Is Not the Right Choice

While our API is powerful for text generation, it is not the right choice for every use case. Our API serves only one uncensored open-weight text model. It does not support embeddings, image, audio, or video generation. If your project requires these additional capabilities, you may need to look for a different solution. Our API is strictly for text in and text out operations.

Additionally, our API does not offer fine-tuning or model routing. If you need to train a custom model or route requests to different models based on specific criteria, our API may not meet your needs. The context window is limited to 100,000 tokens. If you have extremely long documents that need to be processed in a single request, you might need to implement a chunking strategy.

Our API also has a rate limit of 300 requests per minute per key. If you are building an application that requires high-throughput processing, you might need to manage your requests carefully to avoid hitting this limit. You can monitor your usage and adjust your request rate accordingly. This is a common challenge for developers building large-scale applications.

Furthermore, our API does not provide an SLA or certifications like SOC2 or HIPAA. If your application requires strict compliance with these standards, you may need to consider other options. Our API is designed for developers who value uncensored text generation and simplicity. It is a great choice for indie builders and developers who want a straightforward, uncensored text API without the complexity of multiple models and features.

Addressing Common Developer Questions

Developers often ask about the reliability of the API and how to handle errors. Our API returns standard HTTP status codes to help you troubleshoot issues. 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. These codes help you identify and resolve issues quickly.

Another common question is about the quality of the uncensored model. Our model does not refuse lawful adult, fictional, security-research, or controversial topics. This makes it ideal for applications that require diverse and unrestricted content generation. However, we do have a hard content limit regarding sexual content involving minors. Requests that violate this limit are refused, ensuring a safe environment for all users.

Developers also inquire about the availability of streaming and function calling. Our API supports streaming over Server-Sent Events (SSE), which allows you to receive the response in chunks as it is generated. This is useful for applications that display text in real-time. We also support function calling, which allows you to define tools that the model can call. This feature is essential for building interactive applications.

Finally, developers often ask about the ease of integration. Our API is OpenAI-compatible, which means you can use existing SDKs and libraries to interact with it. The base URL is https://api.qwenabliterated.cc/v1. You can use the POST /v1/chat/completions endpoint for standard chat completions. This compatibility reduces the learning curve and allows you to migrate your existing projects with minimal effort.

Optimizing Your Token Usage

Optimizing your token usage is key to maximizing the value of your prepaid credit. Since you pay per token, reducing the number of tokens sent and received can lower your costs. One way to do this is by using efficient prompts. Avoid sending unnecessary context or redundant information in your requests. A concise prompt can often yield the same result with fewer tokens.

Another strategy is to use the stop parameter to limit the length of the output. If you only need a specific piece of information, you can set the stop sequence to halt the generation once that information is provided. This prevents the model from generating extra text that you do not need, saving you on output token costs. You can also use the temperature and top_p parameters to control the creativity and randomness of the output.

Monitoring your usage is also important. You can check your balance and usage history in the dashboard to see how much credit you have left. This helps you plan your top-ups and avoid running out of credit unexpectedly. Since errors and refusals are free, you can experiment with different parameters without worrying about wasting credit. This flexibility allows you to find the optimal settings for your application.

Finally, consider using the JSON mode for structured data extraction. This mode ensures that the output is in a valid JSON format, which can be easier to parse and process in your application. It also helps reduce the number of tokens needed for post-processing. By optimizing your token usage, you can stretch your prepaid credit further and get more value from our API.

Frequently asked questions

How do I top up my account?

You can top up your account with USDT on the TRC20 network or USDC on the Base network. The minimum amount is $20, and the maximum is $500. Credit never expires, and you may receive a bonus for top-ups of $50 or more.

What happens if I run out of credit?

If you run out of credit, you will receive a 402 error on your requests. You can top up your account with crypto to restore your balance. Errors and refusals are free, so you only pay for successful token usage.

Does the trial credit expire?

No, the $0.50 trial credit does not expire. You can use it at your own pace to test the API. It is a great way to verify your integration before making a paid top-up.

Is the API compatible with OpenAI SDKs?

Yes, our API is OpenAI-compatible. You can use existing SDKs and libraries to interact with it. The base URL is https://api.qwenabliterated.cc/v1, and you can use the standard chat completions endpoint.