Discover LoRA trainers and compatible models
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const lora = await client.loras.listTrainers({ workspace_id: 'ws_abc123',});console.log(lora);curl -X GET 'https://app.flora.ai/api/v1/loras/trainers' \ -H 'Authorization: Bearer $FLORA_API_KEY'Returns available LoRA families, selected trainers, image limits and supported training parameters with the same effective defaults as the web Train dialog for a dataset without manual labels. Also returns compatible visible inference model IDs and their parameter defaults/ranges. Pass the base_model key to POST /loras/train; when its saved Style is ready, use params.lora_id with one of the compatible inference models. Trainer image inputs and fixed output formats are managed by the training service and are not caller-configurable.
Error responses use the standard error body.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Workspace for trainer discovery and subsequent training
Workspace for trainer discovery and subsequent training
Responses
Section titled “ Responses ”Available LoRA trainers returned.
object
Available trainers using the same visibility and selection rules as the web Train dialog
object
Family key to pass as base_model when training
Selected trainer endpoint identifier; use the LoRA training endpoint to invoke it
Trainer display name
Image-count limits enforced by the shared training flow
object
Minimum number of training images
Maximum number of training images
Accepted training-image formats
Caller-configurable trainer parameters with effective web/API defaults for a dataset without manual labels. Pass overrides in trainer_params.
object
Parameter name to pass in generation params
Parameter value type
Whether the model requires this parameter
Default parameter value
Minimum numeric value
Maximum numeric value
Human-readable parameter label
Parameter help text
Allowed values for enum-like parameters
object
Displayed option label
Option value to pass in generation params
Option description
Nested numeric properties for object parameters
object
object
Visible inference models accepting this trainer’s family
object
Compatible inference endpoint identifier for POST /generate
Inference model display name
Put the returned sty_ Style identifier in this params field
Inference parameters, including the model’s strength default and range
object
Parameter name to pass in generation params
Parameter value type
Whether the model requires this parameter
Default parameter value
Minimum numeric value
Maximum numeric value
Human-readable parameter label
Parameter help text
Allowed values for enum-like parameters
object
Displayed option label
Option value to pass in generation params
Option description
Nested numeric properties for object parameters
object
object
Example
{ "trainers": [ { "params": [ { "type": "string" } ], "inference_models": [ { "lora_id_parameter": "lora_id", "params": [ { "type": "string" } ] } ] } ]}