LIVE · Thursday 3 December

Decision Model APIs Explained: AI Option Scoring, DMN REST APIs and Decision Optimization Compared

A decision model API takes a state and a fixed set of options and returns a scored choice. DMN decision services apply rules that you write, and decision optimization APIs solve math problems. Here is how to pick and wire each one.

By Thomas11 min read

A decision model API takes a description of the current situation and a fixed list of options, and it returns a choice with a probability for each option. Alibaba Cloud and Decision Models both document this kind of API behind a POST .../v1/systemone endpoint, and the DMP draft specification writes the same shape down. DMN REST APIs from Camunda and IBM do a different job: they run decision tables and rules that people author. Decision optimization APIs, such as IBM Decision Optimization, do a third job, which is solving a constrained math problem. Use an AI decision model when the input is ambiguous text, use DMN when the policy can be written as rules, and evaluate any model on your own labeled decisions before trusting its scores.

A decision model API returns scores for options that you supply

The AI decision model APIs share one contract. The caller sends a state, which is the text or structured data to judge, and a set of named questions. Each question has a type and a list of allowed answers called criteria. The model processes the state and returns a probability for each allowed answer instead of writing free text.

Alibaba Cloud's Model Studio documentation lists three question types:

  • A choice question picks one option from a named set, and the response includes the chosen option, a probabilities object that sums to 1 and a confidence value.
  • A noul question returns the probability that the answer is yes, as a number between 0 and 1, with no confidence field.
  • A score question places the input on an ordered scale of levels, and it returns a probability-weighted level index that can fall between two levels, such as 1.43.

Because the model only scores options that the caller lists, it cannot invent a category. Alibaba's page recommends listing every valid option plus an other fallback for that reason.

Three interfaces use the same request shape, and DMN decision services work differently

The following table compares five interfaces that share the label "decision model API". Each entry describes what the provider's own documentation says.

Interface What it is What it returns Where it runs
Alibaba decision-model-preview Hosted AI decision model Choice, yes-probability or score, with probabilities Alibaba Cloud workspace in Singapore or Beijing
Decision Models s1-fast Hosted AI decision model Choice answers to named questions api.decisionmodels.io, with an EU-hosted tier
DMP Draft 0.1 Draft protocol, not a provider Defines the answer fields and validation rules Whatever host a provider supplies
Camunda or IBM BAMOE DMN Rules engine for authored decision tables The values that the rules compute Your engine or Camunda's platform
Parsec TOD Released adapters on an open base model One probability per option Self-hosted on your own GPU

Alibaba's endpoint is POST /compatible-mode/v1/systemone on a workspace URL, authenticated with Authorization: Bearer $DASHSCOPE_API_KEY. The model field must be decision-model-preview. The page allows up to 16 questions per request, and it says that latency grows almost linearly with the number of questions. It caps context at 65,536 tokens and rejects a state that is longer.

Decision Models documents POST https://api.decisionmodels.io/v1/systemone with a bearer key and an example that uses the s1-fast model. Its reference page says that "Decision Models is not affiliated with TypeSafe," and it names s1-vision for decisions about images. Its reference page does not list response fields or a price, and it links an openapi.json contract and a separate pricing page instead.

The Decision Model Protocol is a specification, not a service. Its reference page is labeled "Draft 0.1" and carries no publication date. It defines the same model, state and questions request, and it adds strict validation rules for the answers.

A DMN REST API runs rules that people write, not a trained model

DMN, short for Decision Model and Notation, is a standard published by the Object Management Group. The OMG adopted version 1.6 in September 2026. Its specification page says that DMN provides "a graphical notation and an expression language." A DMN decision is a table or expression that a person writes, so the same input always produces the same output.

Camunda's decision engine page says that decision tables and decision requirements diagrams can be run through a REST API with OpenAPI support, and that its Java engine "can run in any JVM." In Camunda 8.10, the call is POST /decision-definitions/evaluation. A 400 response means that the input data was invalid, and a 404 means that the decision was not found. A 503 with RESOURCE_EXHAUSTED means that the engine is under backpressure and the client should retry later.

IBM's Business Automation Manager Open Editions takes a similar approach. Its 9.3.x documentation says that a Business Service "exposes REST API endpoints for every Decision it includes." A POST /{modelName} call evaluates the whole model, and a /dmnresult variant returns a detailed result with messages and an evaluationStatus for each decision. IBM's worked example computes a traffic fine and returns "Should the driver be suspended?": "No".

Inside a workflow, Camunda links a business rule task to a DMN decision with zeebe:calledDecision. The bindingType setting picks which version runs, and latest is the default. If the evaluation fails, Camunda raises an incident at that task.

A decision optimization API solves a math problem, which is a different task from scoring options

Option scoring and mathematical optimization both produce "decisions," but they answer different questions. A decision model API asks which of these labels fits this input. An optimization API asks which combination of choices gives the best objective value while every constraint holds.

IBM's documentation describes Decision Optimization as "solution engines for mathematical programming and constraint programming." It uses the CPLEX and CP Optimizer engines for planning, scheduling, pricing and resource problems. The modeler defines objectives, constraints and decision variables, and the solver returns recommended values. Models are deployed through Watson Machine Learning. If the problem is staff rostering or truck loading, an optimization API is the right tool, and neither a decision model nor a DMN table will replace it.

Application code turns scores into a decision by checking a threshold and deferring the rest

A score is not an action. The application has to decide what a score is allowed to trigger. Four steps are worth keeping separate in code, because each one fails in a different way:

  1. The application classifies the input and turns the model's probabilities into a label, such as "refund request."
  2. The application ranks the candidate actions when several allowed next steps could apply.
  3. The application resolves the arguments that an action needs, such as an order number or an amount.
  4. The application executes an authorized action only after policy checks pass, because this step changes data in another system.

A decision model API can help with the first two steps. The third step needs extraction, and the fourth step needs an authorization check that no model score replaces.

The DMP draft includes a warning about thresholds. It says that choice confidence uses "the provider's documented formula," that score confidence is provider-defined and that noul has no confidence field at all. Draft 0.1 defines no formula. The same threshold of 0.85 can therefore mean different things on two providers, or on two versions of one model. The draft recommends pinned model identifiers when results must be reproducible.

The DMP draft also lists checks that its JSON schemas cannot perform, so application code must run them:

  • The probabilities must sum to 1 within 0.0001, and every value must be finite.
  • The answer names must match the question names in the request.
  • The score must agree with the probabilities within 0.0001.

For errors, the draft says to fix the request on a 400 or 422, check credentials on a 401 or 403, shrink the body on a 413 and honor Retry-After on a 429. It also says that retries may incur another charge, because Draft 0.1 has no idempotency mechanism.

A ticket-routing call needs a fixed option list, a validated threshold and a fallback

The following request uses the field names in Alibaba's and DMP's documentation. It asks one choice question about a support ticket.

{
  "model": "decision-model-preview",
  "state": "I was charged twice for order 5521 and want one payment back.",
  "questions": {
    "queue": {
      "type": "choice",
      "instructions": "Which team should handle this ticket?",
      "criteria": {
        "billing_refund": "The customer wants money returned",
        "order_status": "The customer asks where an order is",
        "cancel_order": "The customer wants to cancel an order",
        "other": "None of the above"
      }
    }
  }
}

A conforming response contains answers.queue.choice, a probabilities object over the four keys and a confidence value. The routing logic then runs the DMP checks, compares the top probability with a threshold that was set on held-out data and sends anything below it to a person or a larger model. A ticket that lands on other should also be deferred, even when its probability is high.

The threshold in this example is a placeholder. Probability semantics differ by model and workload, so each threshold has to be validated for the model version and traffic that it will serve.

A refund shows where a model helps, where rules help and where both belong

A refund request contains two separate decisions. The first decision is interpretation: does "charged twice, want one back" mean a refund request, a dispute or a question? That decision involves ambiguous language, and it suits a decision model.

