EN ▾
Get API key

AI Text Generator Unfiltered: Use the API Directly

An ai text generator unfiltered is, underneath, a single chat request: you send instructions and get text back. Calling the API directly removes the web form, the daily limits and the copy-paste, and costs about a dime per thousand short texts.

Updated

Key points

  1. A text generator is POST /v1/chat/completions with a good system prompt and a template.
  2. Batch scripts turn a spreadsheet of inputs into thousands of outputs, 2 to 8 at a time.
  3. 1,000 product descriptions cost about $0.10; 1,000 800-word posts cost about $0.60.
  4. The model is tuned to answer without content refusals for lawful adult use; minors are always excluded.
A brass typewriter feeding paper onto a glass conveyor with stacks of glowing sheets, showing batch text generation
Two paths, a limited free gate and a metered data stream, comparing free and pay-per-token API access

A generator is a prompt plus a loop

Every web-based text generator you have used is a form on top of the same call. The form collects fields (topic, tone, length), pastes them into a hidden prompt, and sends it to a model. When you call the API yourself you keep the useful part, the prompt template, and drop the form.

That gives you three things a website cannot: your own prompt, your own volume and your own format. You decide that every output is exactly 120 words, starts without a greeting and ends with a call to action. You run 5,000 inputs overnight. You write results to a spreadsheet instead of a clipboard.

The API here is OpenAI-compatible, uses model ID uncensored, and is tuned to answer without content refusals for lawful adult use. That suits fiction, roleplay scenes, edgy marketing copy and mature themes that filtered tools tend to water down. Keep outputs within the law; sexual content involving minors is never allowed.

The minimal generator

First, get a key from the API key page. Then this is the whole thing:

import os
from openai import OpenAI

client = OpenAI(api_key=os.environ["API_KEY"],
                base_url="https://api.unfilteredaigenerator.com/v1")

def generate(task, temperature=0.9):
    r = client.chat.completions.create(
        model="uncensored",
        temperature=temperature,
        messages=[
            {"role": "system", "content": "You are a text generator. Output only the requested text, no preface, no commentary."},
            {"role": "user", "content": task},
        ],
    )
    return r.choices[0].message.content.strip()

print(generate("Write a 100-word tavern scene where a stranger offers a dangerous bargain."))

The system line matters. Without "no preface, no commentary" many models open with "Sure, here is..." and you have to strip it. The same request from a terminal looks like this:

curl https://api.unfilteredaigenerator.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"uncensored","messages":[{"role":"user","content":"Write a 100-word tavern scene."}]}'

Templates that make outputs repeatable

Treat each kind of text as a template with slots. Python string formatting is enough.

  • Product blurb: "Write a {words}-word description of {product} for {audience}. Tone: {tone}."
  • Scene opener: "Write the first {words} words of a {genre} scene set in {setting}, from the point of view of {character}."
  • Dialogue: "Write a short exchange between {a} and {b} about {topic}. Format as lines starting with the speaker's name."

Put anything fixed (voice, banned phrases, format) in the system message and anything that varies in the user message. Keep the temperature around 0.7 for consistent business copy and 1.0 for creative text. Add stop sequences if your format needs a hard cut, and seed if you need to reproduce a particular result.

For a dedicated walkthrough of scripts that write other scripts and prompts, see the script generator page.

Batch generation from a spreadsheet

This script reads a CSV with columns product and audience, generates one description per row and writes a new CSV. It respects the key limits by using a small worker pool: 8 concurrent requests and 300 per minute on a full key, 2 and 60 on a trial key.

import csv, os, time
from concurrent.futures import ThreadPoolExecutor
from openai import OpenAI, RateLimitError

client = OpenAI(api_key=os.environ["API_KEY"],
                base_url="https://api.unfilteredaigenerator.com/v1")

TEMPLATE = "Write a 100-word description of {product} for {audience}. Plain text only."

def work(row):
    for attempt in range(5):
        try:
            r = client.chat.completions.create(
                model="uncensored",
                messages=[{"role": "user", "content": TEMPLATE.format(**row)}],
            )
            row["text"] = r.choices[0].message.content.strip()
            return row
        except RateLimitError:
            time.sleep(5)
    row["text"] = ""
    return row

