Skip to main content
POST
Estimate a prediction

Authorizations

Authorization
string
header
required

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

Body

application/json
context
required
questions
(BinaryQuestion · object | ChoiceQuestion · object | ScoreQuestion · object)[]
required
Required array length: 1 - 16 elements
model
string
default:default
Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_.-]+$

Response

Successful Response

estimated_cost_usd
string
required
Pattern: ^\d+\.\d{9}$
input_tokens
integer
required
Required range: x >= 0
metering_version
string
required
Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_.-]+$
model
string
required
Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_.-]+$
pricing_version
string
required
Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_.-]+$