Skip to main content
POST
Execute Decision Model Completion

Headers

x-api-key
string
required

Body

application/json
state
required

The content every question is asked about: text, a JSON object or a list.

questions
Questions · object
required

Questions keyed by a name you choose. The answers come back under the same names.

model_name
string
default:jev-latest

Decision model that answers the questions; also accepted as model. GET /v1/decision/models lists the available models and their prices.

Response

Successful Response

job_id
string
required

Unique identifier for this completion.

status
string
required

Status of the request, success when completed.

model_name
string
required

The decision model requested.

model
string
required

The model version that answered, which may differ from an alias such as jev-latest.

answers
Answers · object
required

Answers keyed by question name. A choice answer has choice, probabilities and confidence; a score answer has score, legend, probabilities and confidence; a noul answer has noul, the probability from 0 to 1.

usage
DecisionModelUsage · object
required

Token usage and cost of this request.

timestamp
string
required

ISO 8601 time the completion finished.