Uncensored AI Image Generator for Windows: API Setup
No model download, no graphics card and no installer: on Windows you point your tools at a hosted endpoint. This guide gets the text side of an image workflow running with Python, PowerShell and SillyTavern, and says plainly what the API does not do.

Key points
- The API is text only: it writes image prompts, it does not render pictures.
- Nothing heavy runs on your PC, so a laptop without a GPU is fine.
- Python, PowerShell or curl.exe each need only the base URL, a key and the model ID uncensored.
- Store the key in an environment variable instead of pasting it into scripts.
What you can and cannot run on Windows
If you searched for an uncensored ai image generator for windows, you probably expect an app you install and run on your own GPU. That is a different product from this one. The service here is a hosted text API with an OpenAI-compatible interface. It does not generate images, audio or video. What it does is write the text that image tools consume: detailed prompts, character sheets, scene descriptions, and roleplay replies for front ends like SillyTavern.
The benefit on Windows is that everything heavy happens on the server. Your machine only sends small JSON requests, so an older laptop or a work PC with no discrete graphics card works. You do not install model weights, drivers or CUDA. You need a key, a base URL and a way to send HTTPS requests. For the image part, you pair it with whichever image backend you already use; our Flux integration notes show one way to connect the two.
The model is one open-weight model run by an independent provider and tuned to answer without content refusals for lawful adult use. The hard limit is no sexual content involving minors.
Step 1: get a key and store it safely
- Sign up with Google, or with an email and password, on the API key page.
- Claim the $0.50 trial credit with the one-click button there. It needs no card, lasts 7 days and is limited to one per person.
- Copy the key.
Do not paste the key into scripts you might share or commit. Put it in an environment variable. In PowerShell, for the current window only:
$env:API_KEY = "paste-your-key-here"
To keep it for future windows, use setx, then open a new terminal, because setx does not change the window you are in:
setx API_KEY "paste-your-key-here"
On Windows 10 and 11 you can also edit user variables through the Environment Variables dialog in System Properties. Whichever way you choose, the examples below read API_KEY and never contain the secret.
Step 2: first request from PowerShell or curl.exe
Modern Windows ships curl.exe. Call it with the .exe suffix in PowerShell, because plain curl there is an alias for a different command. Quoting JSON in PowerShell is awkward, so the clean way is to build the body as an object and let PowerShell convert it:
$body = @{
model = "uncensored"
messages = @(@{ role = "user"; content = "Write a one-line description of a rainy night market." })
max_tokens = 80
} | ConvertTo-Json -Depth 5
$r = Invoke-RestMethod -Method Post -Uri "https://api.uncensoredimagegenerator.top/v1/chat/completions" `
-Headers @{ Authorization = "Bearer $env:API_KEY" } `
-ContentType "application/json" -Body $body
$r.choices[0].message.content
To confirm the key and the endpoint without a chat request, list models:
curl.exe https://api.uncensoredimagegenerator.top/v1/models -H "Authorization: Bearer %API_KEY%"
The %API_KEY% form works in classic Command Prompt. In PowerShell use $env:API_KEY instead. If you see JSON with the model uncensored, you are connected.
Step 3: Python on Windows
For anything beyond a test, Python is the easiest route. Install Python from python.org and tick the option to add it to PATH. Then, in a terminal:
py -m pip install openai
Create prompt.py:
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredimagegenerator.top/v1", api_key=os.environ["API_KEY"])
resp = client.chat.completions.create(
model="uncensored",
messages=[
{"role": "system", "content": "You write prompts for an image generator. One line, 60 words at most, adult characters only."},
{"role": "user", "content": "a lantern festival on a frozen lake"},
],
max_tokens=150,
)
print(resp.choices[0].message.content)
Run it with py prompt.py. Streaming works too: add stream=True and iterate over the chunks. A streamed request keeps its concurrency slot until the stream finishes, so close or finish streams you no longer need. The quickstart lists every supported parameter, including JSON mode, tool calling and the sampling settings that are passed through.
Step 4: SillyTavern on Windows
SillyTavern is a common front end for roleplay and character chat. It runs on Node.js, so install the current LTS release of Node.js for Windows, download or clone SillyTavern, and start it with the included start script. The app opens in your browser on a local address.
Then connect it: open the API connections panel, pick Chat Completion, choose the custom OpenAI-compatible source, and enter https://api.uncensoredimagegenerator.top/v1 as the endpoint, your key, and the model ID uncensored. Labels differ a little between versions, but those three values are the whole configuration. Send a test message. If the reply arrives, you are done; the same connection can drive the extension that writes image prompts for your separate image backend.
Prompts you send go to the hosted API over HTTPS and are not used for training. Chats and character cards themselves stay in SillyTavern's folders on your machine, which is worth remembering if you back up or move the install.
A reusable batch script
Once the single call works, a small script turns it into a tool. The idea: keep a plain text file with one picture idea per line, run the script, and get a second file with one finished prompt per line, ready to paste into your image tool or feed to it directly. Save this as batch.py next to a file named ideas.txt:
import os, time
from openai import OpenAI, RateLimitError
client = OpenAI(base_url="https://api.uncensoredimagegenerator.top/v1", api_key=os.environ["API_KEY"])
SYSTEM = "Write one image prompt per request. Comma-separated phrases, 60 words at most, adult characters only, output the prompt only."
def one(idea):
for attempt in range(4):
try:
r = client.chat.completions.create(
model="uncensored",
messages=[{"role": "system", "content": SYSTEM},
{"role": "user", "content": idea}],
max_tokens=150, temperature=0.8)
return r.choices[0].message.content.strip().replace("\n", " ")
except RateLimitError:
time.sleep(5)
return ""
with open("ideas.txt", encoding="utf-8") as f, open("prompts.txt", "w", encoding="utf-8") as out:
for line in f:
if line.strip():
out.write(one(line.strip()) + "\n")
Two details are Windows-specific. First, open and write files with encoding="utf-8". The default encoding on many Windows installs is not UTF-8, and accented names or symbols in your ideas can otherwise come back garbled. Second, if you edit ideas.txt in an old editor, line endings may be Windows-style; the strip() calls handle that.
The script runs one request at a time, which stays far below every limit and is plenty for a few hundred ideas. The retry on RateLimitError waits 5 seconds, matching the Retry-After value the API sends on temporary overload. If you later want speed, run a few workers in parallel, staying at or below 8 on a full key and 2 on a trial key. Because each call is billed only for the tokens it uses and failed requests are free, a long list is cheap to rerun after you improve the system message. Check X-Balance-USD in a response now and then if you run very large lists unattended.
Windows-specific problems and fixes
- JSON errors in PowerShell. Hand-typed JSON with nested quotes fails often. Use the hashtable plus
ConvertTo-Jsonpattern shown above, or send the body from a file with--data @body.jsonincurl.exe. - "py is not recognized". Python was installed without PATH. Re-run the installer and choose Modify, or use the full path to
python.exe. - The environment variable is empty. After
setx, open a new terminal. In a script, check thatos.environ["API_KEY"]is set before the call. - 401 Unauthorized. The key was copied with a trailing space or a line break. Re-copy it, and confirm the header reads
Authorization: Bearerfollowed by the key. - 429 responses. The error code tells you which limit you hit.
rate_limitedis requests per minute (300 on a full key, 60 on a trial key).concurrencyis too many at once (8 on a full key, 2 on a trial key). A 429 withRetry-After: 5is a temporary overload; wait and retry. - Corporate proxy or antivirus HTTPS inspection. Certificate errors on requests usually come from the inspecting proxy. Ask your IT team for the trusted certificate path, or test from a network without inspection.
Every response carries X-Request-Id, which you should quote if you contact support about a request, and X-Balance-USD, which lets a script watch your remaining credit.
Paying and what it costs
Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens from prepaid credit, with no subscription. A typical image-prompt call with 300 tokens in and 120 tokens out costs $0.000045 + $0.00006 = $0.000105, so $1 buys roughly 9,500 of them. Failed or refused requests are not charged and credit never expires.
This site accepts crypto top-ups only: USDT on TRC20 or USDC on Base. Any whole amount from $20 to $500 works, and larger top-ups carry a bonus of 5% from $50, 10% from $100 and 15% from $200. A $100 top-up, for example, becomes $110 of credit. See the pricing page for the current details.
More guides
Questions and answers
Do I need a GPU to use this on Windows?
No. The model runs on the provider's servers. Your PC only sends and receives small text requests, so any Windows machine with internet access works.
Can it generate images on my PC?
No. It is a text-only API. It writes prompts and replies, and you use a separate image backend for the pictures.
Which base URL and model ID do I use?
Use https://api.uncensoredimagegenerator.top/v1 as the base URL and uncensored as the model ID, with your key sent as a Bearer token.
Is there a free way to test it?
New users can claim $0.50 of trial credit on the API key page after sign-up. It is valid for 7 days, needs no card and is limited to one per person.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.