Skip to main content
POST
Quote a run

Authorizations

Authorization
string
header
required

Your AI Reserve API key (aireserve_api_…) from the API Keys page in the portal (https://portal.aireserve.com/keys).

Body

application/json
name
string
required
Required string length: 1 - 120
datasetId
string<uuid>
required
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)$
baseModel
string
required
Required string length: 1 - 200
method
enum<string>
required
Available options:
lora,
full
serving
enum<string>
required
Available options:
serverless,
dedicated,
download
maxCostUsd
number
required
Required range: 0 <= x <= 100000
hyperparameters
object
providerParameters
object

Response

OK

quoteId
string
required

Signed quote; pass it to POST /v1/training/jobs within 120 seconds.

expiresAt
string
required
baseModel
string
required
method
enum<string>
required
Available options:
lora,
full
serving
enum<string>
required
Available options:
serverless,
dedicated,
download
datasetId
string<uuid>
required
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)$
estimatedTokens
number
required
estimatedCostUsd
string
required
estimatedMinutes
number
required
servingPrice
object
required
hyperparameters
object
required

As they will be submitted: the request's values clamped into the placed backend's range.

adjustments
object[]
required

Every hyperparameter placement changed to fit the backend's published range, with the reason.