EN ▾

https://api.minimaxapi.top/v1uncensored

Get API key

MiniMax API Cost Calculator: Budget for Your Tokens

Developers often ask how to predict monthly spend before committing to a provider. This article teaches you to estimate costs using our specific per-million-token rates and a concrete usage example to build a reliable budget.

Digital token counter interface illustrating API cost calculation

Understanding the Pricing Model

Our API uses a straightforward pay-as-you-go model based on token consumption. You pay $0.15 per one million input tokens and $0.50 per one million output tokens. This structure applies to the uncensored open-weight text model identified by the id uncensored. There are no monthly subscriptions, no recurring fees, and no hidden charges for specific features. You only pay for the tokens that are actually processed during successful completions.

Errors and refusals do not consume your prepaid credit. If your request results in a 401 invalid key, 402 no credit, or 429 rate limit error, you are not charged. This means you can test your integration extensively without worrying about burning through your balance on failed attempts. The system charges by real token usage, ensuring you only pay for value delivered.

The model supports a context window of 100,000 tokens, which includes both the prompt and the completion. This large window allows for extensive document processing or long conversation histories in a single request. However, it also means that a single request can consume a significant portion of your credit if the input is very large. Understanding this balance is key to managing your budget effectively.

Payments are accepted via cryptocurrency only. You can top up your account with USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. There are no options for credit cards, PayPal, or bank transfers. This crypto-only approach keeps overhead low and allows for instant credit activation without third-party payment processor delays.

Calculating Your Token Usage

To estimate your costs, you need to understand how tokens are counted. The API charges based on the total number of tokens in the prompt and the completion. A simple way to visualize this is to consider the length of your text. For example, if you send a prompt with 1,000 tokens and receive a completion of 500 tokens, you are charged for 1,500 tokens in total.

The formula for calculating the cost is: (total tokens divided by 1,000,000) times the per-million price. For input tokens, multiply the result by $0.15. For output tokens, multiply by $0.50. This formula allows you to predict exactly how much a specific request will cost before you send it. It helps you avoid unexpected charges and keeps your budgeting process transparent and accurate.

Consider a scenario where you process a large document. If your input is 50,000 tokens and the model generates 2,000 tokens of output, the cost would be calculated separately for input and output. The input cost is derived from the $0.15 rate, while the output cost uses the $0.50 rate. This distinction is important because output tokens are typically more expensive, reflecting the computational effort required to generate the response.

By using this formula, you can build a reliable budget for your project. You can estimate your monthly spend by projecting your daily token usage and applying these rates. This method ensures that you are always aware of your financial commitment to the service. It also allows you to adjust your usage patterns if costs begin to exceed your expectations.

Concrete Usage Example

Let us look at a practical example to illustrate how the pricing works in action. Imagine you are building a chat application where users send short messages and receive concise responses. Each user message might contain 100 tokens, and the model’s response might be 50 tokens. This is a typical interaction for a simple Q&A bot.

If you have 1,000 users each making one request per day, the total daily input tokens would be 100,000. The total daily output tokens would be 50,000. Over a month of 30 days, this amounts to 3,000,000 input tokens and 1,500,000 output tokens. Using our pricing model, you can calculate the exact monthly cost for this volume of traffic.

The input cost for 3,000,000 tokens is calculated by dividing 3,000,000 by 1,000,000 and multiplying by $0.15. This results in a specific dollar amount for input processing. Similarly, the output cost for 1,500,000 tokens is calculated by dividing 1,500,000 by 1,000,000 and multiplying by $0.50. This gives you the total expenditure for generating responses.

This example demonstrates how even moderate usage can add up quickly. By tracking your token counts, you can identify trends and optimize your prompts to reduce input size or limit output length. This proactive approach helps you maintain control over your expenses and ensures that your application remains cost-effective as it scales.

Managing Limits and Errors

Our API enforces a limit of 300 requests per minute per key. This rate limit is designed to ensure fair usage and prevent any single user from overwhelming the system. If you exceed this limit, you will receive a 429 rate limit error. Importantly, these errors do not consume your prepaid credit. This means you can retry your requests without penalty once the rate limit resets.

Understanding these limits is important for designing reliable applications. You should implement exponential backoff strategies in your code to handle rate limits gracefully. This ensures that your application does not spam the API during peak usage times. It also helps you avoid unnecessary errors and maintains a smooth user experience.

