Decisions API
Decisions API
Most model calls hand you a paragraph and leave you to pull a decision out of it: prompt for JSON, parse it, validate it, retry when it drifts. The Decisions API removes that layer. You send the state your application is in plus the questions you need answered, and each answer comes back already typed — a boolean-like likelihood, one of your named options, or a position on your own scale — with a probability attached.
It is built for the decision points inside software rather than for conversation: routing a ticket, gating a tool call, triaging a queue, scoring a submission before a human sees it.
POST https://api.beatapi.io/v1/systemone
This is TypeSafe’s own endpoint path, and the request and response bodies are theirs too — a client written against the TypeSafe API or any of its SDKs reaches this by changing the base URL and the model name, with nothing else to adapt. POST /v1/decisions is kept as an alias.
jev-1.14 follows TypeSafe’s current release, jev-latest, which today resolves to jev-1.14.0: a broad, modest improvement over 1.13, with the largest gain in multilingual input. TypeSafe has not published figures for it, so none are quoted here. jev-1.13 is served as the actual 1.13 release and stays accepted so existing integrations keep working, at the same price.
This endpoint is not /v1/chat/completions, and the JEV models are not available there. There are no messages in the request and no choices in the response — a decision model does not generate text.
Quick start
Use jev-1.14 with any BeatAPI key that has a balance. Input costs $0.0441 per 1M tokens and output is free; calls count toward your account’s normal request limit. The free variants jev-1.14-free and jev-1.13-free were retired on 2026-11-05; see Request limits.
The following response is illustrative, not a measured result. Parse the JSON, check the HTTP status and answer type, and validate values before applying your own thresholds.
0.04 is the model’s likelihood that the answer is yes. Four percent — so the agent stops and asks a human, which is the point of asking.
One typed decision. No JSON repair loop.
Point at BeatAPI, send state + questions, read answers. Alias /v1/decisions works the same. This is not chat/completions — the JEV models are not available there.
Request
Each question takes a type, an instructions, and — depending on the type — a criteria.
The four question types
noul — a calibrated likelihood
Use it for a yes/no that deserves a threshold rather than a coin flip. The answer is a number from 0 to 1.
criteria is optional here, but explaining both sides sharpens the answer. Pick your own threshold: auto-approve above 0.9, escalate below 0.6, queue the middle for review.
noul is the type’s real name, not a typo for bool. A misspelled type is rejected with a 400 that names the valid ones.
choice — one of your named options
criteria is an object mapping each option name to what it means. The answer names the winning option and shows the full distribution.
score — a position on your scale
criteria is an array describing the scale, lowest first. The answer is a continuous value over the array indices, starting at 0.
1.98 sits between legend["1"] and legend["2"], leaning hard on the latter — “answer today”. Round it when you need a bucket; keep the decimal when you need to sort a queue.
box — where something is in an image
Use it to locate one thing in an image. box is supported by jev-1.14 and jev-1.13. It takes instructions saying what to find and no criteria, and the request must contain at least one image (see Images); without one the request is rejected with a 400.
The four values are fractions from 0 to 1 of the image’s height (top, bottom) and width (left, right), measured from the top and left edges. Multiply by the image’s pixel size to get pixel positions. confidence can be null, so check for it before comparing it to a threshold.
Images
Both the 1.13 and 1.14 models read images. Define each image once in the top-level assets object and write its reference string in the text of state, in a question’s instructions, or in a criteria value. The image is placed where the reference appears.
This call used a 280×280 white image with one red rectangle. The response below is a measured result; id is the BeatAPI request identifier added to the vendor’s fields.
How references work:
- A reference is matched as plain text. It can be any string you like, such as
"<door>"or"[img-1]"; keys of objects are not searched, so put the reference in a value. - Every reference you define must be used at least once, otherwise the request is rejected with a 400.
- Send JSON only. Multipart uploads are not accepted, and an asset that carries a
partfield is rejected with a 400 asking you to usedata_base64. - You do not need to send the
TypeSafe-Danger-Zone-Imagesheader that TypeSafe’s own API requires; BeatAPI adds it for you. Sending it does no harm.
Image limits:
- PNG or JPEG, static images only. Animated images are rejected.
- Up to 16 MiB per image after decoding, and up to 32 MiB for the whole request body.
- Each side at most 1568 px and at least 280 px. An image below the minimum is rejected with
Invalid image dimensions. - Images are not resized for you. Resize before sending if an image is larger than the limit.
- One bad image fails the whole request.
Several questions, one call
Ask everything you need about the same state at once. Each answer is independent, and the shared state is counted once rather than once per question.
Response
Fields of each answer, by question type:
The response is synchronous: a successful HTTP response means the decision is made. There is nothing to poll and no artifacts to fetch.
Limits
- Context — 64K tokens for
stateand all questions combined;stateplus the longest individual question must fit within 32K tokens. See the model limits. - Long context is not supported yet. TypeSafe offers a request header that raises the context to 262K tokens; BeatAPI does not support it, so a call stays within the 64K limit above. Image tokens count toward that context.
- Images are JSON only (no multipart) and subject to the limits in Images.
- No sampling parameters.
temperature,top_p,seedand friends are not accepted; the model is deterministic in shape by design. - No streaming. The answer is a value, not a sequence of tokens.
- A
choiceneeds a non-emptycriteriaobject and ascoreneeds a non-emptycriteriaarray — both are rejected with a 400 that says which.instructionsis optional, but an empty one is rejected rather than sent.
Errors
Errors use the standard BeatAPI error envelope, with retryable on every error. See Errors for the full table and the retry policy.
Failed calls do not consume credits.
Billing
The paid models jev-1.14 and jev-1.13 are billed on input tokens only — the tokens your state, questions, and images occupy — at $0.0441 per 1M input tokens. Output is not billed, because the output is a typed value rather than generated prose. usage.input_tokens in every response tells you exactly what the call counted, so you can reconcile spend per call.
Images are billed as input tokens at the same rate; there is no separate image fee. As a guide, a 280×280 image is about 320 tokens, a 512×512 image about 840, and a 1024×768 image about 2,200. Actual counts are in usage.input_tokens.
Asking several questions about one state in a single call is therefore materially cheaper than sending the same state several times.
Request limits
Paid calls use your account’s normal request limit, which rises with lifetime top-ups. Check your current limit and the next top-up tier in the dashboard; there is no separate JEV-only allowance. A call over the limit gets 429 rate_limit_exceeded with a Retry-After header; wait that long before retrying.
Top up your balance before the first call: paid calls need a balance.
Free JEV models (retired)
jev-1.14-free and jev-1.13-free were retired on 2026-11-05. Requests that name them no longer succeed. Change model to jev-1.14; the endpoint, state and questions stay the same.

