Sub-second decision intelligence.
A language model for the decisions inside your software. It reads a message, a ticket, or a page and returns a typed answer with a probability attached, and never writes a sentence back.
- Typical latency
- 0.5–1.3 s
- End to end, network transit included.
- Price
- $0.04
- Per million input tokens. Output is free.
- Capabilities
- Eight
- One typed decision each, plus an OpenAI-compatible route.
- Per request
- 20,000 chars
- Or up to 32 texts in a single batch.
It's like generative AI. Without the generation.
In software, an answer often decides a branch, a field, or a score. The application needs the value, not the prose around it, so decision-machine-1 stops at the value.
| With an LLM | With decision-machine-1 | |
|---|---|---|
| Routing a support message | A prompt, a retry when the JSON comes back malformed, and a single label you have to take on faith. | The label, its probability, and the score of every other label you offered, all in one typed response. |
| Pulling a field off a document | A paragraph you parse, or a schema the model quietly reshapes when it feels like adding a field. | The object your JSON Schema describes, typed, with the character offsets the values came from. |
| Knowing when it is unsure | Ask for a confidence score and you get a number the model wrote, not a number it measured. | A probability distribution over the options you gave it. Two labels at 0.5 each is a case for a human, and it says so. |
| What a call costs | You pay for the thinking and for the answer, and both grow with the question. | $0.04 per million input tokens. The price follows the text you send, not the number of labels, statements, or questions you ask about it. |
| What a call takes | Seconds, and a queue behind it once you need the answer on the request path. | Half a second to a second and a third, network included. It belongs on the request path. |
Everything it is, on one page.
One hosted model, one base URL, one price. What it will not do is part of the specification, not a caveat.
| Model | |
|---|---|
| Name | decision-machine-1 |
| Category | Decision modelPart of milliseconds.ai, a family of fast, accurate decision models by CloudRaker. |
| Task | Typed decisions over textClassification, scoring, span selection and schema filling. No free-form generation. |
| Runtime | CPU encoder modelsNo GPU in the request path, which is where the latency floor comes from. |
| Availability | Hosted API |
| Interface | |
| Base URL | https://api.milliseconds.ai |
| Native routes | POST /v1/decision-machine-1/{capability}One route per capability, each with its own request and response type. |
| OpenAI-compatible | POST /v1/chat/completionsExtraction and function calling from an OpenAI client you already have. Point the base URL at api.milliseconds.ai and set the model. Plain chat is rejected with a 400, on purpose. |
| Authentication | Authorization: Bearer sk-ms-...Required on every /v1 route. |
| Limits | |
| Input per text | 20,000 charactersText over 2,000 characters is chunked automatically. |
| Batch | 32 texts per requestSend `text` or `texts`, never both. Results come back in input order. |
| Response headers | x-input-chars, x-input-tokens, x-inference-msEvery call reports what it read and how long the inference took. |
| Language | Non-English text, English labelsThe label text is what the model reads, so keep labels in English. |
| Price | |
| Input | $0.04 per million tokensThe same price on every capability and on the OpenAI-compatible route. |
| Output | $0Probability distributions, spans and batch results cost nothing, however large. |
| Not in scope | |
| Generation | NoneEvery span it returns is a span of your input, with offsets. It does not summarize or rewrite. |
| Reasoning | Single passNo chain of thought, no multi-step deliberation. |
| Conversation | StatelessNo system prompts, no context between calls, no token streaming. |
| Price | |
| Input tokens | $0.04 per millionScore every incoming message, check every extracted field, rate every ticket. The price follows the text you send, so the bill scales with your traffic and not with how much you ask about it. |
| Output tokens | $0 |
| Every capability, and the OpenAI-compatible route | same price |
| Labels, statements and questions you ask about a text | not billed |
| A brief support message | far under a cent |
A sub-second decision layer for smarter paperwork.
This is the path a request takes through the Paperwork API. decision-machine-1 is the first thing it touches. It decides where the work goes, and whether a reasoning model needs to be woken up at all.
A person or an agent asks for something
A message, a ticket, an uploaded file, a tool call from an agent.
decision-machine-1
One typed answer with a probability attached, in about a second. This is the step that makes the rest of the flow deterministic.
Needs reasoning?
The work itself
Whatever the decision selected, run on the document: one surface, one contract, one audit trail.
A task done, not a paragraph
Structured fields, a signed document, a webhook into the system of record, with the decision and its probability attached to the run.
One model. Eight capabilities.
Each one asks a different question of the same text and answers in its own type. Pick the one that matches the decision your code has to make.
curl -X POST https://api.milliseconds.ai/v1/decision-machine-1/yes-no \
-H "Content-Type: application/json" \
-H "authorization: Bearer sk-ms-..." \
-d '{
"text": "I need this fixed today, my launch is tomorrow.",
"statements": [
"The customer expresses urgency.",
"The customer is asking about shipping."
]
}'{
"results": [
{ "statement": "The customer expresses urgency.", "answer": true, "probability": 1 },
{ "statement": "The customer is asking about shipping.", "answer": false, "probability": 0 }
]
}curl -X POST https://api.milliseconds.ai/v1/decision-machine-1/classify \
-H 'content-type: application/json' \
-H 'authorization: Bearer sk-ms-...' \
-d '{
"text": "I was charged twice for my subscription this month and support has not replied.",
"labels": {
"billing": "payments, invoices, charges, refunds",
"shipping": "delivery, tracking, returns of physical goods",
"account": "login, password, profile settings"
}
}'{
"label": "billing",
"probability": 0.995,
"confidence": 0.97,
"scores": {
"billing": 0.995,
"shipping": 0,
"account": 0.005
}
}curl -X POST https://api.milliseconds.ai/v1/decision-machine-1/classify-tree \
-H 'content-type: application/json' \
-H 'authorization: Bearer sk-ms-...' \
-d '{
"text": "62-year-old man with crushing substernal chest pain radiating to the left arm for 40 minutes, sweating, and ST elevation in leads II, III and aVF.",
"tree": {
"cardiovascular": {
"description": "heart and blood vessels: chest pain, arrhythmia, heart failure, hypertension",
"labels": {
"ischemic": {
"description": "reduced blood flow to the heart: angina, myocardial infarction",
"labels": {
"stemi": "ST-elevation myocardial infarction: ST elevation on the ECG",
"nstemi": "non-ST-elevation myocardial infarction: troponin rise without ST elevation",
"unstable_angina": "chest pain at rest without a troponin rise"
}
},
"arrhythmia": "abnormal heart rhythm: palpitations, atrial fibrillation, bradycardia",
"heart_failure": "fluid overload, breathlessness on exertion, swollen legs, reduced ejection fraction"
}
},
"pulmonary": {
"description": "lungs and airways: cough, breathlessness, wheeze, pneumonia",
"labels": {
"infection": "pneumonia or bronchitis: fever with a productive cough",
"obstructive": "asthma or COPD: wheeze, chronic cough, smoking history",
"embolism": "pulmonary embolism: sudden breathlessness, pleuritic pain, low oxygen"
}
},
"gastrointestinal": "digestive tract: abdominal pain, nausea, vomiting, bleeding",
"neurological": "brain and nerves: headache, seizure, weakness, numbness"
}
}'{
"path": ["cardiovascular", "arrhythmia"],
"label": "arrhythmia",
"probability": 0.739,
"confidence": 0.433,
"levels": [
{
"label": "cardiovascular",
"probability": 0.982,
"confidence": 0.93,
"scores": {
"cardiovascular": 0.982,
"pulmonary": 0.001,
"gastrointestinal": 0.001,
"neurological": 0.016
},
"input_chars": 456,
"input_tokens": 112,
"inference_ms": 585
},
{
"label": "arrhythmia",
"probability": 0.753,
"confidence": 0.466,
"scores": {
"ischemic": 0.241,
"arrhythmia": 0.753,
"heart_failure": 0.006
},
"input_chars": 401,
"input_tokens": 98,
"inference_ms": 578
}
]
}curl -X POST https://api.milliseconds.ai/v1/decision-machine-1/rate \
-H "content-type: application/json" \
-H "authorization: Bearer sk-ms-..." \
-d '{
"text": "Our production database is down and every customer request is failing right now.",
"scale": ["No impact", "Minor inconvenience", "Degraded service", "Major outage"]
}'{"score":2.5,"level":2,"label":"Degraded service","confidence":0.5,"scores":[0,0,0.5,0.5]}curl -X POST https://api.milliseconds.ai/v1/decision-machine-1/answer \
-H "content-type: application/json" \
-H "authorization: Bearer sk-ms-..." \
-d '{
"text": "Order 88214 shipped on 3 March 2026 from the Berlin warehouse. The customer, Maria Fischer, paid 249.00 EUR by credit card. Delivery is expected within five working days.",
"question": "Who is the customer?"
}'{
"question": "Who is the customer?",
"answer": "Maria Fischer",
"probability": 0.999,
"start": 77,
"end": 90
}curl -X POST https://api.milliseconds.ai/v1/decision-machine-1/extract \
-H "content-type: application/json" \
-H "authorization: Bearer sk-ms-..." \
-d '{
"text": "INVOICE #4471\nBilled to: Acme Corp\nCurrency: USD\nPaid: yes\nTotal due: $2,676.00\nPayment terms: Net 30",
"schema": {
"type": "object",
"title": "invoice",
"properties": {
"invoice_number": { "type": "string", "description": "invoice number" },
"customer": { "type": "string", "description": "the company billed" },
"total_due": { "type": "number", "description": "total amount due" },
"net_terms_days": { "type": "integer", "description": "payment terms in days" },
"paid": { "type": "boolean", "description": "is the invoice paid" },
"currency": { "enum": ["USD", "EUR", "GBP"], "description": "currency code" }
}
}
}'{
"data": {
"invoice_number": "4471",
"customer": "Acme Corp",
"total_due": 2676,
"net_terms_days": 30,
"paid": true,
"currency": "USD"
}
}curl -s -X POST https://api.milliseconds.ai/v1/decision-machine-1/entities \
-H 'content-type: application/json' \
-H 'authorization: Bearer sk-ms-...' \
-d '{
"text": "John Ternus announced the iPhone Duo in Cupertino on 9 September.",
"types": ["person", "product", "location"]
}'{
"entities": [
{"type": "person", "text": "John Ternus", "probability": 0.999, "start": 0, "end": 11},
{"type": "product", "text": "iPhone Duo", "probability": 0.973, "start": 26, "end": 36},
{"type": "location", "text": "Cupertino", "probability": 0.999, "start": 40, "end": 49}
]
}curl -X POST https://api.milliseconds.ai/v1/decision-machine-1/verify \
-H "content-type: application/json" \
-H "authorization: Bearer sk-ms-..." \
-d '{
"text": "INVOICE #4471 - Acme Corp. Issued 2026-03-02. Net 30. Subtotal $2,500.00. Tax $176.00. Total due $2,676.00.",
"field": {
"name": "invoice_number",
"description": "The invoice number printed on the document"
},
"value": "4471"
}'{"matches":true,"probability":0.689,"found":["4471"]}Keep your LLM. Call it selectively.
This is not a replacement. It is a first pass. Run the cheap typed decision first, accept the results that clear your threshold, and escalate only the ambiguous ones to a large model or to a person.
The threshold is yours to set, because the model hands you the numbers to set it with: a probability, a confidence, and the score of every option you offered. When two labels come back at 0.5 each, that is not a failure. That is the model telling you the text is genuinely ambiguous, which is exactly the case worth a second look.
- Route on the numbers. Accept above your threshold, escalate below it.
- Gate an LLM call, so the expensive model only sees the cases that need it.
- Verify what a larger model produced against the source it was given.
Important questions, fast answers.
No. It means the answer is the right shape and comes with a number you can act on. A typed response removes parsing failures, not model error. That is why every call returns a probability and the full score distribution, so you can set a threshold and route what falls below it.
Start with a real task.
Take a classification or extraction you already send to an LLM. Compare the accuracy, the latency and the cost on representative inputs, then keep whichever wins. milliseconds.ai is a category of fast, accurate decision models by CloudRaker, the paperwork infrastructure for the agentic era.