For the complete documentation index, see llms.txt. This page is also available as Markdown.

OpenAI Decisions: GPT-6 Luna

Get typed yes/no probabilities, choices, and rubric scores from OpenAI's gpt-6-luna through FastRouter's Decisions endpoint.


Introduction

FastRouter supports OpenAI's Decisions API through the /decisions endpoint. You send shared evidence (the input: text, images, or both) along with a list of typed questions, and get back structured answers: the probability that a condition is true, one option from a fixed set, or a score against a rubric.

Use it to classify content, route requests, moderate images, triage issues, and prioritize work wherever your application needs a decision rather than generated text.

Why use Decisions through FastRouter

  • One API key: use your existing FastRouter key, with no separate OpenAI account needed.

  • Cost in every response: usage.cost reports what each request cost.

  • Observability: every request appears in the Activity Log with tokens, latency, and cost.

  • Switchable response format: receive answers in the Decisions format or the TypeSafe systemone format with response_format. By default, the response matches the request shape: a Decisions-shaped request receives a Decisions-shaped response with an ordered answers array; whereas a SystemOne-shaped request receives a TypeSafe systemone response shape. Accepted aliases are decision and openai for decisions, and system_one and typesafe for systemone.

OpenAI's Decisions API is currently in public beta.


Endpoint

POST https://api.fastrouter.ai/api/v1/decisions
Authorization: Bearer <FASTROUTER_API_KEY>
Content-Type: application/json

Available models

Model
Description

gpt-6-luna

OpenAI's decision model; currently the only model for this endpoint.


How a request works

Field
Type
Required
Description

model

string

Yes

gpt-6-luna.

input

string | array

Yes

Shared evidence for all questions: a text string, or user messages containing text and images.

questions

array

Yes

The questions to evaluate. Each has a type, a name, instructions, and type-specific options.

response_format

string

No

"decisions" (default) or "systemone". See Response formats.

Give every question a unique name. The API echoes it on each answer so you can match answers to questions. It is required if you use response_format: "systemone", where answers are keyed by name.

Question types

Type
Use it to
Main result

predicate

Check a condition, such as visible damage or whether text is urgent.

probability: estimate from 0 to 1 that the condition is true.

choice

Select one unordered option, such as a department or category.

choice: one of the values you supplied.

score

Rate against ordered levels, such as severity.

score: probability-weighted average of the level indices.

Use choice for categories with no order and score for ordered levels. Both return a probability distribution and a confidence value.


Quickstart

Route a customer complaint to a department.

Response


Question types in detail

Predicate: check a condition

Returns the probability that a condition is true.

Field
Type
Required
Description

type

"predicate"

Yes

name

string

Recommended

Identifier echoed on the answer.

instructions

string

Yes

The condition to check, phrased as a yes/no question.

Example: check an image for visible damage

Images must be inline base64 data URLs. Hosted HTTP/HTTPS image URLs and file_id inputs are not supported. Combine input_text and input_image parts in a user message to evaluate an image together with context.

cURL

Response

Choice: pick one option

Field
Type
Required
Description

type

"choice"

Yes

name

string

Recommended

Identifier echoed on the answer.

instructions

string

Yes

What the model should decide.

choices

array

Yes

The options.

choices[].value

string

Yes

Returned as choice when selected.

choices[].description

string

No

When this option applies.

Answer fields

Field
Description

choice

The selected value.

probabilities

Array of { value, probability } for every option (sums to 1).

confidence

0–1 certainty derived from the distribution.

Include a fallback such as "other" when your options might not cover every input, and send those results to a general review queue.

Score: rate against a rubric

Field
Type
Required
Description

type

"score"

Yes

name

string

Recommended

Identifier echoed on the answer.

instructions

string

Yes

What the model should rate.

levels

array

Yes

Ordered levels, lowest first.

levels[].label

string

Yes

Short level name.

levels[].description

string

No

Criteria for this level.

Request

Response

Level indices start at 0. score is the probability-weighted average of the indices, so it can fall between levels. Here, 0.02 × 0 + 0.97 × 1 + 0.01 × 2 = 0.99.


Response formats

By default, /decisions returns the Decisions format shown above. Set response_format to "systemone" to receive the same answers in the TypeSafe systemone format. This is useful if your code already parses TypeSafe Jev responses.

response_format

answers shape

Choice/score probabilities

"decisions" (default)

Array; each answer carries name

Array of { value, label?, probability }

"systemone"

Map keyed by question name

Map of option or level index → probability, plus legend for scores

Request (same score question as above, with response_format)

Response

response_format changes only the response shape. The request body must still use the Decisions schema (input, a questions array, choices, levels).

Decisions vs. systemone field mapping

Concept

/decisions request

/systemone request

Content to evaluate

input

state

Question list

questions array

questions map

Question identifier

name

Map key

Yes/no question

predicate

noul

Choice options

choices[] (value, description)

criteria map (option → description)

Score levels

levels[] (label, description)

criteria array


Response body

Field
Type
Description

answers

array (or map with systemone)

One answer per question.

id

string

FastRouter request ID, also shown in the Activity Log.

model

string

Model that served the request.

usage.input_tokens

integer

Input tokens billed.

usage.output_tokens

integer

Always 0; Decisions bills input tokens only.

usage.total_tokens

integer

Total tokens.

usage.cost

number

Cost of the request in USD.

usage.chat_id

string

Same as id.

usage.provider

string

Upstream provider (openai).

Refusals

If the model declines to answer a question, that question's answer has "type": "refusal" and carries the question's name. Always check an answer's type before reading probability, choice, or score.


Pricing

gpt-6-luna on /decisions is billed on input tokens only at $0.10 per 1M tokens. There are no output, cache-read, or cache-write charges. Each response reports the exact charge in usage.cost.


Interpreting answers

  • Predicates return the probability that the condition is true.

  • Choice and score return a full probability distribution plus confidence.

  • Set thresholds on labeled examples from your own application, weighing the cost of false positives against false negatives. Route low-confidence results to a human or a stronger model.

Best practices

  • Write questions around observable criteria. "Is there a visible crack?" is better than "Is this product bad?"

  • One concern per question. Split compound checks into separate questions in the same request.

  • Make options distinct. Choices should not overlap, and adjacent score levels should have clearly different criteria.

  • Batch independent questions about the same input in one request; it's cheaper and faster than separate calls.

  • Use Structured Outputs instead when you need a generated object (extracted fields, written explanations) rather than a probability, choice, or score.

Common use cases

  • Support triage: urgency (predicate), department (choice), severity (score).

  • Image moderation and QA: damage, policy violations, or product category from photos.

  • Content moderation: policy checks with calibrated probabilities.

  • LLM output grading: score other models' responses for accuracy or tone.

  • Agent guardrails: check a proposed action before allowing it.

Last updated