Quotes
Create a quote
Price an input without running it.
POST
/v1/quotesAuthorization
AuthorizationstringheaderrequiredBearer ast_gw_.... The key needs thequotes:createscope.
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 asquote_idto Create a job. statusstringopen,consumedorexpired.quoted_amountstring- The price for this input.
max_charge_amountstring- The most a job using this quote can be charged.
unitstringoutput(per output, timesunit_count) orjob(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.