PotionUI Docs v0.3.0

Models, providers and cloud models

Model files come to your server through provider plugins, and cloud models run on a provider's servers instead of your GPU. This guide explains which plugin does what, where each credential goes, how to unlock gated downloads, and how to set up cloud models with their costs and budgets.

GuideWritten for v0.3.0
On this page

Two kinds of provider#

PotionUI itself names no marketplace and no cloud service. Each one arrives as a plugin, and each plugin owns its own credentials. There is no global API key setting.

KindWhat it doesIts credential goes in
Marketplace providerFinds model files on a marketplace, reads their details and previews, and signs their downloads. Example: HuggingFace Provider, CivitAI Provider.Administration, Plugins, the plugin's Settings tab.
Cloud model providerRuns models on the provider's servers and returns the result. Example: OpenRouter, Black Forest Labs.The backend you create for it in Administration, Backends.

Two other plugins hold keys too: the RunPod Provider (rents GPU machines for remote workers, key in Administration, Plugins) and DeepSeek (a language model for the assistant, key in the configuration you create in Administration, LLM / Assistant). Every secret field is stored encrypted and never shown again after you save it.

Security

The stored credentials are encrypted with a key kept beside the database (secret.key, or POTIONUI_SECRET_KEY). Anyone who has that key can decrypt every credential, and without it the credentials cannot be recovered and must be entered again. Back it up separately and keep it out of anything you share. A provider plugin, like any plugin, runs with the application's own rights.

The plugins that ship with PotionUI#

These are in content/plugins/marketplace/ in 0.3.0. The HuggingFace Provider is turned on by default; turn the others on in Administration, Plugins.

PluginWhat it adds
Model files
HuggingFace ProviderFinds files on the Hugging Face Hub, resolves download links, and signs downloads from gated and private repositories with your access token.
CivitAI ProviderModel details, preview images and download links from CivitAI. Its API key is optional, recommended for higher rate limits.
Model BrowserBrowse and download models from CivitAI, Hugging Face and OpenModelDB. Its NSFW setting can only make the content policy stricter.
Cloud models
OpenRouterHosted image and video models through OpenRouter, with image (text to image, edit) and video (text to video, image to video) presets.
Black Forest LabsThe FLUX models hosted by Black Forest Labs, with an image preset (text to image, edit).
Google GeminiGoogle's hosted image models and Veo 3.1 through the Gemini API with a Google AI Studio key, with image and video presets.
OpenAIOpenAI's GPT Image models, with an image preset (text to image, edit with an optional mask).
Compute, engines and language models
ComfyUI BackendThe comfyui engine, its presets and workflow import. See Add a ComfyUI server.
RunPod ProviderStarts a RunPod GPU pod running the remote worker, from a worker backend's Infrastructure tab.
DeepSeekA DeepSeek type for assistant configurations.
OllamaA quick action that frees VRAM held by a local Ollama daemon.
Other
OpenID Connect LoginSign-in through an OpenID Connect issuer such as Authentik, Keycloak, Zitadel, Auth0 or Entra ID.
NVIDIA RTX UpscaleRTX Video Super Resolution for images and video, plus an interpolate mode that multiplies a video’s frame rate by 2 or 4 or converts it to a target rate, keeping the duration and the sound. Needs an NVIDIA RTX GPU and the nvidia-vfx package.
A1111 Metadata ExportExports generations as PNG files with A1111-style parameters.
System MonitorGPU, RAM and CPU readings in the sidebar.
Image Modal ViewerA full-screen viewer with zoom and pan.
Example Field Type, Example Frontend ExtensionsReference code for plugin authors.

Getting model files#

Presets never declare downloads. Model files reach the server when someone asks for them: through a recipe (Administration, Recipes, or Install on a mode that is not set up), the Model Browser, a model picker's recommended download, or Administration, Downloads. All of them go through one download queue, which asks the matching marketplace provider to sign the request. Files you place in a model folder yourself are found when the folder is indexed; see Your models and folders.

Gated model files and tokens#

Some Hugging Face repositories are gated: you must accept the model's licence on Hugging Face before the files download. LTX-2.5, for example, lives in a gated repository. Public repositories download without any token.

  1. Accept the licence on Hugging Face

    Signed in to Hugging Face with the account whose token you will use, open the model's page and accept its terms. Wherever PotionUI recommends a gated file, or fails to download one, it shows an Open on Hugging Face link to that page.

  2. Create an access token

    Create one at huggingface.co/settings/tokens.

  3. Give it to PotionUI

    In Administration, Plugins, open HuggingFace Provider, then its Settings, and paste the token into HuggingFace Access Token. Save.

    What you will see

    A retried download of the gated file now starts. A download that still fails with an authentication error means the token is missing, or its account has not been granted access to that repository.

