API reference · Schema
FineTuneEstimate
objectstringrequiredAlways `fine_tune_estimate`: the type of this object
One of
fine_tune_estimatemodelstringrequiredModel ID (`publisher/name`)
training_tokensintegerrequiredepochs × training-file tokens
evaluation_tokensintegerrequiredepochs × evaluations per epoch × validation-file tokens
billable_tokensintegerrequired`training_tokens` plus `evaluation_tokens`: what the estimate prices
ShowHide 5 fields of
priceunit_pricestringrequiredInteger nano-USD as a decimal string
pattern ^-?[0-9]+$
unit_quantitystringrequiredTokens the unit price is for
per_million_tokensstringrequiredInteger nano-USD as a decimal string
pattern ^-?[0-9]+$
display_unitstring | nullrequiredLabel of the unit for display; null when none is set
price_book_versionintegerrequiredVersion of the price book the price comes from
estimated_coststringrequiredInteger nano-USD as a decimal string
pattern ^-?[0-9]+$
reservationstringrequiredCredit reserved when the job is created (released down to the actual charge at the end)
pattern ^-?[0-9]+$
token_estimate_methodstringrequiredHow file tokens were estimated: characters divided by 4, plus the model's per-example template overhead. The job is billed on the exact count.
One of
characters_div_4
{
"object": "fine_tune_estimate",
"model": "string",
"training_tokens": 1,
"evaluation_tokens": 1,
"billable_tokens": 1,
"price": {
"unit_price": "1500000000",
"unit_quantity": "string",
"per_million_tokens": "1500000000",
"display_unit": "string",
"price_book_version": 1
},
"estimated_cost": "1500000000",
"reservation": "1500000000",
"token_estimate_method": "characters_div_4"
}Used by
- Price estimate for fine-tuning on a validated dataset
GET /v1/fine-tunes/estimate