The quick answer on size
The context window on this API is 100,000 tokens. It covers everything in one request: system prompt, chat history, any pasted documents, and the reply the model writes. Some services on the market advertise more than that, and we do not claim to be the biggest. Check other providers' current specs if raw size is your only criterion.
For most real work, 100,000 is more than enough. A rough rule for English is that one token is about three quarters of a word, so the window holds around 75,000 words. That is a short novel's worth of text, or several hundred turns of a casual chat, or a long report plus your questions about it.
The rule is only an estimate. Code, non-English text, numbers and unusual names use more tokens per word, so budget a margin. The response includes a usage field with the exact counts, which is the figure to trust.
What a context window actually is
A language model does not remember earlier chats. Each request is processed from scratch, and the only "memory" is what you put in the messages array. The window is the cap on how much text can go in that array together with the answer.
Two practical consequences follow. First, when a long conversation passes the cap, something has to go: either you trim old messages, or the request fails. Second, a model can only use what is inside the window. If a character detail from turn 3 is no longer in the array at turn 400, the model has no way to know it.
Here, the completion can use whatever part of the window your prompt leaves free, and max_tokens is optional. If you send 95,000 tokens of prompt, only about 5,000 are left for the reply. Leave space deliberately when you build a long-prompt tool.
What fits in 100,000 tokens
| Content | Approximate tokens |
|---|---|
| A 300-word system prompt for a character | 400 |
| One chat turn (about 100 words in, 150 words out) | 330 |
| 200 chat turns of that size | 66,000 |
| A 30-page report (about 15,000 words) | 20,000 |
| A 400-line source file | 4,000 to 6,000 |
These figures are estimates based on the three-quarters-of-a-word rule. They show the scale: a 200-turn roleplay plus a long character setup plus a lore document still fits in a single request, with room left for the reply.
When you are unsure how big something is, count before you send. Paste a sample into a script that prints the length divided by four, add your system prompt, and compare the total with 100,000 minus the reply space you want. A two-minute check beats a failed request in the middle of a long session.
The request body limit is 8 MB, which is far above what 100,000 tokens needs (that much English text is a few hundred kilobytes). You will reach the token window long before the body limit.
Long roleplay without losing the plot
Fiction is where long windows pay off most. A story that runs for weeks produces a history no short window can hold. Three habits keep it coherent.
- Pin the setup. Always send the system prompt and the character or world notes first, then recent turns. Never trim those.
- Summarize old turns. When history passes a threshold, ask the model to summarize the oldest block into a few hundred tokens, and swap the summary in for the originals.
- Keep a facts list. Names, ages, promises and plot hooks in a short bullet list at the top beat a thousand lines of raw dialogue.
Characters in any adult fiction must be adults. Content involving minors is a hard limit and is refused no matter how the request is framed. The NSFW chatbot API page goes through the fiction and companion-app use cases for adults.
Document analysis in one request
You can paste an entire contract, transcript or log file and ask questions about it, with no chunking pipeline. A few tips help:
- Put the document first and your instruction last. The model tends to follow the latest text most closely.
- Ask for quotes with locations, such as the section heading, so you can verify answers against the source.
- Use JSON mode (
response_formatset tojson_object) when you need extracted fields you can parse. - For documents larger than the window, split them and summarize each part, then ask your question over the summaries.
Retrieval tools that fetch only relevant passages are still useful for huge archives. A big window reduces how often you need them; it does not replace them for a library of thousands of files.
Cost of long requests
Because every turn resends the history, input tokens add up faster than output tokens. Prices are $0.15 per 1M input tokens and $0.50 per 1M output tokens. Here are three worked cases.
- Full window, 1,000-token reply. Input: 100,000 x $0.15 / 1,000,000 = $0.015. Output: 1,000 x $0.50 / 1,000,000 = $0.0005. Total: $0.0155.
- Half window, 500-token reply. Input: 50,000 tokens = $0.0075. Output: 500 tokens = $0.00025. Total: $0.00775. One hundred such turns cost $0.775.
- Trimmed to 8,000 tokens, 500-token reply. Input: 8,000 tokens = $0.0012. Output: $0.00025. Total: $0.00145. One hundred turns cost $0.145.
The trimmed case is about five times cheaper than the half-window case, for the same number of turns. The window is a ceiling, not a target. Fill it when the task needs it. The pricing page lists the top-up options, and the $0.50 trial credit pays for roughly 32 full-window requests ($0.50 / $0.0155 is about 32).
Pitfalls with very long prompts
A big window is a tool with some sharp edges. These are the problems that show up most often.
Details in the middle get less attention
Language models usually handle the start and the end of a long prompt better than the middle. If a fact matters, repeat it near the end, or restate the rule in your final instruction. Do not assume that because a sentence is inside the window, the model weighed it equally.
Contradictions pile up
In a long roleplay, early messages may describe a character one way and later ones another. The model sees both. When you summarize, resolve conflicts yourself and write the current truth, not a transcript of every change.
Slower starts
A prompt that fills most of the window takes the model longer to read before the first word appears. We publish no latency figures, so measure on your own network. If a chat feels slow, a smaller prompt is the first thing to try.
Concurrency slots
A streamed request occupies its slot until the stream ends. With a full key you can run 8 at once; with a trial key, 2. A queue that sends long document jobs one or two at a time, while keeping chat traffic on the remaining slots, avoids 429 errors with the concurrency code.
Reply space
Because the window includes the reply, a prompt close to 100,000 tokens leaves almost nothing for the answer. Keep your budget under the limit by the length of reply you want, and set max_tokens when you need a hard stop.
A trimming helper in Python
This sketch keeps the system message and as many recent turns as fit a token budget, using the common four-characters-per-token estimate. Replace the estimate with the exact usage figures from responses when you want precision.
from openai import OpenAI
client = OpenAI(base_url="https://api.unfilteredchatbot.com/v1", api_key="YOUR_KEY")
def est_tokens(text):
return len(text) // 4 + 4
def fit(messages, budget=90000):
system, rest = messages[0], messages[1:]
used = est_tokens(system["content"])
keep = []
for m in reversed(rest):
cost = est_tokens(m["content"])
if used + cost > budget:
break
keep.append(m)
used += cost
return [system] + list(reversed(keep))
history = [{"role": "system", "content": "You are the narrator of a long fantasy story."}]
history.append({"role": "user", "content": "Continue where we left off."})
reply = client.chat.completions.create(
model="uncensored",
messages=fit(history),
max_tokens=1000,
)
print(reply.choices[0].message.content)
print(reply.usage)
The budget of 90,000 leaves about 10,000 tokens of room for the reply and for estimation error. Streamed requests hold one of your concurrency slots until the stream ends, and a full key allows 8 at once, so a big batch of long requests should be queued.
More examples are in the docs. Get a key on the API key page.
More guides
Common Questions About Uncensored APIs
Is this an official OpenAI product? No, we are an independent service. Our model is open-weight and run on our own servers.
Do you support image generation? No, this is a text-only API. We do not offer embeddings, image, audio, or video generation.
How do I top up my credit? Use crypto (USDT TRC20 or USDC Base) via our payment page. No cards or PayPal are accepted.
What happens if I make a mistake? Credit is not refunded, but mistakes like double charges can be fixed via the Support page.
