Skip to main content
POST
Price this exact input: the amount a run would hold, without a hold.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
provider
string
required

Provider id.

Minimum string length: 1
model
string
required

Catalog id.

Minimum string length: 1
input
object
required

The same non-empty input object as the run (provider field names; file ids allowed).

Response

The estimate.

estimate
object | null
required

The amount held. Null for an API key Spiral set to the customer price view (ADR 0145), whose answers state no USD amount.

customer_price
object | null
required

The estimate in the organization's own unit, from its current setting. Set by Spiral for an organization that resells in its own unit with its own markup (ADR 0144); null otherwise. Informational: Spiral charges the organization the USD amount.

kind
enum<string>
required
Available options:
exact,
maximum,
approximate
units
object[]
required