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.
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-xlQuote 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.
What you get
Section titled “What you get”- A private model under your handle,
{handle}/{name}, pinned to the fleet you chose (turionunless 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.kindiscivitai,source.urlis the Civitai model page, andsource.refiscivitai:{modelId}@{versionId}. See Version provenance.
What runs
Section titled “What runs”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.
What can be imported
Section titled “What can be imported”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.
Run it
Section titled “Run it”The runner is text-to-image. prompt is the only required input:
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])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).
Inputs
Section titled “Inputs”| Input | Type | Default | Range | Meaning |
|---|---|---|---|---|
prompt | string | — (required) | Text prompt. Compel weighting syntax is supported | |
negative_prompt | string | "" | Negative prompt | |
width | integer | 1024 | 256–2048 | Image width in pixels |
height | integer | 1024 | 256–2048 | Image height in pixels |
steps | integer | 30 | 1–100 | Sampling steps |
cfg_scale | number | 7 | 1–50 | CFG / guidance scale |
guidance_rescale | number | 0.5 | 0–5 | CFG rescale to avoid overexposure (0 disables) |
pag_scale | number | 3 | 0–50 | Perturbed-Attention Guidance scale (0 disables) |
clip_skip | integer | 2 | ≥ 1 | CLIP layers to skip (A1111-aligned; 2 = penultimate) |
preprompt | string | "" | Text prepended to the prompt | |
negative_preprompt | string | "" | Text prepended to the negative prompt | |
seed | integer | -1 | Seed; -1 for random | |
scheduler | string | Euler a | Euler a, Euler, DPM++ 2M, DPM++ 2M Karras, DDIM | |
batch_size | integer | 1 | 1–4 | Number 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.
Options
Section titled “Options”turion host https://civitai.com/models/827184 --name lighthouseturion host https://civitai.com/models/827184 --fleet my-gpus--namesets the model name (the slug becomes{handle}/{name}); the default comes from the Civitai model’s name.--fleetpins 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,--workdirand--gpusare 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.
When it can’t be imported
Section titled “When it can’t be imported”| Code | Cause | What to do |
|---|---|---|
civitai_login_required | the creator requires a Civitai login to download | pick a checkpoint that downloads without one |
unsupported_model_type | the URL is a LoRA, VAE, embedding or other non-checkpoint | import the checkpoint itself (for a LoRA, the one it was trained for) |
unsupported_model_family | the checkpoint is SD 1.5, Flux or another family | use an SDXL 1.0, Pony, Illustrious or NoobAI checkpoint |
unsupported_url | not a Civitai model page URL, or a ?modelVersionId= that is not a number | paste the model page URL, https://civitai.com/models/{id}, not a download or image link |
unsupported_model_file | the published file name cannot be used as a file name in the weight cache | pick 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.
Licensing
Section titled “Licensing”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.
See also
Section titled “See also”turion host: every flag, and the other sources.POST /v1/imports/civitai: call it yourself.- Migrate from Replicate: the other one-command source.
- Fleets: run the model on your own GPUs.