Skip to main content
POST
Create a prediction

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string | null

Optional, recommended unique operation key (at most 200 characters). Keep the same key and request for retries after a lost response. Changed content conflicts; accepted terminal results replay for 24 hours by default, followed by a tombstone until 30 days from acceptance. Never recycle a key for a new logical operation.

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

answers
(BinaryAnswer · object | ChoiceAnswer · object | ScoreAnswer · object)[]
required
model
string
required
Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_.-]+$
request_id
string
required
Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_.-]+$
usage
Usage · object
required