Short answer: build the chat yourself
If you are searching for no filter ai chats that can create code, you have two options. You can use a hosted chat website and accept whatever rules it enforces, or you can run a small chat of your own against an API that does not refuse lawful requests. The second option takes an afternoon and gives you control over history, files and output format.
This site offers the API side: one open-weight model, reached with the model ID uncensored, tuned to answer without content refusals for lawful adult use. It follows the OpenAI chat format, so any OpenAI SDK works after you change the base URL and key. The model is run by an independent provider. It is not the official service of any large vendor, and it does not claim benchmark results for coding, so judge it on your own tasks.
If you already read the uncensored chat API coding overview on this site and want the hands-on version, this is it.
A terminal chat in Python
The core of any chat is a list of messages that grows with every turn. The model has no memory of its own between calls, so you resend the history each time. This script is a complete chat loop with streaming.
from openai import OpenAI
client = OpenAI(base_url="https://api.nofilteraichat.cc/v1", api_key="YOUR_KEY")
messages = [{
"role": "system",
"content": "You are a pair programmer. Answer with working code in fenced blocks. "
"Keep explanations under six lines. Ask one question if the task is unclear.",
}]
while True:
user = input("you> ")
if user in ("exit", "quit"):
break
messages.append({"role": "user", "content": user})
stream = client.chat.completions.create(
model="uncensored",
messages=messages,
temperature=0.2,
stream=True,
)
reply = ""
for chunk in stream:
piece = chunk.choices[0].delta.content or ""
reply += piece
print(piece, end="", flush=True)
print()
messages.append({"role": "assistant", "content": reply})
Run it, type a request such as "write a Flask endpoint that accepts a CSV upload and returns column statistics", then follow up with "add input validation". The second answer builds on the first because the history travels with the request.
Get your key from the key page. New accounts can claim $0.50 of trial credit there with one click after sign-up, valid for 7 days and without a payment method, which is plenty to test this loop.
Make the chat save and check files with tool calling
Printing code is half a feature. A chat that writes the file to disk and runs a check is much more useful. The API supports tool calling with tools and tool_choice, and it returns tool_calls, which you answer with messages of role: "tool". The Node example below adds one tool, write_file, restricted to a workspace folder.
import OpenAI from "openai";
import fs from "node:fs";
import path from "node:path";
const client = new OpenAI({
baseURL: "https://api.nofilteraichat.cc/v1",
apiKey: process.env.NOFILTER_KEY,
});
const tools = [{
type: "function",
function: {
name: "write_file",
description: "Save a text file inside the workspace folder",
parameters: {
type: "object",
properties: { name: { type: "string" }, content: { type: "string" } },
required: ["name", "content"],
},
},
}];
const messages = [
{ role: "system", content: "You write code. When the user asks for a script, save it with write_file." },
{ role: "user", content: "Create hello.py that prints the first 10 Fibonacci numbers." },
];
const res = await client.chat.completions.create({ model: "uncensored", messages, tools });
const msg = res.choices[0].message;
messages.push(msg);
for (const call of msg.tool_calls ?? []) {
const args = JSON.parse(call.function.arguments);
const safe = path.join("workspace", path.basename(args.name));
fs.mkdirSync("workspace", { recursive: true });
fs.writeFileSync(safe, args.content);
messages.push({ role: "tool", tool_call_id: call.id, content: "saved " + safe });
}
const done = await client.chat.completions.create({ model: "uncensored", messages, tools });
console.log(done.choices[0].message.content);
Note the path.basename call. File names that come from a model are untrusted input, and without that line a request could write outside your workspace. Apply the same suspicion to shell commands, URLs and anything you pass to eval.
When you stream a tool-using reply, the call arrives in pieces across chunks. Collect the argument fragments by index and parse the JSON only after the stream ends.
Structured replies: JSON mode
Sometimes you do not want chat, you want a result your program can read. JSON mode forces valid JSON output. Ask for exactly the keys you need.
curl https://api.nofilteraichat.cc/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"temperature": 0,
"response_format": {"type": "json_object"},
"messages": [
{"role": "system", "content": "Reply with JSON only: {\"language\": string, \"functions\": [string], \"risk_notes\": string}"},
{"role": "user", "content": "def a(x): return eval(x)\ndef b(): return open(\"/etc/passwd\").read()"}
]
}'
This pattern fits code review bots, repository indexers and linters that explain themselves. Valid JSON does not guarantee the content is right, so check types and required keys in your code before acting on them.
Limits you will meet in a coding chat
Coding conversations grow quickly, because pasted code and long replies both count toward the history. The window is 100,000 tokens, prompt and reply together. When a chat approaches it, trim in this order:
- Drop old assistant messages that only contain superseded code.
- Replace a long pasted file with the current version only.
- Summarise early discussion into a few lines in the system message.
Request limits matter if you share one key across a team or run several chats at once. A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 and 60. Exceeding either gives HTTP 429, with error code rate_limited for the per-minute limit and concurrency for too many requests at once. A 429 with a Retry-After: 5 header means temporary overload, so wait five seconds. A streamed request keeps its slot until the stream ends, so close streams you no longer read.
Each response includes X-Request-Id and X-Balance-USD headers, which are handy for logging and for a balance warning in your chat UI. Maximum request body is 8 MB. The quickstart in the docs shows the full parameter list.
Fixing a chat that behaves badly
Most chat bugs come from the history, not from the model. If replies start to ignore your earlier instructions, check that the system message is still the first item in the list and that your trimming code did not remove it. If the model repeats a rejected answer, you probably left the bad version in the history; delete it or add a short user message saying what was wrong.
If code blocks arrive cut off, look at the end of the stream. A dropped connection ends a reply early, and the partial text then enters the history as if it were complete. Store a reply only when the stream finished normally. If you set max_tokens, remember it can also truncate; since it is optional, leave it out unless you need a hard cap on cost.
For tool loops, protect yourself from endless cycles. Count the rounds and stop after, say, six calls in one turn, then show the user what happened. A model asked to fix a failing test can keep trying forever if nothing tells it to stop. Cheap safeguards like these keep a coding chat predictable and your balance intact.
Last, log every request. Store the X-Request-Id value next to the messages you sent. When a reply looks wrong a week later, you can reproduce the exact prompt, change one thing and compare, instead of guessing which part of a long conversation caused the problem.
What a coding chat costs, turn by turn
The price is $0.15 per 1M input tokens and $0.50 per 1M output tokens. In a chat, input dominates because you resend history each turn. Worked examples:
| Scenario | Input | Output | Cost |
|---|---|---|---|
| Short question, no history | 500 | 400 | $0.000075 + $0.0002 = $0.000275 |
| One turn with 8,000 tokens of history and code | 8,000 | 600 | $0.0012 + $0.0003 = $0.0015 |
| 100 such turns | 800,000 | 60,000 | $0.12 + $0.03 = $0.15 |
| One turn with the window full of input | 100,000 | 0 | $0.015 |
You pay from prepaid credit, there is no subscription, and credit never expires. Failed or refused requests are not charged. Top-ups are any whole amount from $20 to $500, with +5% from $50, +10% from $100 and +15% from $200. You can pay by by crypto (USDT on TRC20, USDC on Base). See the pricing page for the current terms.
Use this for lawful work
An endpoint without refusals is a convenience for legitimate work that mainstream assistants sometimes decline: security testing on your own systems, research tooling, scrapers, unusual automation. It is not a way around the law. Sexual content involving minors is never allowed on this service, and prompts are not used for training.
The service is text only. It does not generate images, audio or video, and it offers no embeddings or fine-tuning. If your chat needs code search over a large repository, you will need to build the retrieval part yourself and pass the relevant pieces in the prompt. A simple start is to grep for the function names the user mentions and paste only those files, which keeps cost low and answers focused.