with open("in.csv", newline="") as f:
    rows = list(csv.DictReader(f))

with ThreadPoolExecutor(max_workers=4) as pool:
    done = list(pool.map(work, rows))

with open("out.csv", "w", newline="") as f:
    w = csv.DictWriter(f, fieldnames=done[0].keys())
    w.writeheader()
    w.writerows(done)

A 429 response with the code concurrency or rate_limited means slow down, and a 429 with Retry-After: 5 means brief overload. The five-second sleep covers both. Requests that fail are not billed.

Check the output before you trust a long run. A few lines of validation catch most problems: reject empty strings, reject texts far shorter or longer than the requested word count, and drop any that start with filler such as "Sure". Regenerate the rejects in a second pass. Duplicates are another trap at high temperature across similar inputs, so hash each text and compare. Spot-read ten rows from the start, middle and end of the file before delivering anything.

Cost per 1,000 outputs

The API charges $0.15 per 1M input tokens and $0.50 per 1M output tokens. Below, tokens are estimated at about 1.33 per English word.

Output typeInput tokensOutput tokensCost eachPer 1,000
100-word blurb150150$0.0000975$0.0975
800-word post3001,100$0.000595$0.595
2,000-word story4002,700$0.00141$1.41

Check one row: the blurb costs 150 / 1,000,000 x $0.15 = $0.0000225 for input plus 150 / 1,000,000 x $0.50 = $0.000075 for output, which adds up to $0.0000975. Multiply by 1,000 and you get $0.0975, about ten cents.

So 10,000 blurbs cost about $0.98, and even 10,000 full stories come to roughly $14. Billing is prepaid with no subscription, credit never expires, and top-ups run from $20 to $500. Details are on the pricing page.

Making a live generator for users

If you are building a page where visitors type a topic and see text appear, stream it. Set stream: true and forward the events to the browser. Users see words arrive within a moment instead of waiting for the full text.

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.API_KEY,
  baseURL: "https://api.unfilteredaigenerator.com/v1",
});

const stream = await client.chat.completions.create({
  model: "uncensored",
  stream: true,
  messages: [{ role: "user", content: "Write a menacing monologue for a chess-playing villain." }],
});
for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}

Keep the API key on your server, never in browser code. Remember that each open stream holds a concurrency slot (8 on a full key), so a busy public page needs a queue or per-visitor limits. For more on the free-credit side of experiments, see AI with a free API and the free unfiltered generator page; request details live in the docs.

Questions to ask any provider before you commit

Whatever you choose, a short checklist saves you from surprises. Ask it of this service as well.

  1. What happens at the limit? You want a clear error code and a header that tells you when to retry. Here, going over a limit returns HTTP 429 with the code rate_limited or concurrency, and a temporary overload returns 429 with Retry-After: 5.
  2. Can I see my spend as I go? Every response here includes an X-Balance-USD header, plus the usual usage object.
  3. What is the largest request? The body limit is 8 MB and the context window is 100,000 tokens.
  4. Are failed requests billed? They are not billed here. Confirm the same for anyone else.
  5. What happens to my prompts? Here they are not used for training. Read the equivalent line in every policy you rely on.
  6. How hard is it to leave? With a standard chat completions interface, leaving means changing a base URL and a key.

The last point is the one people forget. A provider you can leave in five minutes is a low-risk bet, even when it is not your final choice. If you need help with a specific setup, the support page is the place to ask.

Questions and answers

Is there an AI text generator with no filter I can call from code?

Yes. This API is OpenAI-compatible and serves one model tuned to answer without content refusals for lawful adult use. Use base URL https://api.unfilteredaigenerator.com/v1 and model uncensored.

How many texts can I generate per minute?

A full key allows 300 requests per minute and 8 at once. A trial key allows 60 per minute and 2 at once.

Does it write images or only text?

Only text. It has no image, audio or video generation, no embeddings and no fine-tuning.

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.

Get API keyRead the docs