The second decision is eligibility: is the order within the refund window, under the amount limit and not already refunded? That decision is explicit policy. It suits a DMN table or ordinary code, because an auditor can read the rule and the same facts always give the same answer.

A combined workflow uses both. The model classifies the message and the application extracts the order facts. A DMN decision then applies the policy, and only an authorized service issues the refund. If the policy can already be written as rules and the inputs arrive as structured fields, rules alone are sufficient. If the inputs are free text but the categories are few and stable, an unmodified decision model or a prompted general model may be enough. Custom tuning is an option to consider only after an evaluation shows a gap.

Parsec's TOD is a downloadable decision model, and its listed fee is separate from parent-model costs

Parsec, a small language model lab, publishes a decision model called TOD. Its TOD page describes a model that takes text, images, policy and task state as input and ranks the next action from a list of allowed actions, without generating free text. A confidence gate lets TOD handle a turn when its confidence clears the gate, and it passes the turn unchanged to the parent LLM otherwise. The page lists a price of $0.30 per 1,000 decisions, and it says that TOD fees are separate from parent-model costs. The page does not say how the priced service is deployed.

The released code exposes predict(state, options, question=None, images=None), which returns a list with one probability per supplied option, in the same order, that sums to 1. The repo says that this call was measured with up to 300 options. The model card describes the release as LoRA adapters on google/gemma-4-12B-it plus a ModernBERT-base retriever. The base weights are not included, so users must accept the Gemma 4 licence and download the base model themselves. The adapters are listed as Apache-2.0, and the base model stays under the Gemma 4 terms. The TOD page describes the model's size in two inconsistent ways, so the 12B base in the model card is the dependency that matters for serving. The repo says to use chunked_eager or eager attention instead of sdpa, and it warns against bitsandbytes int8 quantization because that setting changes some picks.

The following sketch wraps that call for the same ticket-routing task. It is an illustration for a self-hosted install, not an HTTP endpoint, and the threshold is a placeholder.

QUEUES = ["billing_refund", "order_status", "cancel_order", "other"]
THRESHOLD = 0.85  # placeholder: set it from held-out labeled tickets

def route(ticket_text, model):
    probs = model.predict(ticket_text, QUEUES,
                          "Which team should handle this ticket?", None)
    if len(probs) != len(QUEUES) or abs(sum(probs) - 1.0) > 1e-4:
        raise ValueError("score vector does not match the option list")
    best = max(range(len(QUEUES)), key=lambda i: probs[i])
    if QUEUES[best] != "other" and probs[best] >= THRESHOLD:
        return ("route", QUEUES[best], probs[best])
    return ("defer", None, probs[best])

Its own release evaluation, dated 29 September 2026, reports 84.4% accuracy on the public JevBench set against 86.2% for the untrained base model. The page says that the next release is meant to fix this regression. The TOD page does not mention an HTTP contract, an SLA or on-premises deployment. Parsec's separate decision-models page describes tuning models on a customer's decisions, but it gives no price and names no deployment options, so that service is a separate negotiation and not part of the TOD release.

A fair evaluation measures six things separately on your own labeled decisions

The documentation for each of these options establishes interfaces, not performance. How these decision model APIs compare on the same workload has not been measured. A reproducible evaluation follows these steps:

  1. Collect a held-out set of labeled decisions from real traffic, with the correct label agreed by people before testing starts.
  2. Write down the rules that already apply, so that a DMN or code baseline can be scored on the same set.
  3. Run a frozen-model baseline, meaning the decision model with no tuning, and a prompted-model baseline, meaning a general LLM asked the same question.
  4. Measure decision accuracy, calibration and deferral coverage separately, because a model can be accurate on average while its confidence values are poorly matched to its error rate.
  5. Measure whole-task success, because a correct label does not help if the following steps fail.
  6. Record latency and total cost, including the cost of deferred calls, and note the hardware, numeric precision and number of candidate options for every run.

The recorded settings matter as much as the results. Latency changes with the number of options and with hardware, and the cost of the fallback model can decide whether a cheaper first-pass model saves money at all.

Sources

More in Models

All Models →