EN ▾
Get API keyapi.wanuncensored.top/v1

Estimating Wan Uncensored API Costs for Your Project

Developers building high-volume chat bots often struggle to predict their monthly infrastructure spend. This guide provides a clear method for estimating costs using our per-token pricing model and explains how to manage your budget with prepaid crypto credits.

Cyberpunk cityscape with neon lights and a robotic hand holding a data chip

Understanding Our Pricing Structure

Our API charges based on actual token usage rather than a fixed monthly subscription. You pay $0.15 for every one million input tokens and $0.50 for every one million output tokens. This model ensures you only pay for what you use, which is ideal for projects with variable traffic patterns. Errors and refusals do not incur charges, allowing you to test prompts without risking your prepaid balance.

The pricing is straightforward, but it requires you to track token counts rather than just request counts. A single request can consume varying amounts of tokens depending on the length of your prompt and the length of the model's response. By understanding this structure, you can better predict your monthly spend based on your expected volume of conversations.

We do not charge for failed requests or rate limit errors, which means your budget is strictly tied to successful completions. This approach rewards efficient prompt engineering, as shorter, more precise prompts will cost less in input tokens. It also encourages you to optimize your output length if you are concerned about the higher cost of generation tokens.

Since we do not offer a free unlimited tier, every token counts towards your balance. You must preload your account with credit to start using the service. This prepaid model eliminates the risk of unexpected bills at the end of the month, as you can only spend what you have already deposited.

How to Calculate Token Usage

To estimate your costs, you need to understand how tokens are counted. The API uses a context window of 100,000 tokens, which includes both the prompt you send and the completion the model generates. This total count is what determines the charge for that specific request. You can monitor your usage through the response headers, which provide detailed token counts for each interaction.

When you send a prompt, the input tokens are calculated based on the text you provide. This includes any system instructions, conversation history, and the user's message. The longer your context, the more input tokens you consume. It is important to keep your prompts concise to minimize input costs, especially if you are sending frequent requests.

The output tokens are generated by the model and can vary significantly depending on the complexity of the task. Simple responses may use only a few hundred tokens, while detailed explanations or creative writing can consume thousands. Since output tokens are more expensive, you can control costs by setting appropriate limits on the maximum length of the response.

You can use the formula (tokens divided by 1,000,000 times the per-million price) to estimate the cost of a single request. For example, if a request uses 500,000 input tokens and 200,000 output tokens, you would calculate the cost based on those specific counts. This method allows you to build a precise budget for your project.

Funding Your Account with Crypto

Our API accepts only cryptocurrency for top-ups, specifically USDT on the TRC20 network or USDC on the Base network. You can add any whole amount between $20 and $500 to your account. This restriction simplifies the payment process and reduces transaction fees compared to traditional banking methods. It also allows for quick funding without the need for bank transfers or credit card processing.

We offer bonus credit for larger deposits, ranging from +5% to +15% for amounts of $50 or more. This bonus can help you stretch your budget further, especially if you are running a high-volume project. The bonus is added to your prepaid balance, giving you more tokens to work with for the same initial investment.

Unlike many competitors, we do not accept credit cards, PayPal, or bank transfers. This means you must have a cryptocurrency wallet to fund your account. The process is straightforward: you send the specified amount of USDT or USDC to the provided address, and the credit is added to your account automatically. This method ensures fast and secure transactions without the hassle of chargebacks or fraud disputes.

Your paid credit never expires, so you can top up when prices are favorable or when you anticipate a spike in usage. This flexibility allows you to manage your cash flow more effectively. You can also monitor your balance in real-time to ensure you have sufficient funds for your ongoing projects.

Managing Your Budget Effectively

Effective budget management starts with tracking your token usage closely. Since you are charged per token, small inefficiencies can add up over time. It is important to review your usage patterns regularly to identify areas where you can optimize your prompts. For instance, you might find that you are sending redundant context that could be trimmed without affecting the model's performance.

Using the trial credit of $0.50 is a great way to test the API without risking your main balance. This allows you to experiment with different prompts and settings to find the most cost-effective approach. You can also use the trial to verify that the API meets your technical requirements before committing to a larger top-up.

