EN ▾

Uncensored LLM API. Pay per token. No logs.

per 1M input tokens
$0.15
Output tokens / 1M
$0.50
token context
100,000
trial credit
$0.50
requests per minute
300

GPT Context Window Size: How 100k Tokens Works

The gpt context window size on this API is 100,000 tokens, counted across your prompt and the model's reply together. This article explains what that number means in words and pages, what it costs, and how to stay inside it.

Updated

A glass tube filling with glowing blocks, a visual metaphor for a 100,000-token context window

Key points

  • The window is 100,000 tokens, shared by prompt and completion.
  • That is roughly 75,000 English words, though the ratio varies with language and content.
  • A full 100,000-token prompt costs $0.015 on the input side at $0.15 per 1M tokens.
  • Long chats cost more per turn because the whole history is resent each time.

What a context window is

A language model does not remember earlier conversations. Each request is a fresh call, and the model sees only the text you send in that call. The context window is the maximum amount of text it can consider at once, and it is measured in tokens, not characters or words.

Two things share the budget. Your prompt (system message, earlier turns, pasted documents) uses part of it, and the model's reply uses the rest. If the prompt is 90,000 tokens, the reply can be at most about 10,000. This API uses a single limit for both: 100,000 tokens, prompt plus completion. The max_tokens parameter is optional; if you leave it out, the completion can use whatever the prompt left free.

When the total would exceed the limit, the request fails or the answer is cut short. That is why long chat applications need a plan for trimming history, which we cover below.

What 100,000 tokens looks like

A token is a chunk of text, often a short word or part of a longer one. For English prose a common rule of thumb is that one token is about four characters, or three quarters of a word. That puts 100,000 tokens near 75,000 words.

ContentApproximate size in the window
A short chat message (two sentences)40 to 60 tokens
One page of a manuscript (about 500 words)around 650 tokens
A 10,000-word short storyaround 13,000 tokens
A 60,000-word novel draftaround 80,000 tokens
A 200-turn roleplay at 300 tokens per turn60,000 tokens

These are estimates. Code, URLs, numbers and text in languages other than English usually take more tokens per word, sometimes much more, so a Russian or Japanese document fills the window faster than the same idea in English. The reliable way to know is to read the usage block that comes back with every response: it reports the prompt and completion tokens actually counted.

How this compares with other models

Context sizes differ widely between models and change as providers release new versions, so any figure printed in an article ages quickly. If you are comparing this API with a GPT model from OpenAI or any other provider, read that provider's current model documentation for the exact limit and for how they count output tokens.

Here the facts are simple and stable. There is one model, the ID is uncensored, the window is 100,000 tokens, and there is no separate larger tier. Whether that is enough depends on the job. It comfortably holds a long chat history, a book chapter plus notes, or a few hundred lines of logs. It does not hold a large codebase or a stack of long reports, and for those you need retrieval: split the material, find the relevant parts, and send only those.

A bigger window is not automatically better quality. Models can handle details at the very start and end of a long prompt more reliably than details buried in the middle, and the effect varies by model. If accuracy on a specific fact matters, test it with your own material rather than assuming the whole window is used equally.

What a full window costs

Billing is per token from prepaid credit: $0.15 per 1M input tokens and $0.50 per 1M output tokens. Failed or refused requests are not charged. Credit never expires, and the pricing page has the top-up options.

Take the extreme case first. A prompt that fills nearly the whole window, 96,000 tokens, with a 4,000-token reply:

  • Input: 96,000 x $0.15 / 1M = $0.0144
  • Output: 4,000 x $0.50 / 1M = $0.0020
  • Total: $0.0164 per call

So even the largest request is under two cents. The real cost problem in long conversations is repetition. A chat API is stateless, so each turn resends the history. Suppose each turn adds a 100-token user message and a 200-token reply, and you run 50 turns without trimming:

  • Input at turn k is 300 x (k - 1) + 100 tokens. Summed over 50 turns that is 300 x 1,225 + 5,000 = 372,500 tokens, or 372,500 x $0.15 / 1M = $0.055875.
  • Output is 50 x 200 = 10,000 tokens, or 10,000 x $0.50 / 1M = $0.005.
  • Total for the whole conversation: about $0.061.

The sum grows with the square of the number of turns, so a 200-turn chat costs far more than four times a 50-turn one. That is still small money, but it shows why trimming matters once you serve many users.

Staying inside the window

There are three common strategies, and many apps combine them.

Sliding window

Keep the system prompt and the most recent turns, drop the oldest. It is simple and predictable. The cost is that the model forgets early details, such as a character's name chosen in turn three.

Rolling summary

When history passes a threshold, ask the model to summarise the old part into a few hundred tokens, then replace those turns with the summary. You lose detail but keep the thread.

Pinned facts

Keep a short list of facts that must never drop out (names, rules of the scene, user preferences) and place it in the system message. It costs a few hundred tokens and prevents the most visible errors.

Here is a small sliding-window helper in Python. It estimates tokens as characters divided by four, which is rough, so leave a margin, and it uses the real usage numbers for logging:

from openai import OpenAI

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

LIMIT = 100_000
RESERVE = 4_000  # room for the reply

def est(msg):
    return len(msg["content"]) // 4 + 4

def trim(system, history):
    budget = LIMIT - RESERVE - est(system)
    kept, used = [], 0
    for msg in reversed(history):
        cost = est(msg)
        if used + cost > budget:
            break
        kept.append(msg)
        used += cost
    return [system] + kept[::-1]

system = {"role": "system", "content": "You are the narrator of a long story."}
history = [{"role": "user", "content": "Continue the story."}]

resp = client.chat.completions.create(
    model="uncensored",
    messages=trim(system, history),
    max_tokens=RESERVE,
)
print(resp.usage.prompt_tokens, resp.usage.completion_tokens)

Because the budget leaves 4,000 tokens free and the estimate errs a little either way, a margin of several thousand tokens below 100,000 is a sensible habit.

Practical tips for long prompts

  • Put instructions first and repeat the key one at the end. When you paste a long document, state the task before it and restate the output format after it.
  • Do not paste what the model does not need. Every token costs money and dilutes attention.
  • Watch the 8 MB body limit. Text rarely reaches it, but base64 blobs or huge logs can.
  • Use streaming for long replies. A long completion takes time, and a streamed request keeps its concurrency slot until the stream ends, so plan for that when you run several at once. A full key allows 8 concurrent requests.
  • Log usage. Store prompt_tokens and completion_tokens per request and you will see exactly where the budget goes. The X-Balance-USD header shows what is left.

The first-request guide shows the full request format, and the API key page is where you start. New accounts can claim $0.50 of trial credit with one click, valid for 7 days, which is plenty to test long prompts: the 96,000-token example above costs $0.0164, so the trial covers about 30 of them.

Questions and answers

What is the context window size of this API?

100,000 tokens, counting the prompt and the completion together. The max_tokens parameter is optional.

How many words fit in 100,000 tokens?

About 75,000 English words, since a token is roughly three quarters of a word. Other languages and code use more tokens per word.

Does the model remember earlier chats?

No. Each request is independent, and the model sees only the messages you send. To keep a conversation going, you resend the history, trimmed to fit the window.

What happens if I exceed the window?

The request fails or the reply is cut short. Trim older messages, summarise them, or reduce the prompt so that prompt plus reply stays under 100,000 tokens.

Your key is one form away

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

Get API key