Budgeting Text API Costs: A Developer's Guide
Developers often ask how to predict monthly spend for high-volume, uncensored text generation without hidden fees. This article teaches a method to estimate costs using per-million-token pricing and a worked example to help you budget effectively for your specific use case.

Understanding Per-Million-Token Pricing
When building applications with large language models, understanding the pricing structure is the first step to accurate budgeting. Our API uses a straightforward per-million-token model for both input and output. This means you pay for the tokens you send to the model and the tokens it returns. The input price is $0.15 per million tokens, while the output price is $0.50 per million tokens. This distinction is important because output tokens often cost more due to the computational effort required to generate them.
Unlike some providers that charge per request or have complex tiered pricing, this model scales linearly with usage. You only pay for the tokens actually processed. Errors and refusals are free, which means you do not pay for tokens that are sent but not completed due to a network issue or a policy refusal. This can significantly reduce costs for applications with high failure rates or strict filtering.
To estimate your costs, you need to count the tokens in your prompts and the expected length of the responses. Most SDKs provide a way to count tokens before sending a request. By multiplying the token count by the respective per-million price, you get the exact cost for that request. This transparency allows you to set precise limits in your application to control spending.
It is important to note that this pricing applies only to text generation. There are no additional charges for streaming, function calling, or JSON mode. These features are part of the core API and do not incur extra fees. This simplicity makes it easier to predict costs for complex applications that rely on structured outputs or real-time streaming.
Estimating Token Usage for Your Use Case
Accurate budgeting starts with estimating how many tokens your application will use. Tokens are the basic units of text that the model processes. A token can be a word, a part of a word, or a punctuation mark. The context window of our API is 100,000 tokens, which includes both the prompt and the completion. This large window allows for long conversations and detailed context without cutting off important information.
To estimate your usage, consider the average length of your prompts and responses. For example, if your average prompt is 1,000 tokens and your average response is 500 tokens, you are using 1,500 tokens per request. If you send 10,000 requests per day, you would use 15 million tokens daily. This helps you project monthly costs based on your expected traffic.
Keep in mind that token counts can vary depending on the language and format of your text. English text typically uses fewer tokens per word than languages with complex character sets. Additionally, special characters and formatting can increase token counts. It is best to test your application with real data to get accurate token counts.
You can also use the seed parameter to ensure consistent outputs for testing. This helps you verify that your token estimates are correct before scaling up. By monitoring your actual usage, you can refine your estimates and avoid unexpected costs. This proactive approach ensures that your application remains within budget.
Managed Context and Cost Efficiency
The 100,000-token context window offers significant advantages for cost efficiency. With a large context window, you can include more information in a single prompt, reducing the need for multiple requests. This is particularly useful for tasks that require long-term memory or detailed context. By sending all relevant information in one request, you minimize the number of API calls and reduce overall costs.
However, using a large context window also means you are paying for more input tokens. It is important to balance the amount of context you send with the cost implications. Include only the most relevant information to keep token counts low. This ensures that you are not paying for unnecessary data that the model does not need to process.
Streaming over Server-Sent Events (SSE) can also help manage costs. With streaming, you receive the response in chunks, allowing you to stop the generation if the output becomes irrelevant or too long. This prevents wasting tokens on unnecessary completions. You can also monitor the usage in the last chunk to get a final token count for billing purposes.
Function calling and JSON mode are additional features that can enhance efficiency. By structuring your requests and responses, you can ensure that the model returns exactly what you need. This reduces the need for post-processing and minimizes the risk of errors. These features are included in the base pricing, making them a cost-effective way to improve your application's reliability.
Funding Your Account with Crypto
Funding your account is straightforward with our crypto-only payment system. You can top up with USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500. You can choose any whole amount within this range. This flexibility allows you to add funds as needed without committing to a large upfront cost.
There is no monthly subscription fee, and your prepaid credit never expires. This means you only pay for what you use, and you do not lose any credit if you do not use it. This is particularly beneficial for developers who have variable usage patterns or want to test the API without a long-term commitment.
Bonus credit is available for top-ups of $50 or more. The bonus ranges from 5% to 15%, depending on the amount you add. This bonus credit can be used for any request, including those that require output tokens. It provides a buffer for unexpected usage or testing new features.
Since there are no cards, PayPal, or bank transfers, you need a crypto wallet to fund your account. This method ensures fast and secure transactions. You can top up any time you need more credit, and the funds are immediately available for use. This simplicity makes it easy to manage your budget and avoid surprises.
When This API Is Not the Right Choice
While our API is excellent for uncensored text generation, it may not be the right choice for every developer. If you need embeddings, image generation, audio processing, or video generation, this API does not support those features. It is a text-in, text-out service, so if your application requires multimodal capabilities, you will need to integrate with other services.
Similarly, if you need OCR, fine-tuning, or model routing, this API does not offer those options. You can only send requests to the single uncensored model. If you require access to multiple models or the ability to fine-tune a model for your specific use case, this API may not meet your needs.
Additionally, if you prefer traditional payment methods like credit cards or PayPal, this API may not be suitable. We only accept crypto top-ups, which may be a barrier for some developers. If you need to invoice your clients or use a corporate credit card, this payment model might not align with your financial processes.
Finally, if you need strict SLA guarantees or certifications like SOC2 or HIPAA, this API does not provide those. It is an independent service focused on providing uncensored text generation. If your application requires high availability guarantees or compliance with specific industry standards, you should evaluate other options that offer those features.
Addressing Community Questions on Jailbreaking
Developers often discuss ways to maximize the uncensored capabilities of the model. On Reddit, users share tips for jailbreaking the model to get more unrestricted outputs. One common technique is to enable 'Unhinged Mode,' which some users report provides the most unrestricted experience. This mode can be toggled via specific parameters or prompts to encourage more creative and less filtered responses.
Another strategy mentioned in threads is using specific prompt structures to bypass filters. Users suggest starting with a clear instruction and then providing detailed context to guide the model. This approach helps the model understand the desired tone and style, reducing the likelihood of refusals for controversial or adult topics.
Some users also experiment with different models and parameters to find the best balance between creativity and control. While our API uses a single model, you can adjust parameters like temperature and top_p to influence the output. Higher temperature values can lead to more diverse and unexpected responses, while lower values produce more consistent results.
It is important to note that these techniques are based on user experiences and may vary. The model does not refuse lawful adult, fictional, security-research, or controversial topics, but the output can still be influenced by the prompt structure. Testing different approaches helps you find the best method for your specific use case.
Integrating and Monitoring Your API
Integrating our API into your application is simple with the OpenAI-compatible format. You can use standard SDKs and libraries to make requests. The base URL is https://api.unrestrictedgrok.com/v1, and you can use the same endpoints as the OpenAI API. This compatibility makes it easy to switch between providers or use multiple APIs in your application.
Monitoring your usage is essential for budgeting. You can track the number of tokens sent and received, as well as the cost of each request. Most SDKs provide tools to log this information. By analyzing your usage data, you can identify trends and optimize your application to reduce costs.
Error handling is also important. The API returns specific error codes for common issues. A 401 error indicates an invalid key, while a 402 error means you have no credit left. A 429 error signals that you have exceeded the rate limit of 300 requests per minute. Handling these errors gracefully ensures a smooth user experience.
Finally, take advantage of the trial credit. Every new account gets $0.50 of trial credit, no card needed. This allows you to test the API and estimate costs before funding your account. Use this trial to verify your token counting methods and ensure your application is ready for production.
Frequently asked questions
How do I calculate the cost of a request?
Multiply the number of input tokens by $0.15 per million and the number of output tokens by $0.50 per million. Sum these values to get the total cost for the request.
What happens if I run out of credit?
You will receive a 402 error. You can top up your account with USDT or USDC to add more credit. Errors and refusals are free, so you only pay for successful token usage.
Can I use a credit card to pay?
No, we only accept crypto top-ups. You can use USDT on TRC20 or USDC on Base. There are no cards, PayPal, or bank transfers accepted.
Is there a free tier?
There is no free unlimited tier, but every new account gets $0.50 of trial credit. This allows you to test the API without providing payment details.