Short answer: where pictures come from
Open WebUI is a self-hosted chat interface. It talks to language models through connections, and it talks to image tools through a separate image settings page. Those are two different channels. The chat connection sends messages to a text model and gets text back. The image setting sends a prompt to something that renders pixels, and Open WebUI shows the result in the conversation.
Publicly documented image engines for Open WebUI include AUTOMATIC1111, ComfyUI and OpenAI-style image endpoints. Which engines your version supports is listed in the Open WebUI documentation, and the options change from release to release, so check the current docs before you plan around one.
This service sits on the other side of that line. It exposes POST /v1/chat/completions and GET /v1/models, nothing for images. There is no generation of images, audio or video, no embeddings and no fine-tuning. If you point the image setting of Open WebUI at this API it will fail, because there is no image route to call. Point the chat connection at it instead, and you get a text model with no content refusals for lawful adult use, available in the same interface you already use.
Add the API as a chat connection
There are two ways to do it. The quickest is to pass the settings when you start the container. Open WebUI reads OPENAI_API_BASE_URL and OPENAI_API_KEY from its environment:
docker run -d -p 3000:8080 \
-e OPENAI_API_BASE_URL="https://api.unrestrictedvideogenerator.top/v1" \
-e OPENAI_API_KEY="YOUR_KEY" \
-e DEFAULT_MODELS="uncensored" \
-v open-webui:/app/backend/data \
--name open-webui \
ghcr.io/open-webui/open-webui:mainReplace YOUR_KEY with a key from the API key page. Open http://localhost:3000, create the first account, which becomes the admin, and start a new chat. Open the model selector. Open WebUI asks the connection for its model list with GET /v1/models, so uncensored should be in the list. Pick it and send a message.
The second way works for an installation that is already running. In recent versions, go to the admin settings, open Connections, add a new OpenAI API connection, and fill in two fields: the URL https://api.unrestrictedvideogenerator.top/v1 and your key. Save, and the verify button should confirm the connection. Menu names move between releases, so if you cannot find the page, search the Open WebUI docs for "OpenAI API connection".
Two small points trip people up. The URL must end with /v1 and have no trailing path after that. And the key goes in as a bearer token, which Open WebUI does for you when you use the OpenAI connection type. If the model list stays empty, run curl against /v1/models with the same key from the machine that hosts Open WebUI. When it works there and not in the container, the container usually cannot reach the internet or has a DNS problem. The docs page shows the request format if you need to compare.
A realistic workflow: text model plus an image engine
The useful combination is not either-or. Image models respond well to dense, well-formed prompts, and writing those by hand is slow. A language model is good at expanding a loose idea into a structured prompt. So a common setup has three parts:
- Open WebUI as the front end, with this API as the chat model.
- A separate image engine that you run or pay for, connected in the image settings.
- A habit, or a small script, where the chat model writes the prompt and the image engine renders it.
In the chat you can ask for exactly what the image engine wants: a positive prompt, a negative prompt and a one-line style note. Then paste the positive part into the image field, or, if your Open WebUI version has a prompt-generation step for images, let it use the chat model for that. The content of the pictures is decided by the image engine and its own rules, not by this API. The text model only writes words.
This split is also practical for fiction and roleplay projects. A character sheet, a scene description and a list of visual details can all come from the chat model, in a voice that does not stop mid-story. The images that follow stay consistent when the same description block is reused for every render. Keep to lawful adult use, and note the hard limit: the API does not produce sexual content involving minors, and no wording of a prompt changes that.
Automating the prompt step with JSON mode
If you generate many images, copy-pasting becomes tedious. The API supports JSON mode, so a script can ask for a structured prompt and pass the fields to whatever image tool you use. The example returns three keys, and the system message fixes their names so your parser does not have to guess.
import json
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.unrestrictedvideogenerator.top/v1",
api_key=os.environ["LLM_API_KEY"],
)
scene = "Two travellers share a lantern in a flooded subway station at night."
resp = client.chat.completions.create(
model="uncensored",
response_format={"type": "json_object"},
temperature=0.7,
messages=[
{
"role": "system",
"content": (
"You write prompts for an image generator. Reply with a JSON object "
"with the keys positive, negative and style_notes. Each value is a "
"string. Keep positive under 60 words."
),
},
{"role": "user", "content": scene},
],
)
data = json.loads(resp.choices[0].message.content)
print(data["positive"])
print(data["negative"])
Three details make this reliable. First, the system message names the keys and says all values are strings. JSON mode makes the output valid JSON, but it does not know your schema, so you still describe the shape in words. Second, json.loads is wrapped in your own error handling in production code; if a reply is cut off by max_tokens, the JSON will be incomplete. Leaving max_tokens unset avoids that, since a completion can use the rest of the 100,000-token window. Third, a moderate temperature of 0.5 to 0.8 gives variety without wandering off the scene.
Most image engines accept a plain HTTP call or a workflow file. Feed the positive and negative strings into whichever fields yours expects. The glue code depends on the engine, which is why it is left out here.
What each piece costs
The text side is cheap to estimate. The price is $0.15 per 1M input tokens and $0.50 per 1M output tokens. A prompt-writing call like the one above sends roughly 300 input tokens (system message plus scene) and gets about 150 tokens back.
- Input: 300 x $0.15 / 1M = $0.000045
- Output: 150 x $0.50 / 1M = $0.000075
- Total per prompt: $0.00012
A thousand prompts therefore cost $0.12. Normal chatting in Open WebUI costs more per message because the interface sends the whole conversation each time. A chat of 20 turns with 2,000 tokens of history on average and 300 tokens per reply is 2,000 x $0.15 / 1M = $0.0003 for input and 300 x $0.50 / 1M = $0.00015 for output, so $0.00045 per turn. The image engine has its own cost or hardware bill, which this service does not set or see. The pricing page has the top-up options. Amounts run from $20 to $500, with a bonus of +5% from $50, +10% from $100 and +15% from $200, paid in USDT on TRC20 or USDC on Base. Credit has no expiry.
Limits and common problems
Open WebUI can send several requests in parallel when it generates chat titles, follow-up suggestions and tags in the background, on top of your own message. That matters on a trial key, which allows 2 concurrent requests. If you see HTTP 429 with the code concurrency, either switch the background title and tag generation off in the settings or move to a full key with 8 concurrent requests and 300 per minute. A rate_limited code means too many requests per minute, and a 429 with Retry-After: 5 is temporary overload, so waiting five seconds and retrying is correct. A streamed answer holds its slot until the stream ends.
Other problems you may hit:
- Empty model list. Check the URL ends in
/v1and the key has no stray spaces. - Image button does nothing. The image setting is not configured, or points at this API. Use a real image engine there.
- Replies cut short. Look for a max-token value set in the model or chat advanced parameters and remove it.
- Long documents. The window is 100,000 tokens for prompt plus completion. A request body is limited to 8 MB.
Prompts are not used for training. Your Open WebUI database, chat history and uploaded files stay on your own server.
When to pick something else
If your goal is a single app that takes a sentence and returns a finished picture, this API is the wrong tool on its own. You need an image model, and that is a different product with different hardware or a different provider. If your goal is to write the scripts, prompts, dialogue and lore around the pictures, with a text model that does not refuse adult fiction, this API fits, and Open WebUI is a comfortable way to use it. For the video side of the same idea, the text to video article on this site explains where a text model sits in a video pipeline.
