EN ▾
Create key

AI UncensoredJournal

OpenAI-compatible API for uncensored text generation

Cheap OpenAI Compatible API: How to Compare Real Cost

A cheap OpenAI compatible API is only cheap if the per-token rate, your prompt sizes and the model quality line up with your workload. This article shows the math with real numbers from a $0.15 input and $0.50 output rate per 1M tokens.

Last updated

Summary

  • Price per 1M tokens is split into input and output; your bill depends on the mix.

  • At $0.15 input and $0.50 output, a 2,000 in / 400 out chat message costs $0.0005.

  • Cheap does not mean equal: this is one open-weight model, not a top-tier frontier model.

  • Compare other providers with the same formula and check their current pricing.

Coins flowing through a glass pipeline into a meter, illustrating per-token API cost

What cheap means for a token API

Every OpenAI-style API bills tokens twice: once for what you send (input) and once for what the model writes back (output). A rate quoted as one number can hide that split, so the first step is always to write both numbers down. Here they are $0.15 per 1M input tokens and $0.50 per 1M output tokens, pay as you go from prepaid credit, with no subscription and no expiry on the balance.

The formula you will reuse for every provider:

from openai import OpenAI

client = OpenAI(base_url="https://api.aiuncensoredthe.com/v1", api_key="YOUR_KEY")

def cost(input_tokens, output_tokens, in_price=0.15, out_price=0.50):
    return input_tokens / 1_000_000 * in_price + output_tokens / 1_000_000 * out_price

print(cost(2000, 400))   # 0.0005
print(cost(20000, 1000)) # 0.0035

r = client.chat.completions.create(model="uncensored", messages=[{"role": "user", "content": "Hi"}])
print(cost(r.usage.prompt_tokens, r.usage.completion_tokens))  # your real figure

Put another provider's published rates into in_price and out_price and you get a like-for-like number for your own traffic. Their prices change, so check their current pricing instead of trusting a table from a blog post, including this one.

Three workloads, calculated

Averages hide a lot. Three common shapes give very different bills.

A chat bot with short history

2,000 input tokens and 400 output tokens per message. Input: 2,000 / 1,000,000 x $0.15 = $0.0003. Output: 400 / 1,000,000 x $0.50 = $0.0002. Total $0.0005 per message, so 10,000 messages cost $5.00.

Question answering over retrieved documents

20,000 input tokens (the question plus pasted context) and 1,000 output tokens. Input: $0.0030. Output: $0.0005. Total $0.0035 per query, so 1,000 queries cost $3.50. Here input dominates, which is where a low input rate helps most.

Batch classification

500 input tokens and 20 output tokens per item. Input: $0.000075. Output: $0.00001. Total $0.000085 per item, so 100,000 items cost $8.50.

WorkloadTokens in / outCost per callCost per volume
Chat bot2,000 / 400$0.0005$5.00 per 10,000
Document Q&A20,000 / 1,000$0.0035$3.50 per 1,000
Classification500 / 20$0.000085$8.50 per 100,000

Blended price depends on your input-to-output ratio

Because the two rates differ, a single "average price" only makes sense for a given mix. Suppose your app sends 5 input tokens for every output token. For every 6 tokens, the cost is 5 x $0.15 + 1 x $0.50 = $1.25 per 1M units, which averages to about $0.208 per 1M tokens. At a 10 to 1 mix the average is (10 x $0.15 + $0.50) / 11 = about $0.182 per 1M. At an even 1 to 1 mix it is $0.325 per 1M.

Use this when you compare with a provider that quotes a single blended number: convert both to your own ratio first. Retrieval and agent workloads sit at 10 to 1 or higher. Creative writing tools may be close to 1 to 1, and there the output rate matters most.

Where a lower rate does not help

Price per token is one input. Three other factors can erase the saving.

  • Retries. A cheap model that needs two attempts per task costs double. Failed or refused requests are not charged here, but a wrong answer that passes as a success still is.
  • Prompt length. Padding a prompt with long rules to coax a weaker model gets expensive on the input side. Measure the whole prompt, not the question alone.
  • Human review time. If a person must fix every output, the token price is a rounding error next to their hourly cost.

This is why a price comparison without a quality test on your own prompts is only half an answer.

A table to fill in for each option

Copy this into a note, add a row for every provider on your shortlist, and fill it with their published numbers on the day you decide. Only the first row is filled here, because other providers change prices often and you should check their current pricing yourself.

