Skip to content
Hayonix

API reference · Schema

FineTuneEstimate

  • objectstringrequired

    Always `fine_tune_estimate`: the type of this object

    One offine_tune_estimate

  • modelstringrequired

    Model ID (`publisher/name`)

  • training_tokensintegerrequired

    epochs × training-file tokens

  • evaluation_tokensintegerrequired

    epochs × evaluations per epoch × validation-file tokens

  • billable_tokensintegerrequired

    `training_tokens` plus `evaluation_tokens`: what the estimate prices

  • priceTrainingPricerequired
    Show 5 fields of price
    • unit_pricestringrequired

      Integer nano-USD as a decimal string

      pattern ^-?[0-9]+$

    • unit_quantitystringrequired

      Tokens the unit price is for

    • per_million_tokensstringrequired

      Integer nano-USD as a decimal string

      pattern ^-?[0-9]+$

    • display_unitstring | nullrequired

      Label of the unit for display; null when none is set

    • price_book_versionintegerrequired

      Version of the price book the price comes from

  • estimated_coststringrequired

    Integer nano-USD as a decimal string

    pattern ^-?[0-9]+$

  • reservationstringrequired

    Credit reserved when the job is created (released down to the actual charge at the end)

    pattern ^-?[0-9]+$

  • token_estimate_methodstringrequired

    How 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 ofcharacters_div_4

Example
{
  "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