Skip to main content
Send the prepared inputSetId. Returns either a maximum charge and fingerprint for starting a run, or issues that block training. Returns 409 while inputs are still being prepared or after they expire.

Signature

Method signature on client.trainings:

Parameters

string
required
Training draft ID with prefix trg..
string
required
The immutable input set used to calculate a Training Cost Estimate.

Returns

Promise<TrainingCostEstimate> A validation result and conservative maximum price for one Training draft.
TrainingId
required
Training draft ID with prefix trg..
TrainingCostEstimateInputSetId
required
The immutable input set used to calculate a Training Cost Estimate.
string
required
Dataset cutoff used to select the inputs, as an ISO 8601 timestamp.
TrainingCostEstimateInputs
required
Prepared inputs and their validation reports.
string
required
Version of the model capability rules used for this estimate.
string
required
Version of the pricing rules used for this estimate.
string
required
Time the estimate was calculated, as an ISO 8601 timestamp.
"blocked" | "ready"
required
Estimate status; blocked means the reported issues must be resolved before starting a run. Estimate status; ready means the inputs passed validation and a maximum charge is available.
TrainingCostEstimateIssue[]
required
Issues preventing a ready cost estimate. Blocking issues; always empty for a ready estimate.
TrainingResourceBudget
Estimated and maximum training resource usage.
string
Maximum charge in US dollars as a decimal string.
"USD"
Currency used for the estimate; always USD.
string
SHA-256 fingerprint of this estimate, as 64 lowercase hexadecimal characters; send it when starting the run.

Errors

HTTP errors throw PotatoApiError. The endpoint documents these error responses: HTTP endpoint: POST /trainings/{trainingId}/cost-estimate.