EN ▾
Get API key

What a Roleplay Chat Session Costs on a Token API

Roleplay chat online usually means a monthly subscription, but you can also pay per token through an API and only spend when you play. Here is what a session really costs at $0.15 per 1M input tokens and $0.50 per 1M output tokens, with every step of the arithmetic shown.

Updated

Coin jar, balance scale and a scroll of chat bubbles representing the per-session cost of roleplay chat

Key points

  • Input tokens, not replies, drive the cost, because the whole history is resent on each turn.
  • A 40-turn session costs about $0.053 and a 100-turn session about $0.28 in the example below.
  • Keeping only the last 10 exchanges cuts the 100-turn cost to about $0.083.
  • There is no free tier, but new users can claim $0.50 of trial credit, valid for 7 days.

The cost in one table

If you want roleplay chat online on your own terms, the question is what a session costs when you pay per token. The table uses one example story, defined below, at the published prices of $0.15 per 1M input tokens and $0.50 per 1M output tokens.

SessionInput tokensOutput tokensTotal cost
40 turns, full history320,60010,000about $0.053
100 turns, full history1,791,50025,000about $0.28
100 turns, last 10 exchanges only469,85025,000about $0.083

Those figures cover only the model usage. Your frontend, if it is a hosted app, may add its own fees, and a self-run client costs nothing extra. The API bills tokens and nothing else, so the number you compute is the number you pay.

These are small amounts, but they depend on how the session is set up. The next sections explain where the numbers come from, so that you can swap in your own character card and reply length.

Why history makes input the main cost

A chat model has no memory between requests. To continue a story, your frontend sends the character description, every earlier message and your new message. That means turn 30 pays again for turns 1 to 29. Output, the text the model writes, is billed once, but input is billed over and over as it grows.

Output tokens cost more per token ($0.50 versus $0.15 per 1M), yet in a long story the sheer volume of repeated input outweighs them. In the 100-turn example, output is 25,000 tokens costing $0.0125, while input is 1,791,500 tokens costing about $0.27.

The example story, step by step

The assumptions are deliberately ordinary:

  • Character card plus scene setup: 1,500 tokens, sent at the start of every request.
  • Your message each turn: 80 tokens.
  • Model reply each turn: 250 tokens, roughly 180 words.

On turn 1 the prompt is 1,500 + 80 = 1,580 tokens. Each later turn adds one earlier exchange (80 + 250 = 330 tokens) to what is sent. So turn k has a prompt of 1,580 + 330 x (k - 1) tokens.

The 40-turn session

Summing the prompts over 40 turns gives 40 x 1,580 + 330 x (0 + 1 + ... + 39). The second part is 330 x 780 = 257,400, and the first is 63,200, so the total input is 320,600 tokens. Output is 40 x 250 = 10,000 tokens.

  • Input cost: 320,600 x $0.15 / 1,000,000 = $0.04809
  • Output cost: 10,000 x $0.50 / 1,000,000 = $0.005
  • Total: $0.05309, about 5.3 cents

The 100-turn session

Input is 100 x 1,580 + 330 x 4,950 = 158,000 + 1,633,500 = 1,791,500 tokens. Output is 25,000 tokens.

  • Input cost: 1,791,500 x $0.15 / 1,000,000 = $0.268725
  • Output cost: 25,000 x $0.50 / 1,000,000 = $0.0125
  • Total: $0.281225, about 28 cents

The longest prompt in that session, on turn 100, is 1,580 + 330 x 99 = 34,250 tokens, well inside the 100,000-token window.

Trimming history to cut the bill

Most frontends let you limit how many past messages are sent. Suppose you keep only the last 10 exchanges plus the character card. The prompt then stops growing once it reaches 1,500 + 10 x 330 + 80 = 4,880 tokens.

For the 100-turn story, the first 10 turns still grow normally: 10 x 1,580 + 330 x 45 = 30,650 tokens. The remaining 90 turns each send 4,880 tokens, which is 439,200. Total input is 469,850 tokens.

  • Input cost: 469,850 x $0.15 / 1,000,000 = $0.0704775
  • Output cost: $0.0125 (unchanged)
  • Total: about $0.083

