Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

A personal API key or an OAuth 2.0 access token. Personal API keys also require the x-auth-key header with your user ID.

Query Parameters

team_id
string

Scope the request to a team. When omitted, uses the authenticated user's default organization.

Body

application/json
model
string
required

Decision model id. Use an id from GET /models whose is_classifier_model is true.

Example:

"typesafe/jev-1.13"

state
required

The content to evaluate. A plain string, or a JSON object or array of related context.

questions
object
required

Questions keyed by ids you choose. Answers come back under the same ids.

provider
object

OpenRouter provider routing preferences. The server applies its zero-data-retention policy last. You cannot turn it off.

session_id
string

Groups related requests in observability tooling. Not sent to the model.

Maximum string length: 256
trace
object

Observability metadata (trace_id, trace_name, span_name, generation_name, parent_span_id, plus custom keys).

user
string

A stable id for your end user. The provider uses it for abuse monitoring.

Response

One answer per question, under the question's id.

id
string
Example:

"gen-dec-1790835808-rFEEP39lhplllf50bn9Q"

model
string

The exact model version that answered.

Example:

"typesafe/jev-1.13-20260917"

provider
string
Example:

"TypeSafe"

answers
object

Keyed by your question ids. The fields present depend on the question type.

usage
object