MiniMax API Cost Estimator: Budgeting Your Tokens
Developers often ask how to calculate the price for high-volume text generation before committing to a provider. This article teaches a method to estimate costs using our specific per-million-token rates and a worked example of a typical chat loop.

Understanding the Pricing Structure
Our API operates on a straightforward prepaid credit model. You do not pay a monthly subscription fee or a base rental cost for the model. Instead, you purchase credit using cryptocurrency, and the balance is deducted only when you make successful requests. The pricing is split into two distinct categories: input tokens and output tokens. Input tokens are charged at $0.15 per one million tokens. Output tokens, which are the responses generated by the model, cost $0.50 per one million tokens. This structure allows you to predict expenses based on the volume of text you send and receive.
It is important to note that errors and refusals do not consume your credit. If a request fails due to a rate limit or an invalid key, you are not charged for those tokens. This means your budget is only affected by actual text processing. The uncensored model does not refuse lawful adult, fictional, or controversial topics, so refusals are rare and usually tied to specific hard limits like sexual content involving minors. When a refusal occurs, it is free, which can help you save credit during testing phases.
The prepaid system ensures that your credit never expires. You can top up your account at any time, and the remaining balance carries over indefinitely. This is particularly useful for developers who work on projects intermittently. You do not need to worry about losing your funds if you pause development for a few weeks. The credit remains in your account until you decide to use it or withdraw it, providing flexibility for long-term projects.
Payment is accepted only through cryptocurrency. You can top up with USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. If you top up from $50 or more, you may receive bonus credit ranging from +5% to +15%. There are no credit card, PayPal, or bank transfer options. This crypto-only approach keeps transaction fees low and allows for quick funding of your account.
Estimating Token Usage in Chat Loops
When building a chat application, you need to estimate the total token count for each interaction. A typical chat loop involves sending a user message and receiving a model response. The total tokens for a single turn include the system prompt, the history of previous messages, and the current user input. All of these count as input tokens. The model's reply counts as output tokens. To estimate the cost, you sum the input tokens and multiply by $0.15, then add the output tokens multiplied by $0.50.
Consider a simple example where you send a user message of 100 tokens and receive a response of 200 tokens. The input cost is calculated by dividing 100 by 1,000,000 and multiplying by $0.15. The output cost is calculated by dividing 200 by 1,000,000 and multiplying by $0.50. This method allows you to predict the exact cost of each turn. As your conversation history grows, the input tokens will increase, which can significantly impact the total cost over time.
For high-volume applications, the cost of input tokens can become substantial. If you have a long conversation history, each new turn will include all previous tokens in the input. This means the cost per turn increases as the conversation lengthens. To manage this, you might consider truncating the history or summarizing previous turns to keep the input token count manageable. This strategy helps control costs while maintaining the context needed for the model to generate relevant responses.
Streaming the response can also help you estimate costs in real-time. The API supports streaming over Server-Sent Events (SSE). The usage information is included in the last chunk of the stream. This allows you to see the exact number of output tokens generated for a specific request. You can use this data to refine your cost estimates and ensure that your budget aligns with your actual usage patterns.
When Our API Is Not the Right Choice
While our uncensored text API is powerful for many use cases, it may not be the right choice for every developer. If you need embeddings to search through documents, our API does not support this feature. Similarly, if you require image, audio, or video generation, you will need to look elsewhere. Our service is strictly text-in, text-out. We do not offer OCR, fine-tuning, or model routing. If your project relies on these capabilities, our API will not meet your needs.
Another limitation is the context window. Our model supports a context window of 100,000 tokens. This is quite large, but if you need to process documents larger than this, you may need to implement your own chunking strategy. Additionally, if you require an SLA with specific uptime guarantees, our API does not provide one. We are an independent service and do not claim SLA percentages or certifications like SOC2 or HIPAA. If these are critical for your enterprise deployment, you should verify other providers.
The payment method is another factor to consider. We accept only crypto, specifically USDT on TRC20 or USDC on Base. If your team prefers to pay with credit cards or PayPal, you will need to find a different provider. The minimum top-up is $20, which might be too high for small-scale experiments. However, the $0.50 trial credit allows you to test the API without any financial commitment. This is a good way to evaluate if the uncensored model fits your workflow before committing to a larger top-up.
Finally, if you need a model that is specifically optimized for a certain domain, our general uncensored model might not be the best fit. We do not offer specialized models for coding, math, or medical tasks. If you need domain-specific performance, you should look for vendors that offer fine-tuned models. Our API is designed for general-purpose text generation with fewer restrictions on content, making it ideal for creative writing, role-playing, and research applications.
Addressing Community Concerns About Distillation
Recent discussions on Reddit, particularly in threads on r/LocalLLaMA and r/ClaudeAI, have highlighted concerns about industrial-scale distillation attacks. Users are discussing how some companies have been accused of setting up thousands of fraudulent accounts to extract training data from other models. These conversations often mention that Anthropic identified such activities involving several Chinese AI labs. While these discussions focus on other vendors, they raise important questions about data privacy and model integrity in the broader AI ecosystem.
Developers are also debating the ethics of distilling models for open-source use. Some users argue that extracting capabilities from proprietary models is a form of redistribution, while others view it as a way to democratize AI technology. These threads often include comments about how models can accidentally reveal their training data or identify themselves incorrectly. This context is relevant for developers who are building applications that interact with multiple models, as they need to be aware of the potential for data leakage and model behavior changes.
When choosing a provider, it is wise to check the vendor's documentation for current policies on data usage and model behavior. Our API does not claim to be immune to these issues, but our uncensored model is designed to handle a wide range of topics without refusing lawful content. This can be beneficial for developers who need a reliable text generation service without the restrictions of mainstream models. However, you should always review the terms of service to understand how your data is handled.
The discussions on Reddit also touch on the technical aspects of distillation, such as the number of accounts and exchanges involved. Users often share their experiences with VPNs and account cancellations. These anecdotes provide insight into the challenges of maintaining stable access to AI services. By understanding these community concerns, you can make more informed decisions about which API to use for your projects. Our API offers a stable and uncensored alternative for text generation, with clear pricing and no hidden fees.
Integrating Function Calling and JSON Mode
Our API supports function calling, which allows you to define tools that the model can invoke. This is useful for building agents that can interact with external systems, such as databases or APIs. You can define the structure of the function parameters, and the model will return a JSON object that matches this structure. This feature is particularly powerful for automating tasks that require structured data output. You can use the JSON mode to ensure that the model's response is always valid JSON, which simplifies parsing in your application.
To use function calling, you need to provide the function definitions in the request. The model will then decide whether to call a function based on the context. If a function is called, the response will include the function name and arguments. You can then execute the function and pass the result back to the model for further processing. This loop allows the model to perform complex tasks that require multiple steps. It is a key feature for building intelligent assistants that can take actions in the real world.
JSON mode is also available for cases where you do not need function calling but still want to ensure structured output. You can set the response format to JSON, and the model will return a JSON object. This is useful for extracting specific information from text, such as names, dates, or addresses. You can use this feature to build parsers that convert unstructured text into structured data. This is particularly helpful for data analysis and reporting applications.
When integrating these features, it is important to test your functions thoroughly. Make sure that the function definitions are accurate and that the model can understand the parameters. You should also handle errors gracefully, as the model may not always call a function correctly. By using function calling and JSON mode, you can build more reliable and versatile applications that use the power of our uncensored text model.
Managing Limits and Error Codes
Our API has a rate limit of 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. It is important to monitor your usage and implement backoff strategies in your application to avoid hitting this limit. You can also use the streaming feature to reduce the number of requests, as you can send multiple messages in a single session. This helps you stay within the rate limit while still achieving high throughput.
There are three main error codes you might encounter: 401, 402, and 429. A 401 error indicates an invalid key, which means you need to check your API key and ensure it is correct. A 402 error means you have no credit left in your account. In this case, you need to top up your account to continue using the API. A 429 error indicates that you have exceeded the rate limit. You should wait for a period before retrying the request. These errors are free, so you do not lose credit when they occur.
To manage your credit effectively, you should keep track of your usage. You can use the trial credit of $0.50 to test your application before committing to a larger top-up. This allows you to verify that your integration is working correctly without spending any real money. Once you are confident in your setup, you can top up your account with crypto. The minimum top-up is $20, and the maximum is $500. You can receive bonus credit if you top up from $50 or more.
It is also important to handle errors in your application code. You should implement retry logic for 429 errors and prompt the user to top up their account for 402 errors. By managing limits and errors effectively, you can ensure a smooth user experience and avoid unexpected interruptions in your service. Our API is designed to be reliable and easy to integrate, with clear error messages and straightforward pricing.
Getting Started with Trial and Signup
Signing up for our API is simple and fast. You can continue with Google or use an email and password. Once you create an account, you receive an API key immediately. This key is shown on the screen, so you can use it right away. You do not need to link a credit card or verify your identity to get started. This makes it easy for developers to test the API without any friction. The trial credit of $0.50 is added to your account automatically, allowing you to make your first requests without any financial commitment.
With the trial credit, you can explore the API and test different features. You can send messages to the uncensored model and see how it responds. You can also try function calling and JSON mode to see how they work. This is a great way to evaluate if the API meets your needs before deciding to top up your account. The trial credit is a valuable resource for developers who want to experiment with the API without risking any money.
When you are ready to top up, you can use crypto to add funds to your account. The minimum amount is $20, and the maximum is $500. You can use USDT on the TRC20 network or USDC on the Base network. The top-up process is quick and easy, and you can start using your credit immediately. The credit never expires, so you can use it whenever you need it. This flexibility makes our API a great choice for developers who work on projects intermittently.
Remember that our API is uncensored, meaning it does not refuse lawful adult, fictional, or controversial topics. This makes it ideal for creative writing, role-playing, and research applications. However, there is a hard limit on sexual content involving minors. Requests that violate this limit are refused, but they are free. By understanding these limits and features, you can make the most of our API and build powerful applications that use the power of uncensored text generation.
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 exceed the rate limit?
You will receive a 429 error. The request is free, so you do not lose credit. Wait for a period and retry the request.
Can I use a credit card to pay?
No, we only accept crypto. You can top up with USDT on TRC20 or USDC on Base. The minimum amount is $20.
Is the trial credit enough to test the API?
Yes, the $0.50 trial credit allows you to make several requests and test features like function calling and JSON mode without any financial commitment.