That is roughly a third of the full-history cost. The tradeoff is memory: the model forgets what happened more than 10 exchanges ago unless you add a short summary near the top. A summary of 300 tokens adds only 300 x $0.15 / 1,000,000 = $0.000045 per turn, so it pays for itself quickly.

There is a second lever that costs nothing: a tighter character card. A 1,500-token card is resent on every turn, so over 100 turns it accounts for 150,000 input tokens by itself, or $0.0225. Cutting the card to 800 tokens saves 70,000 tokens across the session, about $0.0105. It is a small amount, but the same habit applied to long example dialogues and lore dumps adds up when a session runs for hundreds of turns.

Also look at your reply length. A reply of 500 tokens instead of 250 doubles output cost and also adds to every later prompt. If your story style does not need long replies, a length hint in the system prompt saves money twice.

What $0.50, $20 and a bonus actually buy

Turn those session prices into budgets:

  • Trial, $0.50. At $0.05309 per 40-turn session, that is about 9 sessions ($0.50 / $0.05309 is roughly 9.4). The trial is claimed with one click on the key page, needs no card, is valid for 7 days and is limited to one per person.
  • Minimum top-up, $20. About 376 sessions of 40 turns, or about 71 sessions of 100 turns with full history.
  • $50 top-up. The +5% bonus makes it $52.50 of credit.
  • $100 top-up. The +10% bonus makes it $110.
  • $200 top-up. The +15% bonus makes it $230.

Top-ups can be any whole amount from $20 to $500. Credit never expires, so a heavy month followed by a quiet one does not waste anything. Payment is by crypto (USDT on TRC20, USDC on Base). There is no free tier beyond the trial and no subscription. Failed or refused requests are not charged. The pricing page lists the current terms.

Subscription or API: which fits you

Hosted roleplay sites often charge a flat monthly fee. Check their current pricing before you compare, because plans and limits change. As a rule of thumb, a flat plan suits someone who plays every day for hours and wants no setup. Pay per token suits people who play in bursts, who want to choose their own interface, or who run a small bot for friends.

To use the API you need a frontend that accepts an OpenAI-compatible endpoint. Many roleplay clients do, SillyTavern among them. You enter three values:

SettingValue
Base URLhttps://api.uncensoredchat.cc/v1
API keyYour key from the account page
Modeluncensored

Before you commit money, run a trial session with your real character card, since that is the biggest unknown in the calculation. Count the tokens in the card, play twenty turns, and compare the balance shown in X-Balance-USD before and after. If a twenty-turn session costs more than the formula predicts, your card or replies are longer than the example, and you can adjust the plan from real data instead of guesses.

A quick test from a terminal checks the key before you open the app:

curl https://api.uncensoredchat.cc/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "uncensored",
       "messages": [{"role": "user", "content": "Describe a rainy harbor town in two sentences."}],
       "max_tokens": 120}'

The quickstart walks through the same setup for Python and Node.

Limits and house rules to know

The model is tuned to answer without content refusals for lawful adult use, which suits fiction and companion apps for adults. Sexual content involving minors is never allowed. Context is 100,000 tokens in total, streaming is supported so replies appear as they are written, and prompts are not used for training.

A trial key runs 2 requests at once and 60 per minute, and a full key 8 at once and 300 per minute. One person chatting will not come near these, but a group bot might. If a reply shows HTTP 429, wait and retry. Responses include X-Balance-USD, so you can watch your remaining credit while you play.

Questions and answers

How much does one roleplay session cost?

In the example here, with a 1,500-token character card, 80-token messages and 250-token replies, 40 turns cost about $0.053 and 100 turns about $0.28. Longer cards and replies cost more.

Is there a free roleplay chat?

There is no free tier. New users can claim $0.50 of trial credit with one click, valid for 7 days and needing no card. That is about nine 40-turn sessions in the example.

What happens if my credit runs out?

Requests fail until you top up. Failed or refused requests are not charged. Credit never expires, so unused balance stays on your account.

How can I lower the cost of long stories?

Send only the most recent exchanges plus a short summary, and keep replies as short as the story allows. Trimming to the last 10 exchanges cut the 100-turn example from about $0.28 to about $0.083.

Your key is one form away

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

Get API key