Decisions
Choices give you the options a face would weigh. Decisions give you what it would decide: describe a situation, ask typed questions about it (yes/no, pick one, or a graded scale), and get back numbers, as this face. Use it where you need a number rather than prose: routing, simulations, survey-style panels, or checking how a face leans before you ask it to write anything. Two compatible endpoints, each in its own API’s format:
Name the model as the upstream model over the decision model,
@alice:maestro-1/jev-latest
(see Naming a model): the face steers the decision model’s answer. A decision
model with no face is not served, and neither is the face alone. Each path refuses the other’s
format with a 422 that names the right path. Faces, limits and prices are the same on both, and so are the
decision models, except gpt-6-luna, which is on /v1/decisions only (see
gpt-6-luna).
A face needs something compiled. A face with nothing compiled answers
409 (see
Failures).Ask
The request
Write
input the way the face would hear it, addressed to them or describing what is in
front of them.
Descriptions do the work. "no" alone is ambiguous; "declines to sign" is not. Keep
choices mutually exclusive.
The response
{object: "decision", model, answers, answered_by, usage}.
The face’s cause steers the answer and is never returned.
Where it differs from OpenAI’s
This section is aboutjev-latest, clef and clef-flash. gpt-6-luna takes OpenAI’s own
request unchanged; see gpt-6-luna.
modelis@face:maestro-1/<decision model>, with our decision models (jev-latest,clef,clef-flash,gpt-6-luna) after the/. Any other model there is a400.- Images aren’t supported. See Images.
- Fields OpenAI’s API does not document are refused (
422) rather than ignored. That includesstream, and messages from any role butuser. - A question the decision model gives no usable answer to comes back as
{"type": "refusal", "name": …, "refusal": …}. - The response carries
answered_by, the decision model’s versioned id.
gpt-6-luna
gpt-6-luna is OpenAI’s Decisions model, on /v1/decisions in OpenAI’s own request and
response shape: send what you would send to OpenAI, with model set to
@alice:maestro-1/gpt-6-luna.
- The request: OpenAI’s text fields as they are.
inputis a string or a message array (any role, including tool calls and their outputs), orinput_json; instruction parts;nameon a question is optional; andprompt_cache_key,prompt_cache_optionsandsafety_identifierare accepted. Up to 10 questions. - The response:
id,object,model,answersand OpenAI’s fullusage. - Price: from your credits only, never through a linked ChatGPT plan. Input $0.10 per
million tokens, cached input $0.01, cache writes $0.125 (kept 30 minutes), output free, plus
the markup.
GET /v1/models?kind=decisionlists it withcached_input_cost_per_million_tokensandcache_write_cost_per_million_tokens. - Not on
/v1/systemone, which is Jev’s format and models: it refusesgpt-6-lunawith a400that points to/v1/decisions.
System One
It is Jev’s API, exactly, at Jev’s own path. A request written for TypeSafe’s/v1/systemone works here with only the host and model changed: the
same state, the same questions, the same answers. To use TypeSafe’s SDK, see
From a Jev SDK.
The request
The response
Model forms
jev-latest alone (no face), @alice:maestro-1 alone (no decision model), alice@jev-latest
and alice are each a 422 whose message shows the form to use.
The decision models are jev-latest, clef, clef-flash and, on /v1/decisions only,
gpt-6-luna. Any other model after the / is a 400. Their prices are in
GET /v1/models?kind=decision: per input token, output
free, plus the markup in GET /v1/rates.
confidence is Jev’s on both paths: for a choice (p_max − 1/n) / (1 − 1/n), for a score
one minus the expected distance from the likeliest level, scaled by a uniform answer’s. See
Jev’s confidence.
What the face brings
For each question the face works out its cause from the situation and that question together, and steers the decision model with it. The cause stays on the server; in a state it is kept there with the decision, for the face’s later turns. To have the face propose the options instead of giving them yourself, ask choices first: each option’sname can be a value in a choice question.
Images
Images aren’t supported on the decision endpoints, or with a face. A request with one is a422, before any work, so nothing is charged:
- “Images aren’t supported with a face yet. Send the situation as text.”
instructions array of text parts is read as text.
Limits
Counted in tokens, per decision model. The situation plus your longest question, and the whole request (the situation plus every question):
Over a limit is a
422 that names the size and the limit, before any work, so nothing is
charged. The same numbers are at GET /v1/rates
(limits.decisions).
Both paths count against your plan’s per-minute request limit
(limits.requests_per_minute in GET /v1/rates). Over it
is a 429 with Retry-After; see Errors.
From a Jev SDK
Point TypeSafe’s SDK at Faces with two environment variables:model to a face over Jev: @alice:maestro-1/jev-latest. The SDK
posts to /v1/systemone, which takes only Jev’s format; /v1/decisions takes OpenAI’s.
Raise the SDK’s timeout to at least 300 seconds. Its default is 10 seconds per attempt,
retried twice, and every retry is a new, billed request. A decision typically takes 10 to 25
seconds.
Compressed request bodies are accepted on both paths: Content-Encoding: gzip, x-gzip or
zstd. The Python SDK sends zstd by default when it can (Python 3.14+, or the typesafe-sdk[zstd]
extra). One layer only: any other encoding, or two layers, is a 415. At most 32 MiB once
decompressed, or it is a 413.
Where it differs from Jev:
- Over a size limit is a
422naming the size (see Limits), not Jev’s400 max_tokens_exceeded. - A decision model that fails is a
503(retry), not Jev’s529. The SDK retries both. - At most 10 questions per request, and a face is required.
boxquestions are not supported, and nor are images.- The response also carries
answered_by. The SDK ignores fields it doesn’t know.
Chaining decisions
Decisions keep no history between requests, so you send the history in the situation./v1/systemone takes it as a messages array in state: each earlier situation as a user
message, what was decided as an assistant message, and the current situation last.
/v1/decisions, input takes user messages only: write the history into the text.
- Include the earlier situations, not just the earlier choices.
conversation, premises, depends_on and compaction: see
States.
Weigh a premise
In a state,weigh asks the face to weigh one premise’s edges, in place of questions:
The face decides one
choice between the premise’s children, and each child’s probability is
written onto its edge, with the decision’s id. For or edges the probabilities rank the
candidates: they say which to try first, and none is set aside. A candidate is ruled out only
by a test that fails on it, or by you. An and child is never set aside either: every one must
still hold.
pruned is always empty, and cutoff is echoed without effect.
weigh with questions, without conversation, naming a premise with fewer than two
children of the kind, or naming a test or a fact you stated, is a 422, and nothing is
charged.
Cost
A decision is charged in two parts: the steering (the upstream model), then the decision model.- The steering costs $0.42 per million input tokens it processes, plus a fixed **$0.00042 per call**, with no output charge;
maestro-1-flashis 10 times both. It counts against your plan’s allowance first, or is paid from credits on the Free plan or past the allowance. - The decision model is paid from your credits on every plan, at the model’s listed price
plus 5%, on the token count it reports itself. So a decision needs credit, even when the
steering is covered: with none, it is a
402before any work.
400, 402, 403, 409,
422, 429).
Speed
A decision takes about 20 seconds. Set your client timeout to at least 300 seconds. A slow call is held open. Past about 40 seconds, the response is a200 with the header
X-Headwaters-Held: 1, and whitespace before the JSON. Parse the body as usual. A failure after
that point comes back inside the 200 as an error body, with detail and OpenAI’s error
object carrying the real status, and no answers. When X-Headwaters-Held is set, check for
error before reading answers. detail and error.code are the same as the refusal
would carry without the hold. A request still working after 300 seconds is stopped and
answered 504: retry.
Failures
Every failure is JSON with adetail you can show.
A failure never falls back to an answer without the face.