EN ▾

Hosted uncensored API for developers

Get API key

Unfiltered AI for Coding: Cursor, Aider, LangChain

You can use an unfiltered model as a coding assistant by changing two settings in any OpenAI-compatible tool: the base URL and the key. This guide shows the exact values and the code for the common setups.

Updated

Isometric editor window feeding code blocks through a pipeline into an API server

Key points

  1. Any tool with a custom OpenAI endpoint field works: set the base URL, your key and the model ID uncensored.
  2. Tool calling, JSON mode and streaming are supported, so editors and agents behave as they do with other OpenAI-style APIs.
  3. A typical coding request with 20,000 tokens of context costs well under a cent.
  4. The model is text only and tuned to answer without content refusals for lawful adult use.

What unfiltered means for a coding assistant

If you are looking for unfiltered ai for coding, the practical question is usually simple: you ask for something legitimate and the assistant declines, lectures, or hands back a watered-down answer. It happens with port scanners written for your own network, with scrapers, with reverse engineering of your own binaries, with exploit proofs of concept for a bug you are reporting, and with plain security tooling that a cautious model reads as a threat.

The model behind this API is a single open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use. It is not the official API of any big vendor and it is not a router across several models. You get one model under the ID uncensored, reachable through POST /v1/chat/completions, with the same request shape you already know from OpenAI clients.

Two limits are worth stating early. The model is text only, so it will not generate images or embeddings. And there is one hard rule that no setting changes: no sexual content involving minors. For code, that rule almost never matters. What you gain is fewer pointless refusals on lawful work.

I will not claim benchmark numbers here, because none are published on this page. The honest way to judge a coding model is to run your own prompts through it. At the prices below, a hundred test prompts cost a few cents, and the trial credit covers that without a card.

Connection settings in one table

Everything below uses the same three values. Keep them in environment variables so you can swap them between tools without editing code.

SettingValue
Base URLhttps://api.unfilteredaimodels.cc/v1
API keyYour key, sent as Authorization: Bearer <key>
Model IDuncensored
EndpointsPOST /v1/chat/completions, GET /v1/models
Context window100,000 tokens, prompt plus completion

To get a key, sign up with Google or with email and password, then open the key page. New users can claim $0.50 of trial credit with one click there. It needs no card, lasts 7 days and is limited to one per person. Details are on the API key page.

A quick sanity check before wiring anything into an editor:

export UF_KEY="paste-your-key-here"
curl -s https://api.unfilteredaimodels.cc/v1/models \
  -H "Authorization: Bearer $UF_KEY"

If the list comes back and includes uncensored, the key and URL are right. If it does not, fix that first. Most editor problems later turn out to be a typo in one of these two values.

A plain script: code review and generation

The smallest useful integration is a script that sends a file and a question. This one asks the model to review a Python file and prints the answer as it streams.

import os, sys
from openai import OpenAI

client = OpenAI(
    base_url="https://api.unfilteredaimodels.cc/v1",
    api_key=os.environ["UF_KEY"],
)

source = open(sys.argv[1]).read()

stream = client.chat.completions.create(
    model="uncensored",
    temperature=0.2,
    stream=True,
    messages=[
        {"role": "system",
         "content": "You are a senior engineer. Review the code for bugs, "
                    "unsafe input handling and unclear naming. Be specific."},
        {"role": "user", "content": source},
    ],
)

for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
print()

Keep temperature low for code, around 0.1 to 0.3. Higher values are fine for brainstorming names or alternative designs, but they make diffs less repeatable. If you need the same output for the same input, pass seed as well; sampling parameters including seed, top_p, stop and the penalties are passed through to the model.

The Node version is equally short:

import OpenAI from "openai";
import fs from "node:fs";

const client = new OpenAI({
  baseURL: "https://api.unfilteredaimodels.cc/v1",
  apiKey: process.env.UF_KEY,
});

const code = fs.readFileSync(process.argv[2], "utf8");

const res = await client.chat.completions.create({
  model: "uncensored",
  temperature: 0.2,
  messages: [
    { role: "system", content: "Explain what this code does and list risks." },
    { role: "user", content: code },
  ],
});

console.log(res.choices[0].message.content);

Cursor, Aider and other editors

Editors that accept a custom OpenAI endpoint need the same three values. The exact menu names change between releases, so look for fields called something like "OpenAI Base URL" or "custom model".

Cursor

In the model settings, enter your key in the OpenAI key field, turn on the base URL override and paste https://api.unfilteredaimodels.cc/v1. Then add a custom model named uncensored and select it in the chat panel. Cursor decides which features can run on a user-supplied key, so check its current documentation: some editor features may only be available with the vendor's own models. Chat and inline edits with a custom OpenAI-style endpoint are the usual case.

