Skip to main content
POST
Price a fine-tuning run (non-spending): estimated tokens, cost, minutes, serving price, and a quoteId valid 120 s

Authorizations

Authorization
string
header
required

A management token: minted by the OAuth flow (aireserve login, or an MCP client's Authenticate step) or on the portal Keys page under Management Keys. Inference API keys are refused.

Body

application/json
datasetId
string
required

Dataset id or folder name

baseModel
string
required

Canonical base id from list_training_bases, e.g. meta-llama/llama-3.1-8b-instruct

method
enum<string>
required

lora (an adapter; small, cheap to train) or full (own weights; more to train)

Available options:
lora,
full
serving
enum<string>
required

How the result must be servable: dedicated (per hour) or download (weights only). serverless is accepted but refused with the alternative until our own multi-adapter lane ships

Available options:
serverless,
dedicated,
download
maxCostUsd
number
required

Training cost ceiling in USD

Required range: 0 <= x <= 100000
clientId
string<uuid>

Target organization id — platform admins only; omit otherwise

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
hyperparameters
object

Response

Executed successfully (ok: true).

status
enum<string>
required
Available options:
executed
ok
boolean
required

Whether the operation succeeded.

summary
string
required

The consent line describing what was done, built from resolved labels.

message
string
required

Human-readable result line.

data
any

Operation payload (reads) or detail worth relaying (writes).

secret
string

A one-time secret the operation minted (API key, credential). Shown once; store it now.

sensitive
enum<boolean>

Present exactly when secret is: redact this response from logs.

Available options:
true