Evaluate decisions

Preview. Evaluate Noul, Choice, and Score questions against one state, with a TypeSafe-compatible response. Use a TypeSafe SDK base URL of https://api.munito.ai/inference. perplexity-ai/pplx-decider-v1.2 answers every question of a request in one pass, with calibrated probabilities. blockbrain/cygnet uses one pass for each question, and each pass counts as one request against the rate limit. A request over the limit gets 429 before any pass runs. Billing counts only a request that answers. Requests are synchronous; streaming and respond-async are unavailable. perplexity-ai/pplx-decider-v1.2 also accepts up to 8 images as base64 data URLs (JPEG, PNG, GIF, or WebP); it scales each image to at most 1.6 megapixels, about 1,000 input tokens per megapixel. An image link instead of a data URL gets 422. blockbrain/cygnet is text only.

POST
/systemone

Authorization

headerAuthorizationBearer <token>

Your Munito API key.

Header Parameters

munito-service-tier?string

priority, standard or flex. The response names the tier that is billed; see x-ratelimit-over-limit. See Service tiers.

Default"standard"
Value in"priority""standard""flex"

Request Body

application/json
  1. body
model*string

A decision model available to your account.

state*||array<unknown>

The state to evaluate, as a string, object, or array.

images?array<string>

perplexity-ai/pplx-decider-v1.2 only: up to 8 images as base64 data URLs (data:image/png;base64,...), each up to 10 MB. Image links are not supported.

questions*

Questions keyed by a caller-selected identifier. The response preserves each identifier.

Properties1 <= properties <= 64

Response Body

Answers keyed by question identifier and aggregate input/output token usage. Noul returns a probability. Choice returns the selected option, probabilities, and confidence. Score returns the expected level index, legend, probabilities, and confidence.

application/json
curl -X POST 'https://api.munito.ai/inference/v1/systemone' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "perplexity-ai/pplx-decider-v1.2",
  "state": "The payment failed.",
  "questions": {
    "retry": {
      "type": "noul",
      "instructions": "Did the payment fail?"
    }
  }
}'
{
  "model": "perplexity-ai/pplx-decider-v1.2",
  "answers": {
    "retry": {
      "type": "noul",
      "noul": 0.96
    }
  },
  "usage": {
    "input_tokens": 100,
    "output_tokens": 0
  }
}