Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

Check the uploaded file and index it

POST
/v1/studio/loras/{lora_id}/complete
curl --request POST \
--url http://localhost:8300/v1/studio/loras/example/complete \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <x-api-key>'

Studio never trusts the client: it HEADs the object (size = the declared size_bytes), reads the safetensors header with range GETs, then streams the whole object once to hash it (SHA-256; a 2 GB file takes seconds) and checks it. Success: state: ready with sha256, rank, key_style, family (the first registry family by name the normaliser fits, else unknown) and licence. A failed check: 422 with the reason, and the LoRA stays listed rejected with that reason (until deleted; the sweep removes its object): size differs from the declared bytes, pickle checkpoints are not accepted; convert it to safetensors, not a safetensors file, safetensors header is larger than 8 MB, tensor <key> lies outside the file, tensor <key> has dtype <d>; LoRAs must be F32, F16 or BF16, no LoRA keys found (is it a full model?), <key> is not a LoRA weight, <module>: lora_A and lora_B ranks differ, <module>: lora_B is video), not a stack LoRA. 409 upload not received while the object is not there yet (PUT it, then call again). Calling again after it ended answers the same (200 ready, or the same 422). 404 for an id that is unknown, another user’s or shared.

lora_id
required
string

A shared LoRA’s SHA-256 (64 hex) or an own LoRA’s UUID (malformed = 404)

The LoRA, ready

Media typeapplication/json

A LoRA in the library. Shared and own LoRAs have one shape; hosts is set only for shared ones, reason only for a rejected one. rank, key_style, sha256 are null until an own LoRA is ready.

object
id
required

Shared: the file’s SHA-256; mine: a UUID

string
/^([0-9a-f]{64}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/
source
required

Shared: a file on the GPU hosts (registry <host>.<env>.loras), usable by everyone; mine: the caller’s own upload

string
Allowed values: shared mine
name
required
string
>= 1 characters <= 80 characters
family
required

The model family it fits (qwen-image), or unknown (it fits no family published now, or not checked yet)

string
rank
required

The largest A/B rank

integer | null
>= 1 <= 4096
size_bytes
required
integer
>= 1
key_style
required
One of:

How the file names its tensors

string
Allowed values: peft kohya comfyui
licence
required

From the file’s metadata (modelspec.license, else license); null when it names none

string | null
<= 200 characters
sha256
required
string | null
/^[0-9a-f]{64}$/
hosts
required

Shared: the live hosts that have it (sorted); mine: [] (any host fetches it on first use)

Array<string>
state
required

Own LoRAs: pending (created, not completed), ready (checked and indexed), rejected (a check failed: reason); shared ones are always ready

string
Allowed values: pending ready rejected
reason
required

Rejected: why (the complete call’s 422 detail); null otherwise

string | null
thumb_url
required
One of:

Signed, time-limited link; opaque

string
created_at
required

Mine: the upload’s creation; shared: the file’s mtime (the oldest over its hosts)

string format: date-time
prefused

Shared only: the title of a model a host publishes with this LoRA pre-fused into its weights (its file cannot be deleted: delete the model instead); absent otherwise

string
>= 1 characters

Example

{
"source": "shared",
"family": "qwen-image",
"key_style": "peft",
"state": "pending",
"thumb_url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12"
}

Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Not found

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

The resource’s state forbids this

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}