Set a monthly budget based on your expected traffic and calculate the maximum number of tokens you can afford. If you reach your limit, you can top up your account at any time. Since there are no monthly fees, you only pay for the tokens you use, which makes it easy to adjust your spending based on your project's needs.

Consider using the streaming feature to get partial responses. This can be useful for real-time applications where you want to display text as it is generated. However, keep in mind that streaming does not reduce the total token count, so your costs will remain the same. Use streaming to improve user experience without increasing your budget.

When Our API Is Not the Right Choice

While our API is excellent for text-based conversations, it may not be the right choice for projects requiring multimodal capabilities. We do not offer image, audio, or video generation, so if your application needs to create or process media files, you will need to integrate with other services. Our API is strictly text-in, text-out, focusing on high-quality language model interactions.

If you need advanced features like embeddings for semantic search or fine-tuning for custom model behavior, our API does not currently support these options. You would need to look for a different provider that offers these specific capabilities. Our focus is on providing a reliable, uncensored text generation service with a simple pricing model.

Projects that require on-premises deployment or strict SLA guarantees might also find our hosted service less suitable. We are a third-party API, and while we strive for high availability, we do not offer the same level of control over infrastructure as a self-hosted solution. If you need absolute control over your data and server environment, a dedicated model deployment might be a better fit.

Additionally, if you are looking for a free tier with unlimited usage, our prepaid model may not align with your budget. We charge for every token used, so high-volume projects with tight margins need to carefully monitor their usage. However, for most developers, the flexibility and simplicity of our pricing make it a competitive option.

Addressing Common Developer Questions

Developers often ask about the best way to handle futuristic character generation with cyberpunk themes. Threads on r/CharacterAIrevolution discuss creating grok-style generators that send pictures and videos on request. While our API handles the text generation perfectly, you would need to integrate it with other tools to handle the media components. Our API provides the uncensored text responses that drive the character's personality and dialogue.

Another common question is how to manage rate limits during peak usage. Our API allows 300 requests per minute per key, which is sufficient for most high-volume applications. If you exceed this limit, you will receive a 429 error, and your request will be queued. You can manage this by implementing exponential backoff in your code to handle retries gracefully.

Users also inquire about the difference between the chat completions and responses endpoints. Both endpoints serve the same uncensored model, but they may have slight differences in parameter handling. We recommend using the chat completions endpoint for standard interactions and the responses endpoint for more complex workflows. Both endpoints support streaming and function calling.

Finally, developers often ask how to handle errors. Our API returns specific error codes, such as 401 for invalid keys and 402 for insufficient credit. These codes help you diagnose issues quickly. If you encounter a 429 rate limit error, you can wait and retry. If you get a 402 error, you simply need to top up your account with crypto.

Optimizing for Cost and Performance

To optimize your costs, focus on reducing the length of your prompts. Use system instructions to set the context once, rather than repeating it in every message. This reduces the input token count for subsequent turns in the conversation. You can also use the stop parameter to prevent the model from generating unnecessary text, which saves on output tokens.

Experiment with different temperature and top_p values to find the right balance between creativity and efficiency. Lower values produce more consistent and concise responses, which can reduce the number of tokens needed to convey the same information. Higher values may produce more creative outputs but can also lead to longer, more verbose responses.

Use JSON mode when you need structured data. This can help you parse the response more efficiently and reduce the need for additional text processing. It also ensures that the model outputs only the data you need, which can save tokens by omitting conversational filler.

Monitor your usage regularly to identify trends and adjust your budget accordingly. By understanding how your application uses tokens, you can make informed decisions about when to top up and how to optimize your prompts. This proactive approach ensures that you stay within your budget while delivering a high-quality experience to your users.

Frequently asked questions

How do I calculate the cost of a single request?

You calculate the cost by dividing the total tokens used by 1,000,000 and multiplying 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 specific interaction.

What happens if I run out of credit?

If you run out of credit, you will receive a 402 error. Your requests will fail until you top up your account. You can add funds using USDT on TRC20 or USDC on Base, with amounts ranging from $20 to $500.

Does the trial credit expire?

The trial credit of $0.50 is provided to new accounts and does not expire. However, it is a one-time offer. Your paid credit also never expires, so you can use it at any time.

Can I use the API for image generation?

No, our API is text-only. It does not support image, audio, or video generation. You can use it to generate text descriptions for images, but you will need a separate tool to create the actual images.