---
title: "Estimate training price"
method: POST
path: "/v1/workspaces/{workspace_id}/training-runs/estimate"
tags: ["Training"]
---

# Estimate training price

`POST /v1/workspaces/{workspace_id}/training-runs/estimate`

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

## Path parameters

- `workspace_id` string, uuid, required — Id of the workspace that owns the resource.

## Headers

- `Idempotency-Key` string

## Request body

- EstimateTrainingPriceRequest
  - `reference_set_id` string, uuid, required — The reference set to price training for.
  - `base_model_id` string, 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 `200`

Successful Response

- EstimateTrainingPriceResponse
  - `estimated_price_creative_units` number, required — Estimated Creative Units to train this reference set.
  - `base_model_id` string, required — The base model the estimate was computed for.
  - `workspace_balance_creative_units` number, required — Usable Creative Units balance (total minus reserved by in-progress work).
  - `estimated_remaining_balance_creative_units` number, required — Usable balance after subtracting the estimated price. Can be negative.
  - `has_sufficient_creative_units` boolean, required — Whether the workspace has enough available Creative Units to cover the estimate.

## Other responses

- `401` — Unauthenticated — missing or invalid Bearer token.
- `403` — Forbidden — insufficient permissions, or the access token lacks the scope the operation requires.
- `404` — Resource not found.
- `409` — The request with this `Idempotency-Key` is still running — retry after the number of seconds in `Retry-After`.
- `422` — Invalid input parameters, or an `Idempotency-Key` reused for a different request.
- `429` — Rate limited — retry after the number of seconds in `Retry-After`.
- `500` — Internal server error.

---

[API](https://skmtc.dev/layer/apis/layer-rest-api.md) · [All operations](https://skmtc.dev/layer/apis/layer-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/layer/layer-rest-api/revisions/fafc779f9ba2/schema)
