EN ▾

Uncensored LLM API for Developersnsfwroleplay.cc

Get API key
uncensored https://api.nsfwroleplay.cc/v1

Cheap LLM Model API: What You Actually Pay

A cheap LLM model API is one where you can work out the bill before you send the request. Here is the exact math for a prepaid, text-only endpoint at $0.15 per 1M input tokens and $0.50 per 1M output tokens.

Updated

Isometric illustration of coins feeding a terminal with flowing data, representing low per-token API cost

Key points

  1. Input costs $0.15 per 1M tokens and output costs $0.50 per 1M tokens, billed from prepaid credit.
  2. A typical chat turn with a 2,000-token prompt and a 500-token reply costs $0.00055.
  3. Resending long history is the biggest hidden cost, so trim or summarize it.
  4. Failed or refused requests are not charged, and credit never expires.

What cheap means when you pay per token

If you are looking for a cheap LLM model API, the headline price per million tokens is only half of the answer. The other half is how many tokens your application sends and receives, and how often. A chat app that resends a long history on every turn can spend ten times what a one-shot summarizer spends, even at the same rate.

This API charges two numbers: $0.15 per 1M input tokens (everything you send, including the system prompt and history) and $0.50 per 1M output tokens (everything the model writes back). You pay from prepaid credit. There is no subscription, no seat fee and no monthly minimum, and credit never expires. Failed or refused requests are not charged.

The rest of this article turns those two rates into numbers you can plan with. If you want the official rate sheet, it lives on the pricing page.

The formula

Cost per request is simple:

cost = input_tokens * 0.15 / 1,000,000 + output_tokens * 0.50 / 1,000,000

Output is a bit more than three times the price of input per token, so a model that talks a lot costs more than one that reads a lot. For most chat workloads the input side still dominates, because the history grows with every turn while each reply stays roughly the same length.

Here are a few request shapes with the math written out.

Request shapeInput costOutput costPer requestPer 1,000 requests
500 in, 200 out$0.000075$0.0001$0.000175$0.175
2,000 in, 500 out$0.0003$0.00025$0.00055$0.55
8,000 in, 600 out$0.0012$0.0003$0.0015$1.50
50,000 in, 1,000 out$0.0075$0.0005$0.008$8.00

Check one row by hand. For 2,000 in and 500 out: 2,000 times 0.15 divided by 1,000,000 is $0.0003, and 500 times 0.50 divided by 1,000,000 is $0.00025. Add them and you get $0.00055.

What a $20 top-up buys

The smallest top-up is $20, and you can add any whole amount up to $500. Using the 2,000-in, 500-out shape at $0.00055 per request, $20 covers about 36,000 requests ($20 divided by $0.00055 is roughly 36,363). The heavier 8,000-in, 600-out shape at $0.0015 per request gives you about 13,000 requests from the same $20.

Larger top-ups add a bonus on top of the credit:

  • From $50: +5%, so $50 becomes $52.50 of credit.
  • From $100: +10%, so $100 becomes $110.
  • From $200: +15%, so $200 becomes $230.

The bonus lowers your effective rate. At the $200 tier you receive $230 of credit, so the effective input price is about $0.13 per 1M tokens and the effective output price is about $0.43 per 1M. If you already know you will use the API every week, one larger top-up is cheaper than several small ones. Payment is in crypto (USDT on TRC20 or USDC on Base).

Where the money actually goes

Most surprise bills have the same three causes. None of them is about the rate.

Resending history

Chat completions are stateless. Every turn, you send the whole conversation again. A conversation that reaches 20,000 tokens of history costs 20,000 input tokens on the next turn, and 20,000 plus the reply on the turn after. Over a long session the history can cost far more than the replies.

A long system prompt

A 3,000-token system prompt is paid for on every request. At 10,000 requests that is 30 million input tokens, or $4.50, before a single user message. It is not a lot, but it is a fixed tax worth trimming.

Unbounded replies

Output costs more per token. If your application only needs a paragraph, say so in the prompt and set max_tokens. The parameter is optional here, and without it the completion can use whatever remains of the 100,000-token window.

Keeping the bill small in code

