For the complete documentation index, see llms.txt. This page is also available as Markdown.

Discover LoRA trainers and compatible models

Discover LoRA trainers and compatible models with the FLORA API: GET /loras/trainers.

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.

GET https://app.flora.ai/api/v1/loras/trainers
  • Auth: API key as a bearer token, Authorization: Bearer $FLORA_API_KEY. See Authentication.

  • TypeScript SDK: client.loras.listTrainers().

  • Operation ID: listLoraTrainers.

Example

curl -X GET 'https://app.flora.ai/api/v1/loras/trainers?workspace_id=ws_abc123' \
  -H "Authorization: Bearer $FLORA_API_KEY"
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);

Query parameters

Name
Type
Required
Description

workspace_id

string

Yes

Workspace for trainer discovery and subsequent training. Pattern: ^ws_\S+$. Example: ws_abc123.

Responses

200: Available LoRA trainers returned.

Field
Type
Required
Description

trainers

array of objects

Yes

Available trainers using the same visibility and selection rules as the web Train dialog

trainers[].base_model

string

Yes

Family key to pass as base_model when training

trainers[].model_id

string

Yes

Selected trainer endpoint identifier; use the LoRA training endpoint to invoke it

trainers[].name

string

Yes

Trainer display name

trainers[].image_count

object

Yes

Image-count limits enforced by the shared training flow

trainers[].image_count.min

integer

Yes

Minimum number of training images

trainers[].image_count.max

integer

Yes

Maximum number of training images

trainers[].image_extensions

array of string

Yes

Accepted training-image formats

trainers[].params

array of objects

Yes

Caller-configurable trainer parameters with effective web/API defaults for a dataset without manual labels. Pass overrides in trainer_params.

trainers[].params[].name

string

Yes

Parameter name to pass in generation params

trainers[].params[].type

string

Yes

Parameter value type. One of: string, string[], bool, int, int?, seed, float, dict.

trainers[].params[].required

boolean

Yes

Whether the model requires this parameter

trainers[].params[].default

any

No

Default parameter value

trainers[].params[].min

number

No

Minimum numeric value

trainers[].params[].max

number

No

Maximum numeric value

trainers[].params[].label

string

No

Human-readable parameter label

trainers[].params[].description

string

No

Parameter help text

trainers[].params[].options

array of objects

No

Allowed values for enum-like parameters

trainers[].params[].options[].label

string

Yes

Displayed option label

trainers[].params[].options[].value

string

Yes

Option value to pass in generation params

trainers[].params[].options[].description

string

No

Option description

trainers[].params[].properties

map of object

No

Nested numeric properties for object parameters

trainers[].params[].properties.{key}.min

number

Yes

trainers[].params[].properties.{key}.max

number

Yes

trainers[].params[].properties.{key}.default

number

Yes

trainers[].inference_models

array of objects

Yes

Visible inference models accepting this trainer's family

trainers[].inference_models[].model_id

string

Yes

Compatible inference endpoint identifier for POST /generate

trainers[].inference_models[].name

string

Yes

Inference model display name

trainers[].inference_models[].lora_id_parameter

string

Yes

Put the returned sty_ Style identifier in this params field. Always lora_id.

trainers[].inference_models[].params

array of objects

Yes

Inference parameters, including the model's strength default and range. See the trainers[].inference_models[].params[] fields below.

trainers[].inference_models[].params[] fields

Field paths in this block are relative to trainers[].inference_models[].params[].

Field
Type
Required
Description

name

string

Yes

Parameter name to pass in generation params

type

string

Yes

Parameter value type. One of: string, string[], bool, int, int?, seed, float, dict.

required

boolean

Yes

Whether the model requires this parameter

default

any

No

Default parameter value

min

number

No

Minimum numeric value

max

number

No

Maximum numeric value

label

string

No

Human-readable parameter label

description

string

No

Parameter help text

options

array of objects

No

Allowed values for enum-like parameters

options[].label

string

Yes

Displayed option label

options[].value

string

Yes

Option value to pass in generation params

options[].description

string

No

Option description

properties

map of object

No

Nested numeric properties for object parameters

properties.{key}.min

number

Yes

properties.{key}.max

number

Yes

properties.{key}.default

number

Yes

Errors

Every error has the same body: error.code, error.message, and error.fields on validation errors. See Errors for how to recover from each code.

Status
Code
Meaning

400

invalid_json, input_validation_error

The body isn't valid JSON, or an input failed validation (fields lists each one).

401

unauthorized, invalid_api_key

The API key is missing, invalid or revoked.

402

insufficient_credits

The workspace balance is too low for this request.

403

forbidden, paid_plan_required

The key can't do this, or the workspace plan doesn't include it.

404

not_found

The resource doesn't exist or isn't visible to this key.

409

idempotency_duplicate, revision_conflict

Duplicate Idempotency-Key or a stale base_revision.

429

rate_limited

Too many requests. Back off and retry.

500

unknown_error, internal_error

Something failed on FLORA's side. Retry with backoff.

503

temporarily_unavailable

Authorization is temporarily unavailable. Retry later.

Last updated

Was this helpful?