Skip to content

Get a saved LoRA Style

GET
/loras/{styleId}
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const lora = await client.loras.retrieve({
styleId: '<styleId>',
workspace_id: 'ws_abc123',
});
console.log(lora);

Reads saved Style readiness, compatible base-model family and prompt metadata in an explicitly authorized workspace. Missing, deleted and inaccessible Styles return 404. A failed training run may remove its pending Style; inspect the run_id returned by training for the failure and final charge. Weight download URLs and training images are not exposed.

Error responses use the standard error body.

styleId
required

Saved Style identifier returned by LoRA training

string
/^sty_\S+$/

Saved Style identifier returned by LoRA training

workspace_id
required

Workspace in which the Style will be used

string
/^ws_\S+$/

Workspace in which the Style will be used

Saved Style returned.

Media type application/json
object
style_id
required

Saved Style identifier

string
/^sty_\S+$/
name
required

Saved Style name

string
base_model
required
Any of:
string
status
required

Ready means the saved Style has usable weights or a provider Style identifier

string
Allowed values: training ready unavailable
keyword
required
Any of:
string
style_prompt
required
Any of:
string
run_id
required
Any of:

Run identifier

string
/^run_\S+$/
Example
{
"style_id": "sty_abc123",
"status": "training",
"run_id": "run_abc123"
}