01 / FIRST REQUEST
Quickstart
See request/response samples and illustrative curl, Python, JavaScript, TypeScript, Rust, C# and Java examples.
Open the quickstart →Documentation
The Jev-compatible API supports routing, classification and scoring from text. Choose Peer-to-Peer for elastic capacity or EU for dedicated EU processing. The API accepts context and up to three typed text questions for s1-pro and reax-1, or one for s1-fast and s1-vision, per request, then returns a structured answer. Public routes and schemas follow the current API contract and are published as OpenAPI 3.1.
01 / FIRST REQUEST
See request/response samples and illustrative curl, Python, JavaScript, TypeScript, Rust, C# and Java examples.
Open the quickstart →02 / CONTRACT
Browse the static OpenAPI 3.1 contract snapshot and the request, answer and error schemas.
Open API reference →03 / DIFFERENCES
Move the base URL and credentials, then review the documented differences and retry behavior.
Read migration notes →04 / PATTERNS
Typed routing, moderation guardrails and bounded image classification patterns.
Browse examples →05 / PROCESSING
Choose Peer-to-Peer or optional EU processing; understand current routing, payload retention, usage-history settings and idempotency.
Read data handling →06 / OPERATIONS
Use request IDs, retryable errors, and `Retry-After` without repeating a charge.
Review error codes →Examples are illustrative. The OpenAPI document is the source of truth for routes and schemas. Check the OpenAPI document again before relying on any route.
Input limits
| Model | Max input tokens | Input kind | Max questions per request | Max options per question |
|---|---|---|---|---|
s1-fast / s1-fast-2 | 16,192 | Text | 1 | 16 |
s1-vision / s1-vision-2 | 16,192 (the image counts toward the limit) | Image + text | 1 | 26 |
s1-pro | 8,192 per question, including its state | Text | 3 | 64 |
s1-pro-3 / s1-pro-4 | 16,384 per question, including its state | Text | 3 | 64 |
s1-pro-2 / s1-pro-5 / reax-1 / reax-1-20261021 | 8,192 per question, including its state | Text | 3 | 64 |
reax-1.2 / reax-1.2-20261022 | 8,192 per question, including its state | Text Retires on 5 December 2026 | 3 | 64 |
reax-1.3 | 28,672 | Text | 1 | not published |
bison-1 / bison-1-v1.0 | 28,672 per request, all questions together | Text | 3 | not published |
torchcast-decision-31b / torchcast-decision-31b-v1.0 | 16,011 | Text | 1 | not published |
Counted with each model’s own tokenizer over the whole request as the model sees it (state, question, options and the prompt template; images count too). The same number appears in usage.input_tokens, in GET /v1/models (max_input_tokens) and in error messages.
Too long? You get HTTP 400 invalid_request naming the limit (and the exact token count where the model reports it), e.g. “This request has 17,214 input tokens; s1-fast accepts up to 16,192. Shorten the state or the question.” Nothing is cut off silently.
Far too long? A state whose compact JSON (wrapper included) exceeds 8 bytes per input token of the model’s limit — 65,536 bytes at 8,192 tokens — is refused first with HTTP 413 payload_too_large, before any model runs and without a charge. Treat 400 and 413 as the two “input too long” answers.
Rule of thumb: about 3.5–4 characters per token for English prose, fewer for digits and non-Latin text. Check usage.input_tokens in a response to calibrate. reax-1.3 runs two models that each read your text, so its limit is a billed count: your text counts about twice, and about three times under roughly 3,000 tokens. Its model page shows what fits.
We are working on raising limits; GET /v1/models always shows the live value.
Model versions
Every model id is one of two kinds:
s1-pro, s1-fast, s1-vision and reax-1 always point to the model we currently recommend for that use. They improve over time. When the current model behind an alias is briefly at capacity, the alias may answer some requests from the previous model.s1-pro-3 or reax-1-20261021 always answer with the same model weights, quantisation and prompt format. They never answer from another version. Use a pinned id when you need reproducible results.Every response names the version that answered in model_version and in the S1-Model-Version header. GET /v1/models lists the ids currently served, with their kind and, for pinned ids that are being retired, the retirement date.
A pinned id stays available for at least 14 days after its alias moved on. Under our current terms (v1.6.1, section 3.4) we also give at least 30 days’ notice before a model retires, so for now the later of the two dates applies. The retirement date is on /changelog, in GET /v1/models while the id is listed there, and in the email. After it, requests to the id get HTTP 410 with the error code model_retired and the recommended successor; they are not charged. For accounts under Terms 1.6.0 or later, missing, unknown or retired model ids are answered by s1-pro (same tier, s1-pro price); see model_fallback in errors. Other accounts keep the 404/410 errors until they accept the current Terms in the dashboard. Each account can switch this off, or on, with the setting Automatic model fallback in the dashboard. Retired ids are never reused.
If you need a fixed version for longer, write to info@decisionmodels.io; longer or dedicated versions are agreed separately and may be charged separately.
Requests to a retired model get an answer instead of an error (not for requests with an image). With automatic model fallback on, a request naming no model, an unknown model or a retired model is answered by s1-pro (section 3.7 of the Terms says at what price).
Setting: Dashboard → Settings → Automatic model fallback. On by default for accounts created on or after 10 November 2026; you can turn it off at any time. Off by default for older accounts; turning it on is your agreement to section 3.7 of the Terms (version 1.6.1) for that account: requests to a retired or unknown model are then answered by s1-pro and billed at the s1-pro price for your tier. Your other terms stay unchanged. Details: Terms 3.7.
The response field model names the answering model. The field model_fallback shows the fallback:
{"requested": "s1-pro-3", "served": "s1-pro", "reason": "retired"}
Possible reasons: missing|unknown|retired. The header shows both ids: S1-Model-Fallback: requested=s1-pro-3; served=s1-pro.
Example: after s1-pro-3 is retired, with automatic model fallback on this request is answered by s1-pro, and the response carries model_fallback:
{"model": "s1-pro-3", "questions": {"urgent": {"type": "noul", "instructions": "Is this urgent?"}}, "state": "Please respond today."}
Check for fallback in Python:
response = requests.post(url, headers=headers, json=request).json()
fallback = response.get("model_fallback")
if fallback:
print(fallback["requested"], response["model"])
When off: HTTP 410 model_retired (never charged; names the replacement), HTTP 404 unknown_model for unknown ids.
Before retiring a model, we check who used it in the last 30 days. Models nobody used in the last 30 days retire without a personal email; every retirement is still announced in advance at /changelog and /models. If you used it, you get a personal email with the date, the recommended replacement and the exact code change (usually only the model value), with advance notice as set out in the Terms, and one reminder before the date (where a retirement is required for legal or security reasons, as soon as we can).
https://api.system1models.ai keeps working.
Instead of the model id, you can put the Hugging Face repo id (case-insensitive) of a model we serve in model. The name resolves to our pinned id, so price, limits and model_version are the pinned id's.
s1-pro, s1-fast): a profile that can move to newer models.s1-pro-3): exactly one model version./v1/models lists the name in hf_slug and the revision in hf_revision. An unknown name returns 404 unknown_model with "See /v1/models for hf_slug values."
The simple name works too, for example mammoth-1: the repo name without the owner, lower case. It also resolves to exactly one pinned id. /v1/models lists it in short_id.
curl https://api.decisionmodels.io/v1/systemone \
-H "Authorization: Bearer $DECISIONMODELS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"PixilabAI/Blink-v0.3-26B-A4B-NVFP4","state":"Mia owns a red bicycle.","questions":{"color":{"type":"choice","instructions":"Which color is the bicycle?","criteria":{"red":null,"blue":null}}}}'import os, requests
response = requests.post(
"https://api.decisionmodels.io/v1/systemone",
headers={"Authorization": f"Bearer {os.environ['DECISIONMODELS_API_KEY']}"},
json={
"model": "PixilabAI/Blink-v0.3-26B-A4B-NVFP4",
"state": "Mia owns a red bicycle.",
"questions": {"color": {"type": "choice", "instructions": "Which color is the bicycle?", "criteria": {"red": None, "blue": None}}},
},
)
print(response.json()["model_version"])| Hugging Face name | Simple name | Model id |
|---|---|---|
PixilabAI/Blink-v0.3-26B-A4B-NVFP4 | blink-v0.3-26b-a4b-nvfp4 | s1-fast-2 |
vllm-sr/d3 | d3 | s1-pro-3 |
perplexity-ai/pplx-decider-v1.1-27b | pplx-decider-v1.1-27b | s1-pro-2 |
baselabs/mammoth-1 | mammoth-1 | s1-pro-5 |
Model not listed? Open its page in the model hub (https://decisionmodels.io/models/<hub-slug>#api); the Hosted API card has a "Request it" form to ask for the model as pay-per-token API. Browse the models.