Skip to content

Host a Civitai model

turion host <civitai-url> turns a Civitai checkpoint into a model on your Turion account. Paste the model page URL; Turion resolves the version and returns a private model with v1 already registered. --name picks the model’s name; without it, the name comes from the Civitai page.

Terminal window
turion host "https://civitai.com/models/827184?modelVersionId=1490781" --name illustrious-xl
# hosting https://civitai.com/models/827184?modelVersionId=1490781 on fleet turion
# hosted acme/illustrious-xl@v1 https://turion.ai/members/models/acme/illustrious-xl

Quote the URL: zsh, the macOS default shell, otherwise reads the ? as a filename pattern.

Nothing is built on your machine: no Docker, no cog.yaml, no predict.py. The import happens on the server in one API call. Host it on the workspace’s Host a model page calls the same endpoint.

  • A private model under your handle, {handle}/{name}, pinned to the fleet you chose (turion unless you passed --fleet).
  • The same endpoints as any other model: POST /v1/predictions, POST /v1/run/{owner}/{model}, turion run, the Python SDK, webhooks, sync mode and autoscaling.
  • Provenance on the version: source.kind is civitai, source.url is the Civitai model page, and source.ref is civitai:{modelId}@{versionId}. See Version provenance.

The version runs Turion’s shared sdxl-runner image, configured with the Civitai version to load. On the first cold start on a node, the container downloads the checkpoint from Civitai (about 6.5 GB) into the node’s weight cache and loads it; later containers for that checkpoint on that node skip the download. That download is why the first run of a newly imported model takes a while; see Cold starts.

Because the runner is shared, every imported checkpoint has the same inputs and the same output shape. There is no per-checkpoint schema to read.

SDXL-family checkpoints that download without a Civitai login: the SDXL 1.0, Pony, Illustrious and NoobAI base models, with the Civitai model type Checkpoint.

Everything else is refused with a named error:

  • LoRAs, VAEs and embeddings, which are other Civitai model types.
  • Checkpoints whose creator requires a signed-in Civitai account to download.
  • Other families, such as SD 1.5, SD 3 and Flux.

The runner is text-to-image. prompt is the only required input:

Terminal window
turion run acme/illustrious-xl -i prompt="a lighthouse at dusk, storm clouds"
import turion
client = turion.Client()
out = client.run(
"acme/illustrious-xl",
input={"prompt": "a lighthouse at dusk, storm clouds", "steps": 30, "seed": 1234},
)
print(out["images"][0])
Terminal window
curl -X POST https://api.turion.ai/v1/run/acme/illustrious-xl \
-H "Authorization: Bearer tk_…" -H "Content-Type: application/json" \
-d '{"input": {"prompt": "a lighthouse at dusk, storm clouds"}}'

The output is {"images": [...]}, one HTTPS URL per image, like any other model’s file output (Files & outputs).

InputTypeDefaultRangeMeaning
promptstring— (required)Text prompt. Compel weighting syntax is supported
negative_promptstring""Negative prompt
widthinteger1024256–2048Image width in pixels
heightinteger1024256–2048Image height in pixels
stepsinteger301–100Sampling steps
cfg_scalenumber71–50CFG / guidance scale
guidance_rescalenumber0.50–5CFG rescale to avoid overexposure (0 disables)
pag_scalenumber30–50Perturbed-Attention Guidance scale (0 disables)
clip_skipinteger2≥ 1CLIP layers to skip (A1111-aligned; 2 = penultimate)
prepromptstring""Text prepended to the prompt
negative_prepromptstring""Text prepended to the negative prompt
seedinteger-1Seed; -1 for random
schedulerstringEuler aEuler a, Euler, DPM++ 2M, DPM++ 2M Karras, DDIM
batch_sizeinteger11–4Number of images to generate

Most Civitai checkpoints publish recommended quality tags on their model page. The runner adds none of them; put them in preprompt and negative_preprompt so they are prepended to every prompt.

Terminal window
turion host https://civitai.com/models/827184 --name lighthouse
turion host https://civitai.com/models/827184 --fleet my-gpus
  • --name sets the model name (the slug becomes {handle}/{name}); the default comes from the Civitai model’s name.
  • --fleet pins the model to a fleet you own, so predictions run on your own GPUs. The endpoint, the runner and the inputs do not change.
  • A bare model URL imports the model’s newest version. To pick one, paste the URL with ?modelVersionId= (in quotes), which is what Civitai’s version picker gives you.
  • --registry, --workdir and --gpus are ignored for Civitai URLs; nothing is built locally.

Importing is idempotent per account and Civitai version: running the same turion host twice returns the same model, not a second one.

CodeCauseWhat to do
civitai_login_requiredthe creator requires a Civitai login to downloadpick a checkpoint that downloads without one
unsupported_model_typethe URL is a LoRA, VAE, embedding or other non-checkpointimport the checkpoint itself (for a LoRA, the one it was trained for)
unsupported_model_familythe checkpoint is SD 1.5, Flux or another familyuse an SDXL 1.0, Pony, Illustrious or NoobAI checkpoint
unsupported_urlnot a Civitai model page URL, or a ?modelVersionId= that is not a numberpaste the model page URL, https://civitai.com/models/{id}, not a download or image link
unsupported_model_filethe published file name cannot be used as a file name in the weight cachepick another version

All five arrive in the standard error envelope with details.source_kind set to civitai. The endpoint’s other responses (409, 502, 503) are in the REST API reference.

A Civitai checkpoint carries the licence its creator chose, and importing it does not change that. Read the model page’s permissions before you serve it to your users; commercial use, derivative models and credit requirements vary per checkpoint.