EN ▾
Get API key

Uncensored AI Image Editor Local: What a Text API Adds

Last updated

If you are searching for an uncensored AI image editor local to your machine, the editing itself happens in diffusion tools such as ComfyUI, not in a language model. A text-only API cannot touch pixels, but it can handle the writing around the work.

Where the image work really happens

Editing a picture with AI means inpainting, outpainting, image-to-image or upscaling. These are done by diffusion and related image models, usually driven from a node-based or web interface that runs on your own computer. ComfyUI and AUTOMATIC1111 are two widely used examples, and both can run fully offline once the model files are on disk.

That is why the phrase "uncensored image editor" points to a different class of software than a language model. The permissiveness of an image workflow comes from which checkpoint you load and how you configure it, not from a chat endpoint. Hardware needs vary by tool and model, so read the requirements on each project's page before you plan a build; GPU memory is usually the limiting factor.

We say this plainly because it affects what you should buy or sign up for. Our service is a hosted text API. It does not accept images, generate them or edit them.

What a text API can still do for an image workflow

Most of the friction in a local image pipeline is not the GPU but the writing: prompts that read well to a diffusion model, consistent descriptions across a series, captions for what comes out. A language model that does not refuse lawful creative requests is useful there, because fiction and art direction often touch dark or mature themes that mainstream chat tools decline.

  • Prompt variations. Turn one scene idea into five or ten differently worded prompts for batch runs.
  • Negative prompt lists. Draft the terms you want the model to avoid, then trim them by hand.
  • Series continuity. Keep character and setting descriptions consistent across dozens of panels or illustrations.
  • Captions and alt text. Write descriptions from your own notes about the finished picture.
  • Tags and file names. Generate structured metadata for a large folder of renders.
  • Story context. Produce the narrative that the images illustrate, such as a graphic-novel script.

The model sees only the text you send. It cannot look at your image, so you describe the picture in words if you want a caption.

A realistic workflow, start to finish

Here is how a text API and local image tools fit together in a typical illustration project:

  1. Write a short brief in plain words: the subject, the mood, the setting and anything that must stay constant, such as a character's clothing.
  2. Send the brief to the API and ask for a fixed number of prompt variants in JSON, as in the example below.
  3. Run each prompt through your local tool with a fixed set of sampler settings, and log the seed for every result.
  4. Pick the best two or three images by eye and note which prompt wording produced them.
  5. Send those winning prompts back to the model with a request such as "write four variations that keep these elements and change the lighting".
  6. When the set is final, ask the model for captions, alt text and file names based on your own one-line description of each picture.

The loop is quick because each text call is a fraction of a cent, and the slow part, rendering, stays on your hardware where you can tune it.

A working example: prompt variations as JSON

For batch jobs, JSON mode gives you output you can feed straight into a script. The request below asks for five prompts and parses them. Note that the system message mentions JSON, which the mode expects.

import json
import os
from openai import OpenAI

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

scene = "a rain-soaked neon street at night, lone courier on a motorbike"

resp = client.chat.completions.create(
    model="uncensored",
    response_format={"type": "json_object"},
    temperature=0.9,
    messages=[
        {
            "role": "system",
            "content": (
                "You write prompts for an image diffusion model. "
                'Reply in JSON: {"prompts": ["...", "..."]} with exactly five items. '
                "Each prompt is one line of comma-separated visual descriptors."
            ),
        },
        {"role": "user", "content": scene},
    ],
)

prompts = json.loads(resp.choices[0].message.content)["prompts"]
for i, p in enumerate(prompts, 1):
    print(i, p)

Feed the list to your local tool through its own batch or API feature. If a reply fails to parse, retry once with a lower temperature. Use the seed parameter when you want repeatable text, since it is passed through.

Cost of the writing side

Prompt work is cheap because the messages are short. The request above uses about 120 input tokens and 250 output tokens for five prompts.

  • Input: 120 x $0.15 / 1,000,000 = $0.000018
  • Output: 250 x $0.50 / 1,000,000 = $0.000125
  • Total: $0.000143 per call

At that rate, 1,000 calls cost about $0.14 and produce 5,000 prompts. The $0.50 trial credit on the API key page covers roughly 3,500 such calls. Full pricing, top-up bonuses and payment methods are listed on the pricing page.

Pitfalls when text and image tools meet

A few problems show up repeatedly:

  • Prompt length limits. Some diffusion models cut a prompt after a fixed number of tokens; early Stable Diffusion models, for example, stop reading after 77. Ask the language model for short prompts, with the key elements first.
  • Syntax differences. Weighting, negative prompts and special tags vary between tools. Tell the model which syntax your tool expects, and give one example.
  • Prose instead of lists. Without a format instruction, a chat model answers in sentences. JSON mode or a clear "one line, comma-separated" rule fixes this.
  • Style drift across a series. Keep a fixed "character sheet" paragraph and paste it into every request, instead of asking the model to remember.
  • Lost context. The API does not remember earlier calls. Send the history you need in each request; the 100,000-token window leaves ample room.

Rules that apply to adult image work

Local tools give you no moderation, which puts the responsibility on you. Keep to the basics:

  • Never request or produce sexual content involving minors. We prohibit it in every context, and it is illegal in most places.
  • Do not create images of real, identifiable people without their consent, and do not pass off generated images as real photographs.
  • Respect the licence of every checkpoint you load; some restrict commercial use.
  • Keep the text you send to the API free of other people's private data.

Our model is tuned to answer without content refusals for lawful adult use. That covers fiction, character design and mature themes handled in a professional way. It does not cover the points above.

Choosing your setup

A practical split looks like this. Run the diffusion tool locally, where your GPU and your model files live. Call the text API from a small script or from a node in your pipeline that supports HTTP requests. The endpoint follows the OpenAI chat format, so any tool that lets you add an OpenAI-compatible endpoint can use it with the base URL and the model ID uncensored.

The documentation covers streaming, tool calling, rate limits and error codes. If you are weighing a full local language model against hosting, our article on the production checklist lists what to verify before you depend on either.

Batch size is worth planning. A job of 1,000 prompt-writing calls on the trial key, which allows 60 requests per minute, needs at least 17 minutes. On a full key at 300 per minute, and with 8 requests in flight at once, the same job can finish in a few minutes, depending on how long each reply takes. Run calls in a small worker pool, keep the pool at or below your concurrency limit, and retry on HTTP 429 after the pause the response asks for.

Keep a simple log: the original brief, the returned prompts, the seed and settings used for each render, and the file name of the result. When a picture works, you can reproduce it; when it does not, you can see which wording caused the problem. That log is also what you feed back to the model in the next round.

Common questions

Can your API edit or generate images?

No. It is a text-only API. It cannot read, edit or generate images, audio or video.

Which local tools edit images offline?

ComfyUI and AUTOMATIC1111 are two common choices, and both run on your own machine once the model files are downloaded. Check each project's requirements for GPU memory.

Can the text model describe my image?

Only if you describe it first. The API accepts text, so it writes captions and alt text from your notes rather than from the picture.

Is adult content allowed?

Lawful adult use is, with a hard limit: no sexual content involving minors. Real people should never be depicted without their consent.

Get your key in one step

Register, copy the token, update the base URL. That’s all.

Start with trial balance

Email + password. Key displays instantly.

A GPU projecting an image frame with ribbons of text-like light feeding in, image tools plus a text API