Skip to main content
POST
Answer questions

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The content to evaluate and the named questions to ask about it. Unknown fields return 400. The state plus any one question must stay under 256K input tokens; questions that do not fit together are answered in groups, and each group counts the state again. The body must stay under 32 MiB.

model
string
required

The decision model: pplx-decider-v1.2 (27B, $0.02 per million input tokens) or pplx-decider-flash-v1.2 (4B, $0.01 per million input tokens). The aliases pplx-decider-latest and perplexity/pplx-decider-latest select pplx-decider-v1.2, and pplx-decider-flash-latest and perplexity/pplx-decider-flash-latest select pplx-decider-flash-v1.2; an alias can move to a newer model over time. pplx-decider-v1.1-27b and pplx-decider-v1-27b remain accepted and select pplx-decider-v1.2. A missing or unknown model returns 400.

Example:

"pplx-decider-latest"

state
required

The content every question in the request refers to: a string, an object, or an array. Images can appear anywhere in state as OpenAI-style image_url parts with base64 PNG, JPEG, or WebP data URLs and are read in place. Up to 8 images per question.

Example:

"The headphones sound great, but the battery stopped charging after two weeks."

questions
Questions · object
required

Questions keyed by a non-empty name you choose. The response uses the same names. 1 to 128 questions.

Example:

Response

One answer per question, under the question's name.

Answers keyed by question name, plus the model that answered and token usage.

model
string
required

The model name you sent, echoed back.

Example:

"pplx-decider-latest"

answers
Answers · object
required

One answer per question, under the question's name.

Example:
usage
Usage · object
required

Token counts for this request.

Example: