Skip to main content
POST
Decision

Authorizations

Authorization
string
header
required

Fanify API key.

Headers

Idempotency-Key
string

Optional idempotency key, from 1 to 255 characters. Use one key per request.

Body

application/json

Decision request in the OpenRouter Decisions format (state + typed questions: noul, choice, score...).Additional top-level fields are forwarded.

model
string
required
state
any
required

String, object or array of content parts; images as image_url parts with a data: URL.

questions
object
required

Non-empty object: question key -> {type, instructions, criteria?}.

Response

Decision answers with probabilities.

The response is of type object.