Aider

Aider reads standard OpenAI environment variables. The openai/ prefix tells it to treat the endpoint as OpenAI-compatible and send the rest as the model name:

export OPENAI_API_BASE="https://api.unfilteredaimodels.cc/v1"
export OPENAI_API_KEY="$UF_KEY"
aider --model openai/uncensored

Other plugins

Continue-style extensions, Cline-style agents and terminal clients usually offer an "OpenAI compatible" provider. Set the provider to that option, paste the base URL and key, and type uncensored as the model. If the tool insists on a list of models, it can call GET /v1/models or let you type the ID manually.

LangChain, tool calling and JSON mode

For pipelines, LangChain's OpenAI chat class accepts a custom base URL directly:

import os
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    model="uncensored",
    base_url="https://api.unfilteredaimodels.cc/v1",
    api_key=os.environ["UF_KEY"],
    temperature=0.1,
)

print(llm.invoke("Write a Python function that parses an nmap XML file.").content)

The API supports tool calling: you pass tools and tool_choice, the model replies with tool_calls (also when streaming), and you return results as messages with role: "tool". That is enough for an agent that reads files, runs tests, or queries a database. Whether a given agent loop works well depends on the model following the tool schema, so test it on your own tool set before you rely on it.

JSON mode is useful for structured output such as a list of findings from a code review. Set response_format to {"type":"json_object"} and say in the prompt which keys you want. Without that instruction in the prompt, you may get valid JSON with keys you did not plan for.

curl -s https://api.unfilteredaimodels.cc/v1/chat/completions \
  -H "Authorization: Bearer $UF_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "response_format": {"type": "json_object"},
    "messages": [
      {"role": "user",
       "content": "List 3 risks in a script that runs shell commands built from user input. Reply as JSON with a key risks, an array of objects with name and fix."}
    ]
  }'

What a coding session costs

Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, billed from prepaid credit. Coding requests are input-heavy because you send files, so the cheaper input rate does most of the work.

Take a request that sends 20,000 tokens of code and context and gets 1,500 tokens back:

  • Input: 20,000 / 1,000,000 x $0.15 = $0.003
  • Output: 1,500 / 1,000,000 x $0.50 = $0.00075
  • Total: $0.00375 per request

A hundred of those come to $0.375. An afternoon of heavy agent use, say 500 requests of that size, is $1.875. Requests that fail or are refused are not charged, and credit never expires, so unused balance stays where it is.

Top-ups are any whole amount from $20 to $500, with a bonus of 5% from $50, 10% from $100 and 15% from $200. You can pay with crypto (USDT on TRC20, USDC on Base). The pricing page has the current table. There is no subscription.

The response carries an X-Balance-USD header, so a script can print the remaining balance after each run, which is a handy guard in long agent loops.

Limits and common pitfalls

A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 concurrent and 60 per minute. Past those numbers the API returns HTTP 429 with the error code rate_limited (too many per minute) or concurrency (too many at once). On temporary overload it also returns 429, with a Retry-After: 5 header. Treat all of these as retryable with a short wait.

Agents are the usual way to hit the concurrency limit. Many editors fire an inline edit, a chat and a background indexing call at the same time. A streamed request holds its slot until the stream ends, so a long answer blocks one of your eight slots for its whole duration. If you see concurrency errors, lower the number of parallel workers instead of adding retries.

Other things that go wrong:

  • Wrong URL form. The base URL ends in /v1. Do not add /chat/completions to it in SDK settings; the client appends the path itself.
  • Model name. Use uncensored exactly. Names of other vendors' models are not valid here.
  • Huge pastes. The body limit is 8 MB and the context is 100,000 tokens. Send relevant files, not the whole repository.
  • Trusting generated code. Run tests and read the diff. No model, filtered or not, is a substitute for review.

For endpoint details see the API documentation. If something behaves oddly, the troubleshooting guide lists the usual causes.

Questions and answers

Is this the official API of a well-known model vendor?

No. It is one open-weight model run by an independent provider, available under the ID uncensored. It is not a router and not a vendor's own API.

Can I use it with Cursor or other editors?

Editors that let you set a custom OpenAI base URL and model name can use it. Enter the base URL, your key and uncensored. Check each editor's documentation, since some features may be limited to the vendor's own models.

Does it support function calling for agents?

Yes. Tool calling works with tools, tool_choice and streamed tool_calls, and tool results go back as messages with role tool.

How large a codebase can I send?

The context window is 100,000 tokens, covering prompt and completion together. Send the files that matter for the task and keep the rest out.

Are my prompts used for training?

No. Prompts are not used for training.

Your key is one form away

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