Rename an own LoRA
const url = 'http://localhost:8300/v1/studio/loras/example';const options = { method: 'PATCH', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:8300/v1/studio/loras/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "name": "example" }'name trimmed, then 1-80 characters without control characters (422 name must be 1-80 characters, name must not contain control characters). Takes made before keep the name they recorded. 409 shared LoRAs are managed on their host for a shared id.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A shared LoRA’s SHA-256 (64 hex) or an own LoRA’s UUID (malformed = 404)
Request Bodyrequired
Section titled “Request Bodyrequired”object
Trimmed; must then be 1-80 characters
Example generated
{ "name": "example"}Responses
Section titled “Responses”The LoRA
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
Shared: the file’s SHA-256; mine: a UUID
Shared: a file on the GPU hosts (registry <host>.<env>.loras), usable by everyone; mine: the caller’s own upload
The model family it fits (qwen-image), or unknown (it fits no family published now, or not checked yet)
The largest A/B rank
From the file’s metadata (modelspec.license, else license); null when it names none
Shared: the live hosts that have it (sorted); mine: [] (any host fetches it on first use)
Own LoRAs: pending (created, not completed), ready (checked and indexed), rejected (a check failed: reason); shared ones are always ready
Rejected: why (the complete call’s 422 detail); null otherwise
Mine: the upload’s creation; shared: the file’s mtime (the oldest over its hosts)
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
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
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Invalid input
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}