Uncensored API for developers
Claude Free Context Window vs a 100k Window API

A context window is the total number of tokens a model can hold in one request, prompt and answer together. Free chat apps cap it at whatever the vendor decides; this API gives you 100,000 tokens and tells you exactly what filling it costs.
What a context window actually is
When people ask about the claude free context window, they usually want to know how much text the model can read before it forgets or refuses. The window is that limit. It is measured in tokens, which are chunks of text: a short English word is often one token, a long or rare word may be two or three, and punctuation counts too. As a rough rule, 1,000 tokens is about 750 English words.
Everything in a request sits inside the window: the system message, earlier turns of the conversation, any documents you paste, and the answer the model writes. Once the sum reaches the limit, something has to give. Either the app drops old messages silently, or the request fails, or the answer is cut short.
Free tiers and API windows are different things
Anthropic decides what the free plan of the Claude chat app can hold, how many messages it allows and which models it offers. Those details have changed before and will change again, so we do not state numbers for them. Read Anthropic's current help pages for the real figures. The same goes for the context size of any specific Claude model: look it up at the source.
An API is a separate product from a chat app. You pay per token, you control the full message list, and you see the usage numbers on every response. Our service is an independent OpenAI-compatible API running one open-weight model. It is not Anthropic's API and it is not Claude. It has no free plan, but new users can claim $0.50 of trial credit with one click after sign-up. That credit needs no card and is valid for 7 days.
The 100,000-token window in numbers
The window here is 100,000 tokens, prompt plus completion. Max output is whatever remains, and max_tokens is optional. In rough terms, that is around 75,000 English words, or about 300 pages at 250 words a page. A full novel manuscript will not fit; a long chapter, a script, a codebase module or a month of chat logs will.
Filling it is cheap. A request with a 100,000-token prompt costs 100,000 x 0.15 / 1,000,000 = $0.015 for input at $0.15 per 1M. Add a 2,000-token reply at $0.50 per 1M, which is $0.001, and the whole request is $0.016. Your $0.50 of trial credit would pay for about 31 requests of that size (0.50 / 0.016 = 31.25).
Output is the more expensive side per token, but long input is what adds up in conversations, as the next section shows.
Use cases that benefit from a large window include editing a long chapter with the full outline pinned above it, asking questions across a pasted transcript, keeping a role-play character consistent over hundreds of turns, and feeding a module of source code along with its tests. For short one-shot prompts the window size does not matter, and a smaller prompt is faster and cheaper anyway.
Why long chats get expensive
The API is stateless. The model does not remember turn one when you send turn two, unless you send turn one again. Every request carries the whole history you want it to see. A chat that has reached 50,000 tokens of history costs 50,000 x 0.15 / 1,000,000 = $0.0075 in input for each new message, before counting the reply.
Over a 40-turn story session, with each turn adding 400 tokens, the history grows from 400 to 16,000 tokens. The input you pay for in total is 400 x (1 + 2 + ... + 40) = 400 x 820 = 328,000 tokens, or $0.0492. That is small, and it shows why a large window is practical here. It also shows that cost grows with the square of the turn count, so a session ten times longer costs about a hundred times more in input.
Keeping a long conversation inside the window
You have three tools. Trim: drop the oldest turns once the prompt nears the limit. Summarize: replace old turns with a short model-written recap. Pin: keep the system prompt and key facts, like character sheets or a style guide, at the top and always resend them. For creative writing a combination of pin and trim works well, since the system prompt carries the details that must not drift.
The helper below estimates tokens at four characters each, trims from the oldest end and keeps room for the reply. It is a rough count, not a tokenizer, so leave a margin. The exact counts come back in usage and you can calibrate the estimate against them.
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.claudeuncensored.cc/v1", api_key=os.environ["API_KEY"])
WINDOW = 100_000 # prompt + completion
RESERVE_FOR_REPLY = 4_000 # room you want left for the answer
def rough_tokens(text: str) -> int:
# crude estimate: about 4 characters per English token
return len(text) // 4 + 1
def fit(messages):
"""Keep the system message and drop the oldest turns until the prompt fits."""
system, turns = messages[0], messages[1:]
budget = WINDOW - RESERVE_FOR_REPLY - rough_tokens(system["content"])
kept, used = [], 0
for m in reversed(turns):
cost = rough_tokens(m["content"]) + 4
if used + cost > budget:
break
kept.append(m)
used += cost
return [system] + list(reversed(kept))
history = [{"role": "system", "content": "You are a patient co-author for a long novel."}]
history.append({"role": "user", "content": "Continue chapter 12 from where we stopped."})
resp = client.chat.completions.create(
model="uncensored",
messages=fit(history),
max_tokens=2000,
)
print(resp.usage.prompt_tokens, resp.usage.completion_tokens)Practical limits to remember
- The window is shared. If your prompt is 98,000 tokens, the answer has about 2,000 tokens of space.
- Quality can vary across a very long prompt. Place the instructions that matter at the start, and repeat the key one at the end of a long document.
- A streamed request occupies a concurrency slot until it ends. A full key allows 8 at once and 300 requests per minute; a trial key allows 2 and 60.
- The request body can be up to 8 MB, far more than 100,000 tokens of text needs.
- The model is text only. Prompts are not used for training.
To try a long prompt, create a key on the key page and follow the quickstart for the first call. If you later need more credit, top-ups run from $20 to $500 by crypto, and the pricing page shows the bonus tiers.
More guides
Questions and answers
How big is the context window of this API?
100,000 tokens, counted over prompt and completion together. max_tokens is optional and the completion can use whatever the prompt leaves free.
Is there a free tier?
There is no free plan, but new users can claim $0.50 of trial credit with one click after sign-up. It needs no card, lasts 7 days and is one per person.
What is the context window of the free Claude app?
That is set by Anthropic and changes over time, so check their current help pages. This service is not Claude and not Anthropic's API.
How much does a full 100,000-token prompt cost?
$0.015 in input at $0.15 per 1M tokens. A 2,000-token reply adds $0.001, so the request totals $0.016.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.