Training

Estimate training price

Estimate the Creative Units cost of training a LoRA for a reference set.

post/v1/workspaces/{workspace_id}/training-runs/estimate

Path parameters

workspace_idstring uuid required

Id of the workspace that owns the resource.

Id of the workspace that owns the resource.

Headers

Idempotency-Keystring

Opaque key making this request safe to retry. The first request with a given key executes; a later request with the same key returns that first response with Idempotent-Replayed: true instead of executing again. The key covers the method, path, query, and body it was first used with; reusing it for a different request is rejected with 422. Replayable for 24 hours.

Request body

reference_set_idstring uuid required

The reference set to price training for.

base_model_idstring nullable

Base model to train. Omit to use the reference set's configured or workspace default model.

training_framework'fal' | 'ai-toolkit' nullable

Training framework override. Omit for the server default.

Response

Successful Response

estimated_price_creative_unitsnumber required

Estimated Creative Units to train this reference set.

base_model_idstring required

The base model the estimate was computed for.

workspace_balance_creative_unitsnumber required

Usable Creative Units balance (total minus reserved by in-progress work).

estimated_remaining_balance_creative_unitsnumber required

Usable balance after subtracting the estimated price. Can be negative.

has_sufficient_creative_unitsboolean required

Whether the workspace has enough available Creative Units to cover the estimate.

Changes

No recorded changes to this endpoint across all 1 revision of this API.