Quotes

Create a quote

Price an input without running it.

POST/v1/quotes

Authorization

Authorizationstringheaderrequired
Bearer ast_gw_.... The key needs the quotes:create scope.

Prices an input without running it. Nothing is charged or set aside. The quote expires after five minutes and can be used by one job.

Body

modelstringrequired
Model ID.
inputobjectrequired
The input you plan to run, matching the model's schema.
funding_sourcestring
Only api_wallet. Can be left out.

Response

idstring
Quote ID, starting with quo_. Pass it as quote_id to Create a job.
statusstring
open, consumed or expired.
quoted_amountstring
The price for this input.
max_charge_amountstring
The most a job using this quote can be charged.
unitstring
output (per output, times unit_count) or job (one price; a video's length is already included).
unit_countinteger
How many units the price covers.
expires_atstring
After this, using the quote returns 410 quote_expired.
consumed_by_job_idstring | null
The job that used the quote.