Skip to main content
POST
Estimate the cost of decisions

Authorizations

Authorization
string
header
required

Create an API key in the console.

Body

application/json
decisions
Decision · object[]
required
Required array length: 1 - 128 elements
model
string | null
Required string length: 1 - 128
context
default:""
images
ImageIn · object[] | null

Up to 8 images the decisions are about, each shown where the context says <image:id>. The context must then be a string with an anchor for each image. fat and chub (kettei-fat, kettei-chub) read images; other models refuse them with images_not_supported.

Required array length: 1 - 8 elements
fallback
Available options:
auto,
none
temperature
number | null

The temperature T of every answer of this request: probabilities become p^(1/T), renormalised, so below 1 they are sharper and above 1 softer. The top answer never changes. Leave it out for the model's own default for each kind of decision; send 1 for the probabilities exactly as the engine scored them.

Required range: 0.2 <= x <= 5

Response

Successful Response

currency
string
required
Allowed value: "USD"
input_tokens
integer
required
tokenizer
Tokenizer · object
required
maximum_charge_usd
string
required
models
ModelQuote · object[]
required