OptionInput per 1MOutput per 1MMinimum spendExpiryPayment methods
This API$0.15$0.50$20 top-upCredit never expiresUSDT on TRC20, USDC on Base
Provider Bcheckcheckcheckcheckcheck
Provider Ccheckcheckcheckcheckcheck

Add two more columns that people forget: context window and rate limits. A cheap rate with a small context forces you to split work into more calls, and a low request cap slows a batch job more than any price difference saves.

Cheap habits that apply to any provider

Rates matter less than how many tokens you send. Four habits cut the bill on any OpenAI-style API:

  1. Resend only the recent part of the chat history and summarize the rest.
  2. Set max_tokens to what the product needs. It is optional here, but a cap prevents a runaway reply from costing 10 times the usual amount.
  3. Keep the system prompt short and move rarely used rules into a second prompt only for those cases.
  4. Do not call the model for work your code can do, such as formatting, regular expressions or lookups.

Apply those four to the 2,000 in / 400 out chat example. Keep 1,000 input tokens and cap replies at 250: 1,000 / 1,000,000 x $0.15 + 250 / 1,000,000 x $0.50 = $0.00015 + $0.000125 = $0.000275. That is 45% below $0.0005 and the user usually sees little difference.

Quality: be honest about the trade

The service runs one open-weight model from an independent provider, tuned to answer without content refusals for lawful adult use. It is not the official API of Meta, Mistral, Qwen, DeepSeek, OpenAI, Google or Anthropic, and it is not a router that picks the best model per request. For hard multi-step reasoning, large-codebase edits or tasks where you need the strongest model available, a frontier model at a higher price may be the better fit.

The cheap tier makes sense when the job is tolerant: fiction and roleplay, drafting, summarizing, extraction, classification, chat features, and any task where an answer other APIs refuse is the whole point. Run 20 of your real prompts through both options and score the results before you commit volume.

Other costs that belong in the comparison

A fair comparison includes the terms around the rate:

  • Minimum spend. Top-ups here are any whole amount from $20 to $500. Bonuses apply: +5% from $50, +10% from $100, +15% from $200.
  • Expiry. Credit never expires, so an unused balance is not lost at the end of the month.
  • Payment method. Crypto only: USDT on TRC20 or USDC on Base. If that does not suit you, say so now rather than after signing up.
  • Rate limits. A full key gets 8 concurrent requests and 300 per minute. A trial key gets 2 and 60. If you need much higher throughput, test whether that fits.
  • Context window. 100,000 tokens, prompt plus completion.

The pricing page has the current rates and the bonus tiers in one place.

Try it on your own traffic

Measure instead of guessing. Every response carries the X-Balance-USD header, so you can run a test batch and read the exact spend. New accounts can claim $0.50 of trial credit from the API key page; at the chat-bot shape above that covers about 1,000 messages.

curl -i https://api.aiuncensoredthe.com/v1/chat/completions \
  -H "Authorization: Bearer $UNCENSORED_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "uncensored", "max_tokens": 200, "messages": [{"role": "user", "content": "Summarize the plot of Hamlet in three sentences."}]}'

Look at the X-Balance-USD value before and after a batch and divide. If you are moving an existing app, the docs show the base URL change, and the developer guide covers when an unfiltered model is the right choice at all.

Common Questions About NSFW AI

Is the model truly uncensored? Yes, it does not refuse lawful adult, fictional, or controversial topics. Does it involve sexual content with minors? Requests involving minors are always refused. This is a hard limit. Can I use the OpenAI SDK? Yes, it is fully compatible. You just update the base URL and model id. Is there a free tier? No, but new accounts get $0.50 in trial credit for seven days. How do I pay? Crypto only: USDT (TRC20) or USDC (Base). Amounts range from $20 to $500. Bonus credit is included. Does the API support streaming? Yes, via Server-Sent Events. You can receive tokens in real-time. Is JSON mode supported? Yes, use response_format json_object. Are there rate limits? 300 requests per minute. Eight concurrent requests per key.

Common questions

How much does one message cost?

A message with 2,000 input tokens and 400 output tokens costs $0.0005 at $0.15 and $0.50 per 1M tokens. Ten thousand such messages come to $5.00.

Is there a monthly fee?

No. You pay from prepaid credit as you use tokens, and the credit never expires.

Are failed requests billed?

No. Failed or refused requests are not charged.

Is it as capable as the most expensive models?

Not for every task. It is one open-weight model, so test your own prompts, and pick a stronger model for work that needs top-tier reasoning.

Unlock your API key

Register, retrieve your key, and update your endpoint. Minimal configuration required.

Start with trial credit

Simple login. Key displayed immediately.