AI Photos (LoRAs)
Get LoRA
Look up a single LoRA by id — use this to poll training status.
GET /v2/loras/:id
Returns the same shape as the list endpoint. While a training is in flight (PENDING | UPLOADING | TRAINING), poll this every 10–30 seconds (or set a webhookUrl at create time and skip the polling entirely).
Status lifecycle
| Status | Meaning |
|---|---|
PENDING | Job queued, not yet picked up by a worker. |
UPLOADING | Worker is captioning images and uploading the dataset zip. |
TRAINING | Training in progress. Typical duration ~15–25 min. |
READY | Training succeeded. The LoRA is now usable with AI Photos generations. |
FAILED | Training failed. The 255cr training fee has been refunded; the 2cr create fee is also refunded if the failure happened before training started. The error field carries the message. |
ARCHIVED | Soft-deleted via DELETE /v2/loras/:id. Hidden from listings unless you pass includeArchived=true. |
Errors
| Code | When |
|---|---|
400 | Invalid LoRA id format. |
404 | LoRA doesn't exist or doesn't belong to your team. |