Skip to main content
POST
Estimate the fee of continuing a family

Authorizations

Authorization
string
header
required

Create an API key in the console. Required when accounts are enabled.

Path Parameters

family
string
required

Body

application/json

A family's next fine-tune, from its latest model on its dataset's newer rows, as its estimate takes it: the body that starts it, without max_price_usd.

hyperparameters
Hyperparameters · object
latest
string | null

The id of the family's latest model you saw, or null for none. If the family has moved on since, nothing is queued and the request is refused with family_changed.

Maximum string length: 140

Response

Successful Response

currency
string
required
Allowed value: "USD"
price_usd
string
required

The fee a fine-tune started now with the same body would hold, as exact USD: its base's fine_tune_million_tokens_usd for trained_tokens, and at least fine_tune_minimum_usd. 0 when it would be free. The job's price_usd is this sum while the prices, the account, the dataset and the family stay as they are; send it as max_price_usd, and a job that would cost more is refused with price_changed.

minimum_applied
boolean
required

True when the fee is fine_tune_minimum_usd, which is more than its training tokens cost.

trained_tokens
integer | null
required

The training tokens it would train, as the job's split.trained_tokens counts them. Null only for a free fine-tune whose rows can't be counted.

steps
integer
required

Its training steps: the ones sent, or the default passes.

seed
integer
required

Its seed, which orders the rows its steps take.

passes
number
required

How many times its steps go over its training rows, to two decimals.

train_rows
integer
required

The training rows it trains on: a continuation's new rows and the earlier rows sampled with them.

dataset_version
integer
required

The dataset version it would train on: its newest.