Skip to main content
Send an Idempotency-Key header and an empty JSON body to freeze training and validation inputs for the current configuration. Poll each non-null ID in exports with GET /api/v2-beta/exports/{exportId} until its status is succeeded or failed. A failed export blocks the estimate with an export_failed issue. Once all exports succeed, send the input set’s id as inputSetId to POST /api/v2-beta/trainings/{trainingId}/cost-estimate before expiresAt. Test rows are excluded, except validation rows in a part with both validate and test roles in the selected split field.

Signature

Method signature on client.trainings:

Parameters

string
required
Training draft ID with prefix trg..
string
required
A caller-generated key reused for retries of one logical request.

Returns

Promise<TrainingCostEstimateInputSet> Frozen training and validation inputs prepared for a cost estimate.
TrainingCostEstimateInputSetId
required
The immutable input set used to calculate a Training Cost Estimate.
TrainingId
required
Training draft ID with prefix trg..
string
required
Dataset cutoff for these frozen inputs, as an ISO 8601 timestamp.
string
required
Deadline for estimating and starting a run with this input set, as an ISO 8601 timestamp.
object
required
Export IDs to poll until all non-null exports succeed before estimating the cost.
string
required
Time this input set was prepared, as an ISO 8601 timestamp.

Errors

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