v12

OpenAPI 3.1.02026-08-031000506.8 KB
Styles

Train a custom style (LoRA)

Train a custom style (LoRA) with simplified parameters. Uses intelligent defaults based on the training type (Default/Style/Object/Character).

post/styles/train

Headers

X-Webhook-URLstring uri

URL to receive a POST request when the job completes. The webhook will receive the job data including results.

Request body

OR

Response

Training job created successfully. The job will be in a pending state until completed. Use /jobs/{id} to check progress.

job_idstring uuid required
status'backlogged' | 'queued' | 'scheduled' | 'processing' | 'sampling' | 'intermediate-complete' | 'completed' | 'failed' | 'cancelled' required
created_atstring date-time required
{"stackTrail":"paths:/styles/train:post:responses:200:content:application/json:schema:properties:completed_at","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/styles/train:post:responses:200:content:application/json:schema:properties:result","oasType":"schema","type":"unknown"}