Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your provider API key or Bifrost authentication token. Virtual keys (prefixed with sk-bf-) can also be passed here.

Body

model
string
required

Model in provider/model format

Example:

"typesafe/jev-1.13.0"

input
required

The evidence. A string of text; a conversation, as an array of messages (with text, JSON, and image parts; images are read only by providers that accept them), function and custom tool calls, and their outputs; an object of structured data (passed to Typesafe-based models as their state); or null.

questions
object[]
required

Questions in the order asked. Answers follow the same order.

Minimum array length: 1
safety_identifier
string

Stable end-user identifier, forwarded to providers that accept one (OpenAI)

prompt_cache_key
string

Partitions prompt-cache reuse by a caller-chosen key. Forwarded to OpenAI; other providers drop it.

prompt_cache_options
object

Prompt-caching options, forwarded to OpenAI; other providers drop them.

fallbacks
string[]

Fallback models in provider/model format

Response

Successful response

model
string
required

Model that performed the decision

answers
object[]
required

One answer per question, in question order

id
string

Unique identifier for the decision response

usage
object

Token usage information

extra_fields
object

Additional fields included in responses

routing
object

Laya only. The checkpoint that answered and why, passed through untouched