Budgeting Gemma NSFW API Costs
Developers often ask how to calculate token usage for uncensored text generation without overpaying. This guide shows you how to estimate costs using our $0.15 per million input tokens and $0.50 per million output rates. You will learn to track usage and budget effectively for your projects.

Understanding the Pricing Model
Our API uses a straightforward pay-as-you-go model based on token consumption. You are charged $0.15 for every one million input tokens and $0.50 for every one million output tokens. This means the cost depends entirely on the length of your prompts and the length of the generated responses. There are no monthly subscriptions or hidden fees, which makes it easy to predict your expenses based on actual usage.
It is important to note that errors and refusals do not incur charges. If a request fails or is refused due to content policies, you are not billed for those tokens. This feature protects you from wasting credits on unsuccessful operations. You only pay for the tokens that are successfully processed and returned.
The trial account provides $0.50 of credit, allowing you to test the API without any financial commitment. No credit card is required to sign up, which lowers the barrier to entry for new developers. This trial credit is perfect for initial testing and integration checks before you commit to a larger top-up.
When you are ready to add more funds, you can use crypto payments. We accept USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. There is no upper limit on how much you can add, but each transaction must fall within this range. Paid credit never expires, so you can use it whenever you need it.
Calculating Input Token Costs
Input tokens include the system prompt, user message, and any conversation history sent to the model. Our API charges $0.15 per million input tokens. To calculate the cost, you divide the total number of input tokens by one million and multiply by $0.15. This formula helps you estimate the cost of your prompts before sending them.
For example, if your prompt consists of 10,000 tokens, the cost is calculated as (10,000 / 1,000,000) * $0.15. This results in a very small fraction of a cent. However, as your application scales, these costs can add up quickly. It is essential to monitor your input token usage to avoid unexpected charges.
Long conversations with extensive history can significantly increase input token counts. Each turn in the conversation adds to the total input tokens for the next request. If you are building a chatbot with long memory, you should consider truncating history or summarizing past interactions to reduce token usage.
Our API supports a context window of 100,000 tokens, which includes both prompt and completion. This large window allows for detailed prompts and extensive conversation history. However, using the full context window will increase your input token costs. You should balance the need for context with the cost of processing those tokens.
Calculating Output Token Costs
Output tokens are the words generated by the model in response to your prompt. Our API charges $0.50 per million output tokens. This rate is higher than the input rate, reflecting the computational cost of generating text. To calculate the cost, you divide the total number of output tokens by one million and multiply by $0.50.
For instance, if the model generates 5,000 tokens, the cost is (5,000 / 1,000,000) * $0.50. This calculation helps you estimate the cost of your responses. Since output tokens are more expensive, it is important to optimize your prompts to get the desired response length.
You can control the length of the output using parameters like max_tokens or by setting a stop sequence. By defining clear stop conditions, you can prevent the model from generating unnecessary text. This helps you save on output token costs and ensures that your responses are concise and relevant.
Streaming responses allow you to receive tokens as they are generated. This feature is useful for real-time applications where you want to display text as it appears. However, streaming does not change the total number of tokens generated, so the cost remains the same. You still pay for all output tokens, regardless of how they are delivered.
Estimating Total Costs with Examples
Let us look at a concrete example to estimate total costs. Suppose you send a prompt with 20,000 input tokens and receive a response with 10,000 output tokens. The input cost is (20,000 / 1,000,000) * $0.15, and the output cost is (10,000 / 1,000,000) * $0.50. Adding these together gives you the total cost for this single request.
This example illustrates how input and output costs combine. While the input cost is lower, the output cost is significantly higher. If you are building an application with high-volume usage, you need to account for both costs. Tracking your token usage regularly will help you identify trends and optimize your spending.
You can also use the API's usage statistics to monitor your token consumption. The API provides usage data in the last chunk of streaming responses. This allows you to track token counts in real-time. You can use this data to adjust your prompts or responses to stay within your budget.
Remember that errors and refusals are free. If a request fails, you are not charged for the tokens. This feature is beneficial for testing and debugging. You can experiment with different prompts without worrying about wasting credits. This makes it easier to refine your application before deploying it to production.
When Our API Is Not the Right Choice
Our API is designed for uncensored text generation, but it may not be the right choice for every developer. If you need image, audio, video, or embedding generation, our API does not support these features. We focus solely on text-in, text-out capabilities. If your project requires multimodal outputs, you should look for a different solution.
Similarly, if you need fine-tuning, model routing, or OCR services, our API does not offer these options. We provide a single uncensored open-weight model with the ID uncensored. There is no model routing or fine-tuning available. If you need to switch between different models or train a custom model, our API may not meet your needs.
Additionally, if you require an SLA guarantee, SOC2 certification, or HIPAA compliance, our API does not provide these assurances. We are an independent service and do not claim any specific certifications or uptime guarantees. If your project requires strict compliance or service level agreements, you should verify these requirements with other providers.
Finally, if you prefer to pay with credit cards or PayPal, our API may not be suitable. We only accept crypto payments, specifically USDT on TRC20 or USDC on Base. If you need more traditional payment methods, you should consider other API providers. Our crypto-only approach is designed for users who prefer decentralized payments.
Addressing Common Developer Questions
Developers often discuss how to calculate token usage for uncensored text generation on Reddit. Many users ask about the best ways to estimate costs for long conversations or complex prompts. They want to know how to balance context length with budget constraints. Our API addresses these concerns by providing clear pricing and usage tracking.
Another common question is about the trial credit. Users want to know if they can test the API without spending money. Our API offers $0.50 of trial credit for new accounts, with no credit card required. This allows developers to explore the API's capabilities and integrate it into their projects before committing to a paid top-up.
Users also ask about payment methods and limits. They want to know how to add funds and what the minimum and maximum amounts are. Our API accepts USDT on TRC20 or USDC on Base, with top-ups ranging from $20 to $500. This flexibility allows users to choose the crypto that suits their needs and budget.
Finally, developers inquire about error handling and refusals. They want to know if they are charged for failed requests. Our API does not charge for errors or refusals, which provides a safety net for testing and debugging. This feature ensures that users only pay for successful token usage, making it easier to manage costs.
Optimizing Your API Usage
To optimize your API usage, start by monitoring your token consumption. Use the usage data provided in the streaming responses to track input and output tokens. This real-time data helps you identify patterns and adjust your prompts accordingly. You can also set up alerts to notify you when you approach your budget limits.
Another strategy is to optimize your prompts. Use concise language and avoid unnecessary details in your system prompts. This reduces the number of input tokens, which lowers your costs. You can also use stop sequences to prevent the model from generating excessive output. This helps you control the length of responses and save on output token costs.
Consider using streaming for real-time applications. Streaming allows you to receive tokens as they are generated, which improves the user experience. While streaming does not reduce the total number of tokens, it provides a smoother interaction. You can also use streaming to display partial responses, which can be useful for chatbots and interactive applications.
Finally, take advantage of the trial credit and free errors. Use the trial credit to test different features and parameters without spending money. Experiment with different prompts and responses to find the optimal configuration. Use the free errors to debug your application without worrying about token costs. This approach helps you maximize the value of your API usage.
Frequently asked questions
How do I calculate the cost of a request?
Divide the input tokens by one million and multiply by $0.15. Then divide the output tokens by one million and multiply by $0.50. Add these two values together to get the total cost for the request.
Do I need a credit card to start?
No, you do not need a credit card. New accounts receive $0.50 of trial credit automatically. You can use this credit to test the API before adding funds via crypto.
What happens if a request fails?
Errors and refusals are free. You are not charged for tokens in failed requests. This allows you to test your application without wasting credits on unsuccessful operations.
Can I pay with a credit card?
No, we only accept crypto payments. You can top up your account with USDT on the TRC20 network or USDC on the Base network. The amount must be between $20 and $500.