You can read the remaining balance from the X-Balance-USD response header and compute the cost of each call from the usage block. This Python example does both with the standard OpenAI SDK.

from openai import OpenAI

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

IN_RATE = 0.15 / 1_000_000
OUT_RATE = 0.50 / 1_000_000

raw = client.chat.completions.with_raw_response.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "Answer in at most three sentences."},
        {"role": "user", "content": "Explain what a context window is."},
    ],
    max_tokens=200,
)

completion = raw.parse()
usage = completion.usage
cost = usage.prompt_tokens * IN_RATE + usage.completion_tokens * OUT_RATE

print(completion.choices[0].message.content)
print(f"cost: ${cost:.6f}")
print("balance:", raw.headers.get("X-Balance-USD"))

Log that cost line per request for a week and you will know your real average. It is the fastest way to replace guesses with a budget.

To keep history under control, cap it. A simple rule is to keep the system prompt plus the last N messages, and replace older turns with a short summary that you generate once and reuse.

def trim(messages, keep_last=12):
    system = [m for m in messages if m["role"] == "system"]
    rest = [m for m in messages if m["role"] in ("user", "assistant")]
    return system + rest[-keep_last:]

A quick budget template

Before you build, write down four numbers: requests per day, average input tokens, average output tokens, and days in the month. Then the monthly bill is requests times days times the per-request cost. A small companion app with 400 requests a day at the 2,000-in, 500-out shape costs 400 times $0.00055, which is $0.22 a day, or about $6.60 over 30 days. A busier service with 5,000 requests a day at the 8,000-in, 600-out shape costs 5,000 times $0.0015, which is $7.50 a day, or $225 over 30 days.

The second number looks large next to the first, and it shows where to work. Moving that service from 8,000 to 4,000 input tokens per request, by trimming history, drops the per-request cost from $0.0015 to $0.0009 (4,000 times 0.15 divided by 1,000,000 is $0.0006, plus the same $0.0003 of output). That saves $3.00 a day. Cutting input is usually the cheapest optimization you have, and it also makes replies faster.

Cheap does not mean limited

The price is for one model, so it helps to know what you get. Requests go to POST /v1/chat/completions, with the model ID uncensored. You get streaming, tool calling, JSON mode, and a 100,000-token context window shared between prompt and completion. A full key allows 8 concurrent requests and 300 requests per minute, and a trial key allows 2 and 60. The full list is in the quickstart docs.

One practical point about cost and streaming: a streamed request holds its concurrency slot until the stream ends, and usage is reported at the end. If you run several long streams at once you may hit the concurrency limit well before you spend much money.

If you are testing before you put money in, new users can claim $0.50 of trial credit with one click on the API key page after sign-up. It needs no payment method and is valid for 7 days. At $0.00055 per request, $0.50 covers about 900 requests of the 2,000-in, 500-out shape.

When this is not the cheapest option

Be honest about the fit. This is a text-only API: no images, audio, video, embeddings or fine-tuning. If you need embeddings for search, you will pay another service for those. It is also one open-weight model run by an independent provider, not a router across vendors, so if you need a particular vendor's model, this is not it.

If your goal is the lowest possible price for a task that any model can do, such as classification of harmless text, compare several providers and check their current pricing before you decide. The case for this API is narrower: a predictable per-token bill, no subscription, and a model that does not refuse lawful adult requests, which matters for fiction and roleplay apps. If a request fails or is refused, you are not charged for it. If you run into odd errors, the troubleshooting page covers the common ones.

Questions and answers

How much does 1 million tokens cost?

One million input tokens cost $0.15 and one million output tokens cost $0.50. A workload that sends 1M tokens in and receives 1M tokens out costs $0.65.

Is there a subscription or monthly minimum?

No. You top up prepaid credit with any whole amount from $20 to $500 and spend it per token. Credit never expires.

Am I charged for failed requests?

No. Failed or refused requests are not charged.

Can I try it before paying?

Yes. New users can claim $0.50 of trial credit with one click on the API key page. It is valid for 7 days, needs no payment method, and is limited to one per person.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Start with trial credit

Email and password, key on screen right away.