Text

Create Decision

Answer typed questions about a state and get calibrated probabilities instead of free text. Request-compatible with the OpenRouter decisions API.

Each question is one of three types. choice selects among named options and returns the chosen key with per-option probabilities. score rates on an ordered scale and returns a fractional position plus a legend mapping each index back to its rung — read the legend before interpreting the score. noul returns the probability that a yes/no proposition is true.

Questions are answered independently and returned under the keys you supplied. state, instructions, and criteria values accept a string or arbitrary JSON.

Confidence can stay high when facts are missing, so supply the facts that matter. Counting, arithmetic, and date comparisons belong in your code, not in a question.

Models that support this endpoint list /alpha/decisions in supported_endpoints. The response is JSON only; there is no streaming.

post/alpha/decisions

Request

  • Base URL: https://gen.pollinations.ai
  • URL: https://gen.pollinations.ai/alpha/decisions
  • Auth: HTTP bearer

Request body

modelstring

Decision model to use. Defaults to jev. See the /models endpoint for models that list /alpha/decisions in supported_endpoints.

questionsobject required

Questions to answer about the state, keyed by a name you choose. Each question is evaluated independently and answered under the same key.

Example request

{
  "model": "jev"
}

Response

Decision answers with token usage

idstring required
modelstring required

The model that answered.

providerstring required

Publisher of the model that answered.

answersobject required

One answer per question, under the same key.

Example response

{
  "provider": "TypeSafe"
}

Changes

No recorded changes to this operation across all 1 revision of this API.