EN ▾
Get API key

Budgeting FluxNSFW API Costs for Developers

Developers often struggle to predict token usage for uncensored text generation. This article teaches a method to estimate costs using our $0.15 per 1M input tokens and $0.50 per 1M output tokens rates.

Minimalist digital dashboard showing cost estimation graph with floating token shapes

Understanding Our Pricing Model

Our API operates on a simple prepaid credit system. You pay only for the tokens actually used in your requests. This means you are not locked into a monthly subscription or a fixed fee. The model charges $0.15 per one million input tokens and $0.50 per one million output tokens. This structure allows you to control your spending precisely based on your actual usage patterns.

Input tokens include the prompt you send to the model, while output tokens are the generated text. The context window supports up to 100,000 tokens, combining both prompt and completion. This allows for long conversations or detailed document processing without needing to split data into smaller chunks excessively.

Errors and refusals do not consume credit. If your request fails due to a rate limit or an invalid key, you are not charged. This is important for testing your integration. You can send test requests to verify your code without worrying about wasting your prepaid balance on failed attempts.

The prepaid credit never expires. You can top up whenever you need more credit, and the balance remains available for future use. This flexibility is ideal for developers who work on projects with irregular traffic patterns. You do not need to worry about losing unused credit at the end of a billing cycle.

Estimating Input Token Costs

Input tokens are the text you send to the API. This includes your system prompt, user messages, and any additional context. To estimate the cost of input tokens, you need to count the tokens in your prompt. You can use standard tokenization tools to get an accurate count. Once you have the token count, you can apply the pricing formula.

The formula for calculating input costs is straightforward: divide the number of tokens by one million, then multiply by $0.15. For example, if your prompt uses 50,000 tokens, the cost is (50,000 / 1,000,000) * $0.15. This method ensures you know exactly how much each request will cost before you send it.

Long prompts can significantly increase your input costs. If you are processing large documents, consider trimming unnecessary context. You can also use the system prompt to set the model's behavior efficiently. A well-crafted system prompt can reduce the need for repeated instructions in every user message.

Keep in mind that the context window is shared between input and output. If your input uses many tokens, you have less room for output. This trade-off is important to consider when designing your application. You want to maximize the useful information in your prompt without exhausting the context window.

Estimating Output Token Costs

Output tokens are the text generated by the model. These are often more expensive than input tokens. The rate is $0.50 per one million output tokens. This higher cost reflects the computational effort required to generate text. You need to account for this when budgeting for your application.

To estimate output costs, count the tokens in the generated response. You can do this by analyzing the response text. Then, apply the same formula: divide the token count by one million and multiply by $0.50. This gives you the cost for that specific response. You can sum these costs across multiple requests to get your total spending.

Longer responses will cost more. If your application requires detailed explanations, the output tokens will add up quickly. You can control this by setting parameters like max tokens or stop sequences. These parameters help you limit the length of the response, keeping costs predictable.

Streaming responses can also help you manage output costs. With streaming, you receive the response in chunks. This allows you to stop the generation early if the model starts producing irrelevant text. You only pay for the tokens you actually receive, which can save money in some scenarios.

Handling Errors and Refusals

One of the benefits of our pricing model is that errors and refusals are free. If your request fails due to a rate limit, you are not charged. This is important for testing your integration. You can send multiple test requests to verify your code without worrying about wasting your prepaid balance.

Refusals also do not consume credit. If the model refuses to generate a response due to content policies, you are not charged for that request. This is particularly useful for uncensored models, where refusals might be less frequent but still occur. You can be confident that you are only paying for successful generations.

However, you should still monitor your error rates. High error rates can indicate issues with your integration or the API's availability. You can use the error codes to diagnose problems. For example, a 429 error indicates a rate limit, while a 401 error indicates an invalid key.

By understanding how errors are handled, you can better predict your costs. You can allocate a small buffer in your budget for unexpected errors. This ensures that you have enough credit to cover both successful requests and failed attempts.

Top-Up and Payment Methods

Our API accepts cryptocurrency only for top-ups. You can use USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. This limits the number of transactions you need to make, reducing transaction fees.

You can top up any whole amount between $20 and $500. If you top up $50 or more, you may receive bonus credit. The bonus ranges from 5% to 15%, depending on the amount. This is a great way to get more value for your money.

We do not accept credit cards, PayPal, or bank transfers. This means you need a cryptocurrency wallet to top up your account. You can buy crypto from any exchange and transfer it to your wallet. Then, use the wallet address provided by our API to make a top-up.

The prepaid credit never expires. You can top up whenever you need more credit, and the balance remains available for future use. This flexibility is ideal for developers who work on projects with irregular traffic patterns. You do not need to worry about losing unused credit at the end of a billing cycle.

When Our API Is Not the Right Choice

Our API is designed for uncensored text generation. It does not support embeddings, image generation, audio, video, or OCR. If you need these features, our API is not the right choice. You would need to use a different service that offers these capabilities.

Similarly, if you need fine-tuning or model routing, our API does not support these features. You would need to use a service that offers these advanced capabilities. Our API is focused on providing a simple, uncensored text generation experience.

If you need a specific model that we do not offer, our API might not be suitable. We offer one uncensored open-weight model. If you need a different model, you would need to use a service that supports multiple models.

Finally, if you need a service with a specific SLA or certification, our API might not be the best fit. We do not claim specific SLA percentages or certifications. If these are critical for your application, you should consider other options. Our API is best suited for developers who need a simple, uncensored text generation service.

Answering Common Developer Questions

Developers often ask how to predict token usage for uncensored text generation. The key is to estimate the token count for your prompts and responses. You can use standard tokenization tools to get an accurate count. Then, apply the pricing formula to estimate costs.

Another common question is how to handle errors. Our API charges only for successful requests. Errors and refusals are free. This means you can test your integration without worrying about wasting your prepaid balance. You can use the error codes to diagnose problems and adjust your code.

Developers also ask about the context window. Our API supports a 100,000 token context window. This allows for long conversations or detailed document processing. You can use this to process large documents or maintain long conversations without needing to split data into smaller chunks.

Finally, developers ask about the trial credit. New accounts get $0.50 of trial credit. This allows you to test the API without needing to top up. You can use this to verify your integration and estimate costs before committing to a larger top-up.

Frequently asked questions

How do I calculate the cost of a request?

Divide the number of tokens by one million, then multiply by the per-million price. Input tokens cost $0.15 per million, and output tokens cost $0.50 per million. This formula gives you the exact cost for that request.

Are errors charged?

No, errors and refusals are free. You are only charged for successful requests that generate output. This allows you to test your integration without wasting credit.

What payment methods are accepted?

We accept USDT on the TRC20 network and USDC on the Base network. Credit cards, PayPal, and bank transfers are not accepted. You can top up any amount between $20 and $500.

Is there a trial credit?

Yes, every new account gets $0.50 of trial credit. No card is needed to receive this credit. You can use it to test the API and estimate costs before making a top-up.