Browse documentationActivate LoRA

POST /api/v1/loras/{lora_id}/save

API version: v1.2.4

Activate a LoRA model, extending its expiry to 7 days and marking it as ready for use.

Endpoint

Plain text
POST /api/v1/loras/{lora_id}/save

Authentication

Required. Include your API key in the request header:

Plain text
X-API-Key: your-api-key-here

Path Parameters

ParameterTypeRequiredDescription
lora_idstringYesThe LoRA model ID to save

Precondition

The LoRA must have status trained - despite the name, this is simply the wire value for "finished and usable", set once a LoRA uploaded via POST /api/v1/storage/lora/upload or imported via POST /api/v1/storage/lora/import has finished processing.

Request Body

FieldTypeRequiredDescription
namestringNoDisplay name for the saved LoRA

Response

Success (200 OK)

JSON
{
  "lora_id": "660f9500-f30c-52e5-b827-557766551111",
  "name": "My Custom LoRA",
  "status": "ready"
}

Examples

curl -X POST "https://phosor.ai/api/v1/loras/660f9500/save" \
  -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"name": "My Saved LoRA"}'

Error Responses

Invalid Status (400)

JSON
{
  "error": "Cannot save LoRA",
  "detail": "LoRA must have status 'trained' to be saved"
}