Built from the official docs: openrouter.ai · Decider V1.2 - API Pricing & Providers · checked 13 November 2026
Through OpenRouter
Get an OpenRouter API key
Sign up at OpenRouter and create an API key; you will pass it as a Bearer token on every request. In the steps below, replace <OPENROUTER_API_KEY> with your key.
Note the model id and what endpoint it uses
The model id is perplexity/pplx-decider-v1.2. This model runs on the OpenRouter Decisions API rather than the OpenAI-compatible chat endpoint, so chat completions SDKs will not work with it.
perplexity/pplx-decider-v1.2Set your key as an environment variable
Export your key so the following calls can read it. Replace <OPENROUTER_API_KEY> with your own key.
export OPENROUTER_API_KEY=<OPENROUTER_API_KEY>Send content as state and ask named questions
Call the model with your content in `state` and one or more named questions, using noul for yes/no, choice for options (up to 255), or score for an ordered rubric. Your application code then thresholds the returned numbers instead of parsing a chat reply.
Check it worked
A successful call returns typed probabilities for the questions you named — a yes-probability (noul), a probability for every option plus the most likely one (choice), or a probability for every rubric level plus the expected score (score) — rather than free-form chat text.