Additionally, be aware that errors such as 401 invalid key or 402 no credit are also free. A 401 error occurs when the API key is incorrect or missing. A 402 error indicates that your account has insufficient credit. In both cases, you are not charged for the tokens in the request. This feature allows you to debug your integration without worrying about wasting credits on invalid requests.

By monitoring your rate limits and error rates, you can optimize your API usage. You can adjust your request frequency to stay within the 300 requests per minute limit. You can also ensure that your API keys are correct and that you have sufficient credit to avoid 402 errors. This proactive management helps you maintain a stable and cost-efficient operation.

When This API Is Not the Right Choice

While our API is excellent for text generation, it is important to recognize its limitations. The API serves only one uncensored open-weight text model. It does not support embeddings, image generation, audio processing, or video creation. If your project requires multi-modal capabilities, such as generating images from text or analyzing audio files, this API will not meet your needs.

The API also lacks features like fine-tuning, model routing, and OCR. If you need to customize the model for a specific domain or route requests to different models based on complexity, this service may not be suitable. Additionally, there is no support for search functionality or data retrieval. If your application relies on retrieving specific data from a database, you will need to handle that separately.

Furthermore, the API is text-in, text-out. It does not support streaming for non-SSE protocols or other advanced features that some competitors offer. If you require real-time streaming with specific protocols or advanced error handling mechanisms, you might need to look elsewhere. However, for pure text generation tasks, this API provides a reliable and cost-effective solution.

Before committing to this API, evaluate your project’s requirements. If you need a simple, uncensored text model with a large context window and straightforward pricing, this service is an excellent choice. But if you require multi-modal features or advanced customization, you may need to consider other providers that offer those specific capabilities.

Community Discussions on Pricing

Developers often discuss pricing models and cost efficiency in online communities. Threads on r/LocalLLaMA and r/ClaudeAI frequently feature conversations about how different providers handle token usage and billing. Users share their experiences with various APIs, comparing the cost per token and the value offered by each service.

In these discussions, developers often ask how to predict monthly spend before committing to a provider. They look for concrete examples and calculators that help them estimate costs based on their expected usage. This article aims to provide that clarity by breaking down the pricing structure of our API into simple, understandable components.

Another common topic is the impact of rate limits on cost. Users share their strategies for managing high-volume requests without hitting rate limits. They discuss the importance of implementing backoff strategies and monitoring error rates. These insights help new users understand how to optimize their API usage for both performance and cost.

Finally, developers often compare the cost-effectiveness of different models. They discuss the trade-offs between price and quality, and how to choose the right model for their specific use case. By participating in these discussions, you can gain valuable insights into best practices for managing API costs and ensuring your application remains efficient.

Top-Up and Trial Options

To get started with our API, you can use the free trial credit. Every new account receives $0.50 of trial credit, and no credit card is required to sign up. This allows you to test the API and explore its features without any financial commitment. The trial credit is charged by real token usage, so you can make a few requests to see how the model performs.

When you are ready to top up your account, you can use crypto. The minimum top-up amount is $20, and the maximum is $500. You can pay with USDT on the TRC20 network or USDC on the Base network. There are no options for credit cards, PayPal, or bank transfers. This crypto-only approach ensures fast and secure transactions.

There is also a bonus credit program for larger top-ups. If you top up with $50 or more, you receive a bonus of 5% to 15% extra credit. This bonus is added to your account immediately, giving you more value for your money. It is a great way to maximize your budget and get more out of your API usage.

The prepaid credit never expires, so you can top up whenever it is convenient for you. There are no monthly fees or subscriptions, so you only pay for what you use. This flexibility allows you to manage your budget effectively and avoid paying for services you do not need. It also means that you can pause your usage without losing any credit.

Frequently asked questions

How do I calculate the cost of a request?

Divide the total tokens by 1,000,000 and multiply by the per-million rate. Input tokens cost $0.15 per million, and output tokens cost $0.50 per million.

What happens if I get a 429 error?

A 429 error means you have hit the rate limit of 300 requests per minute. You are not charged for the tokens in that request, so you can retry without losing credit.

Can I pay with a credit card?

No, payments are accepted via crypto only. You can use USDT on TRC20 or USDC on Base for top-ups ranging from $20 to $500.

Does the trial credit expire?

The $0.50 trial credit is charged by real token usage. Prepaid credit never expires, so you can use it whenever you are ready to start your project.