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

Authorizations

Authorization
string
header
required

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

Body

application/json

A new family's first fine-tune, from a base or one of your models, as its estimate takes it: the body that starts it, without max_price_usd.

dataset_id
string
required
Pattern: ^ds_[a-f0-9]{24}$
family
string
required

The new family's name: lowercase letters and digits, with single hyphens between them, 2 to 63 characters. A name already taken is refused with family_exists.

Maximum string length: 63
Pattern: ^[a-z](?:-?[a-z0-9]){1,62}$
from
string
default:sqwish-decision-core

Where the family starts: a base model that can be fine-tuned, or one of your models as family@N, which it trains from on that model's base. Left out, Core.

Required string length: 1 - 140
method
enum<string>
default:sft
Available options:
sft,
reward
hyperparameters
Hyperparameters · object

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.