Models

Return what POST /v3/models/{model} would charge for this input.

Validates input against the model's input schema and returns the price in US dollars. Creates no job, charges nothing, and does not check the wallet balance. The response includes no completion time: a job's estimated_completion_at appears on the submit response, on GET /v3/jobs/{job_id}/status, and on GET /v3/jobs/{job_id}/stream.

post/models/{model}/estimate

Request

  • Base URL
    https://api.hedra.com/v3
  • Auth
    • API key in header Authorization
    • or HTTP bearer

Path parameters

modelstring required

The model's public id (GET /v3/models).

Request body

inputobject

The same model-specific inputs a submit would carry; the estimate prices exactly this body.

Response

Successful Response

modelstring required

The resolved model id this estimate prices.

costnumber required

The price of submitting the request's input to the model, in currency, after any discount negotiated for the key's workspace.

list_costnumber nullable

The model's list price for the same request, in currency, before any negotiated discount; equal to cost when none applies.

discount_percentnumber nullable

The negotiated percentage off the model's list price that cost reflects, e.g. 20 or 12.5; null when none applies.

currencystring required

ISO-4217 currency code for cost.

Changes