Set up cloud models#

A cloud model is a model that runs on a provider's servers. Users pick it in a preset like any other model and the result lands in their gallery. Behind it sit a provider plugin, a backend holding your account's key, the provider's catalog, and the provider's presets.

Ways to do this
  1. Turn on the provider's plugin

    In Administration, Plugins, turn on the provider, for example OpenRouter, and restart PotionUI. Providers are collected when the server starts.

  2. Create a backend with your key

    In Administration, Backends, choose Add backend and pick the provider. Paste the API key of your account with that provider, and fill in any other field it asks for.

  3. Load the catalog

    Open the backend's Catalog tab and choose Refresh catalog. The tab lists what the provider offers, with prices, and can be filtered by task and output.

  4. Enable the models people may use

    Nothing is enabled by default. Enable models one by one or select several.

  5. Make the provider's presets available

    The tab offers Open presets. Install the provider's presets in Administration, Presets, and assign them to users or groups.

    What you will see

    People with access find the provider's preset on Generate. Its model picker lists only that provider's enabled models assigned to them, and the form's controls follow the model they pick.

The catalog and its settings#

  • Refresh marks models the provider no longer lists as missing and keeps them; they come back if the provider lists them again. A refresh that finds no models at all changes nothing, so a provider outage cannot hide every model. Badges mark missing and deprecated models.
  • Disabling a model hides it but keeps its history, assignments and custom names for when you enable it again.
  • Parallel jobs: how many generations run on this backend at once, 4 by default, from 1 to 32. Local backends run one at a time.
  • Timeout: the longest one generation may run, 1800 seconds by default.
What leaves your server

The Catalog tab shows the provider's data notice. A cloud job sends the provider the rendered prompt, the selected input media, the parameters and the seed. The notice says where the provider routes it and how long it keeps results. PotionUI downloads every result at once and never links to the provider's copy.

Who can use a cloud model#

Cloud models follow the same rules as model files: administrators see every enabled model, everyone else only the models assigned to them or to their groups. Members of Restricted content get cloud models only by explicit assignment. Assign them, rename them and add them to collections on the model's page in Administration, Models.

An enabled model is offered in every preset of its provider that can use it. You can limit one to a list of presets; it is then refused in any other preset with “is not available in this preset”.

Costs and budgets#

Every successful cloud job's cost is recorded and shown to administrators only. No price or cost ever reaches a regular user's screen, history or gallery.

  • A cost is the amount the provider reported, or an estimate from the catalog's prices when it reported none, or unknown when nothing could be estimated.
  • Administration, Generations has a Cost column and a cost section on each run. Administration, Stats shows Cloud spend by backend and model.
  • A cancelled or failed request writes no cost. A job the provider accepted and billed but then failed leaves no cost row, so reconcile with the provider's own dashboard.
  • When a provider cannot cancel, or does not confirm, a cancelled run says “Stopped waiting. The provider may still finish this job and bill it.” and no result is fetched.

To cap spending per person, give a plan the limit Cloud spend per month in US dollars. It is checked when a cloud generation starts and resets on the first of each month. Users see how much of their budget is used as a percentage, never in dollars. See Plans and limits.

When a cloud job fails#

The user sees a plain message; administrators see the cause in Administration, Generations.

CodeCause
cloud_authThe provider rejected the key. Check the backend's credentials.
cloud_creditsThe provider account is out of credits.
cloud_refusedThe provider refused the request, for example by its moderation.
cloud_rate_limitedStill rate limited after the retries.
cloud_unavailableThe provider, or the network path to it, was down.
cloud_timeoutThe backend's time limit, or the provider's, passed.
cloud_invalid_requestThe provider rejected the parameters.
cloud_failed, cloud_expiredThe job failed, or its result expired, at the provider.

A marketplace error reading “Provider 'x' not found” means its plugin is off; “Provider 'x' is not initialized” means the plugin is on but its settings, usually the key, are not filled in.

Model licences#

PotionUI is distributed without any model weights. Models are downloaded or installed only at your request, from sources you choose, and every model comes under its own licence: permissive, use-restricted, non-commercial and region-restricted terms all exist, and they are an agreement between you and the model's licensor. PotionUI's GPL-3.0 licence covers the software only. You are solely responsible for the models you obtain and what you do with them: for checking that you may download and run a model under its licence and the laws that apply to you, and for the content you generate with it.

Cloud models ↗Providers ↗