Decision Models Tested: 4 Models, One API

Decision models on Segmind: one API for yes/no, choice and score answers with probabilities. 4 models tested on text, images, audio, video and PDFs.

Every support inbox I've automated ends up with the same piece of code. A chat model reads the email, and I ask it for JSON: is this a bug, which team owns it, how urgent is it. Then I validate the JSON, retry when a field goes missing, and hope the model doesn't wrap its answer in a friendly sentence. All that machinery, just to get three small answers out of a model that was built to write paragraphs.

Decision models skip the paragraphs. You hand one the email and your three questions, and it hands back a probability for each. There's no text to parse, because there's no text.

Segmind now serves four of them behind a single request shape: Jev 1.14 from TypeSafe, Microsoft Decision 1.1 from Microsoft, Gemini Decision 1 from Google and GPT-6 Luna Decisions from OpenAI. To see how they compare, I sent all four the same support email. Every one of them answered in under 2.5 seconds, and every one sent it to billing. Then I made things harder with a screenshot, a voicemail, a screen recording and an invoice.

Here's what I found, and how to call them yourself.

What is a decision model?

A decision model reads a state and answers typed questions about it. The state is whatever you're judging: an email, a JSON record, a photo. Each question is one of four kinds: yes or no, a pick from named options, a level on a scale, or a box drawn around something in an image. You get a number back for every question, all in one pass.

You could get something similar by asking a chat model for structured output. But the contract is different in ways that matter once you run it a million times:

Chat model with a JSON schemaDecision model
What comes backGenerated text that should match your schemaA probability or pick per question, in a fixed shape
What you validateEvery field, every timeOnly each answer's status
How sure it isNot reported, unless you ask it to write a numberA probability for yes, per option or per level
How a refusal looksA sentence where your JSON should be"status": "refused", with no number
Switching modelsNew prompt tuning, new parsing quirksThe same request, a different slug

That last row is the reason Segmind serves these as a family. Every decision model takes the same request and returns the same answer shape. Trying a different model is a one-word change in the URL, so you can compare them on your own data in minutes.

The four kinds of question

You can mix all four in one request. Each question sits under a key you choose, and its answer comes back under the same key.

  • Yes/no (noul) returns the probability that the answer is yes. You can add criteria saying what counts as yes and what counts as no, and it's worth doing. "Is this a bug?" is vague. "Yes if it describes broken product behaviour, no otherwise" is a rule the model can apply.
  • Choice returns the option it picked, plus a probability for every option.
  • Score places the state on a scale you define, lowest level first. You get the expected level and a probability for each one. In my triage test, an urgency of 1.84 on a 0 to 2 scale meant most of the weight was on "high", with a little on "medium".
  • Box finds something in an image and returns its four edges, each as a fraction between 0 and 1. Only Jev 1.14 answers these.

The four models

All four answer yes/no, choice and score questions about text, JSON and up to eight images. Past that, each one has its own speciality.

ModelMakerBest atContext
Jev 1.14TypeSafeThe only one that draws boxes262K tokens
Microsoft Decision 1.1MicrosoftShort states, with an honest "can't tell"32K tokens
Gemini Decision 1GoogleAudio, video and PDFs262K tokens
GPT-6 Luna DecisionsOpenAIUp to 400 questions about one long state1.05M tokens

Each model page opens with a tested example in the playground, so you can see one working before writing any code.

Test 1: one support email, four models

I started with the job that made me want these models in the first place: routing a support email. One short email, three questions. Is it a bug? Which team should handle it? How urgent is it?

{
  "state": "Customer email: 'I was charged twice for my subscription this month, please refund one.'",
  "questions": {
    "is_bug": {
      "type": "noul",
      "instructions": "Is this a software bug report?",
      "criteria": { "true": "Describes broken product behaviour", "false": "Anything else" }
    },
    "team": {
      "type": "choice",
      "instructions": "Which team should handle this email?",
      "options": { "billing": "Payments, refunds, invoices", "support": "Product how-to", "sales": "New purchases" }
    },
    "urgency": {
      "type": "score",
      "instructions": "How urgent is this?",
      "levels": ["low", "medium", { "label": "high", "description": "money lost or service down" }]
    }
  }
}

I sent that exact body to each model, twice, a few hours apart:

ModelBug?TeamUrgency (0 to 2)Input tokensModel time, run 1Model time, run 2
Jev 1.140.25billing1.844240.79 s0.49 s
Microsoft Decision 1.10.19billing1.961281.64 s1.33 s
Gemini Decision 10.17billing1.872520.87 s0.57 s
GPT-6 Luna Decisions0.00billing1.964232.39 s0.45 s

"Model time" is the reply's latency_ms: the round trip from Segmind to the model and back, not counting your own network. The answers barely moved between runs. The only change was Jev's urgency going from 1.84 to 1.85.

The good news first: they all got it right. None of them called it a bug, all four picked billing, and urgency landed near the top of the scale every time. That's exactly where a double charge belongs, and nobody needed a retry or a parsing fix.

Where they differ is how sure they are. Jev puts a 25% chance on "this is a bug". GPT-6 Luna Decisions puts it at 0%. Both are clearly saying no, but a threshold you tune on one model won't carry over to the next. More on that at the end.

One reply also came with a note. GPT-6 Luna Decisions has no criteria field, so rather than quietly dropping my criteria, Segmind folded them into the question and said so:

"warnings": ["questions.is_bug.criteria: this model has no criteria field, so the criteria were appended to the instructions."]

I'd much rather read that than spend an afternoon puzzling over a strange probability.

Speed is the other thing that moved. GPT-6 Luna Decisions was the slowest in the first run and the fastest in the second. Token counts were steadier: Microsoft read the email in 128 tokens, the others in 252 to 424. On one email, none of this matters. On a million emails a month, it does, so time a few hundred calls on your own data before you choose on speed.

Compare decision models →

Test 2: screenshots, a voicemail, a recording and an invoice

Text is the easy case. For the second test, the same double-charged customer gets in touch with media instead of words, and this is where the four models start to go their separate ways.

I made all the media myself, so I knew the right answers. The screenshot is a 1024x768 billing page for a made-up app called Acme Books, with a red error banner in a known spot. The voicemail is 13 seconds of synthetic speech. The screen recording runs 7 seconds, and the invoice is a single-page PDF.

The Acme Books billing screenshot with Jev 1.14's box drawn over the red error banner

The screenshot, on all four

Every model reads images, so the screenshot went to all four with two questions: does it show a payment error, and which team should handle it?

{
  "state": "Screenshot a customer attached to a support email: their billing page.",
  "images": ["data:image/png;base64,iVBORw0KGgo..."],
  "questions": {
    "payment_error": { "type": "noul", "instructions": "Does this screenshot show a payment error?" },
    "team": {
      "type": "choice",
      "instructions": "Which team should handle this?",
      "options": { "billing": "Payments, refunds, invoices", "support": "Product how-to", "sales": "New purchases" }
    }
  }
}
ModelPayment error?TeamInput tokensModel time
Jev 1.14 (with a box question too)0.99billing2,4740.89 s
Microsoft Decision 1.10.93billing3512.34 s
Gemini Decision 10.84billing1,2281.30 s
GPT-6 Luna Decisions1.00billing1,0582.84 s

All four spotted the error and sent the ticket to billing. The surprise was the token counts. The same image cost anywhere from 351 to 2,474 input tokens depending on the model, and since you're billed by tokens, a model that's lean on text isn't always lean on images. Microsoft used the fewest both times.

Drawing a box around the error (Jev 1.14)

To Jev's request, I added one more question:

"banner": { "type": "box", "instructions": "The red error banner" }

And got back:

"banner": { "type": "box", "status": "ok", "confidence": 0.84,
            "box": { "top": 0.19, "bottom": 0.32, "left": 0.22, "right": 0.96 } }

The edges are fractions of the image's height (top and bottom) and width (left and right), so you multiply by the image size to draw the box. The real banner runs from 0.195 to 0.305 down the page and 0.234 to 0.961 across, which puts every edge Jev returned within 0.015 of the truth. That's the box in the image above.

Shrinking the screenshot to 512x384 dropped it from 2,474 tokens to 932, and the box stayed just as accurate. Don't go too small, though. Jev accepted 384x288, but rejected 320x240 and 256x256 with a 400 saying "Invalid image dimensions". Rejected calls aren't billed, but if you're sending thumbnails, scale them up to at least 384x288 first.

The voicemail, the recording and the invoice (Gemini Decision 1)

Only Gemini Decision 1 takes audio, video and documents, so these three went to it alone.

In the voicemail, the customer repeats the double-charge complaint, adds that their card is now over its limit, and asks for a refund today. I asked the same three questions as Test 1. The screen recording shows the billing page for 3 seconds before the error banner appears for 4. I asked whether an error shows up, and which team should take it. The invoice charges the same monthly plan twice on 3 November. I asked whether it's a duplicate charge, and what refund it supports.

MediaWhat I askedWhat it saidInput tokensModel time
Voicemail, 13 s MP3bug? · team · urgency (0 to 2)0.19 · billing · 1.346711.19 s
Screen recording, 7 s MP4error shown? · team0.94 · billing6510.91 s
Invoice, 1-page PDFduplicate charge? · refund0.92 · refund one charge (0.86)8250.70 s

The recording and the invoice were clean wins. The voicemail was more interesting. Its urgency came back at 1.34, well below the 1.87 the same complaint got as text. Looking closer, the model had split its weight almost evenly: 48% "medium" and 43% "high". That's exactly the kind of answer the per-level probabilities are there to catch. When two levels are that close, the model is telling you it's unsure, so send that ticket to a person, or set your threshold on the probability of "high" rather than on the score.

Here's the invoice request in Python, with the PDF sent as a data URI:

import base64
import segmind  # pip install -U segmind (1.6.0 or later)
from segmind.decisions import choice, noul

def data_uri(path, mime):
    with open(path, "rb") as f:
        return f"data:{mime};base64," + base64.b64encode(f.read()).decode()

client = segmind.SegmindClient(timeout=130)  # media can take up to 120 s
decision = client.decide_sync(
    "gemini-decision-1",
    state="An invoice a customer attached to a refund request.",
    files=[data_uri("invoice.pdf", "application/pdf")],
    questions={
        "duplicate": noul("Does this invoice charge the same item twice on the same day?"),
        "refund": choice("What refund, if any, does the invoice support?",
                         {"none": "No refund", "partial": "Refund one charge", "full": "Refund everything"}),
    },
)
print(decision.probability("duplicate"), decision.choice("refund"))

Audio and video work the same way, through audio=[...] and video=[...], and an https URL works anywhere a data URI does.

A few limits to keep in mind: up to 10 MB per image, 20 MB per audio, video or document file, and 25 MB of media per request. Requests with audio, video or documents get up to 120 seconds to answer; text and images get 30. Mine all came back in under 1.2 seconds.

Comparing models in the playground

Running all of this through the API was useful for the write-up, but there's a quicker way. The playground on any decision model's page runs one request on up to three models at once and lays the answers side by side.

Open a model's page, such as Jev 1.14, and its tested example is already loaded. Add up to two more models under Compare with, change the state or the questions if you like, and press Run. Each model gets called once, with the same body.

You get a grid with a row per question and a column per model. Once two models have answered a question, its row tells you whether they agree or differ. A yes/no agrees when every probability is on the same side of 50%. A choice agrees when every model picked the same option. A score agrees when the answers are within half a level of each other. A refused or failed answer shows its status instead of a number, and never counts as a vote.

The playground also checks each model before it runs. Add a box question with Microsoft Decision 1.1 selected, and its column warns you it will be skipped, naming the question it can't take. It's never called, so you're never charged for it.

Under each column, you'll find the model time, the charge and the token count, plus buttons that copy that exact call as cURL, Python or JavaScript. When one model wins on your data, copy its call and you're done.

Calling decision models from code

A decision model is an ordinary Segmind model: one POST to its slug, with your API key. The examples below all send the Test 1 request, saved as triage.json.

cURL

The email contains single quotes, so it's easier to send the body from a file:

curl -X POST 'https://api.segmind.com/v1/jev-1.14' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d @triage.json

Here's Jev's reply, trimmed a little:

{
  "model": "jev-1.14",
  "answers": {
    "is_bug": { "type": "noul", "status": "ok", "probability": 0.25, "confidence": null },
    "team": { "type": "choice", "status": "ok", "choice": "billing", "confidence": 1.0,
              "probabilities": { "billing": 1.0, "sales": 0.0, "support": 0.0 } },
    "urgency": { "type": "score", "status": "ok", "score": 1.84, "confidence": 0.78,
                  "labels": ["low", "medium", "high"], "probabilities": [0.0, 0.15, 0.85] }
  },
  "raw": { "...": "the model's answer in its own format" },
  "usage": { "input_tokens": 424, "cached_tokens": 0, "cache_write_tokens": 0 },
  "latency_ms": 791,
  "warnings": []
}

answers looks the same whichever model you call. raw keeps the model's own answer, in case you need something the shared shape leaves out. The reply also includes a cost field showing what the call was billed, and the X-Cost response header carries the same number.

Python

The Python SDK (1.6.0 or later) comes with helpers for building questions and reading answers:

import segmind  # pip install -U segmind; reads SEGMIND_API_KEY
from segmind.decisions import choice, noul, score

decision = segmind.decide_sync(
    "jev-1.14",
    state="Customer email: 'I was charged twice for my subscription this month, please refund one.'",
    questions={
        "is_bug": noul("Is this a software bug report?",
                       true="Describes broken product behaviour", false="Anything else"),
        "team": choice("Which team should handle this email?",
                       {"billing": "Payments, refunds, invoices", "support": "Product how-to", "sales": "New purchases"}),
        "urgency": score("How urgent is this?",
                         ["low", "medium", {"label": "high", "description": "money lost or service down"}]),
    },
)

team = decision.choice("team")  # 'billing', or None if the model refused or errored
if team is not None:
    print(team, decision.probability("is_bug"), decision.score("urgency"))
print(decision.latency_ms, decision.warnings)

decide_sync makes one blocking call, which suits a model that answers in about a second. If you'd rather go through the async queue, segmind.decide(...) takes the same arguments and waits for the result, and submit_decision(...) gives you a job to check on later. The client times out after 30 seconds by default, so for requests with audio, video or documents, create one with segmind.SegmindClient(timeout=130) and call client.decide_sync(...).

JavaScript

The JavaScript SDK (0.7.0 or later) has the same answer readers. There are no question builders, since plain objects do the job, and in TypeScript the four question types are fully typed, so a choice without options won't compile. Save this as triage.mjs so top-level await works:

import { readFile } from 'node:fs/promises';
import { Segmind } from 'segmind'; // npm install segmind

const segmind = new Segmind(); // reads SEGMIND_API_KEY
const body = JSON.parse(await readFile('triage.json', 'utf8'));

const decision = await segmind.decideSync('jev-1.14', body);
console.log(decision.choice('team'), decision.probability('is_bug'), decision.score('urgency'));
console.log(decision.latencyMs, decision.warnings);

As in Python, segmind.decide(...) and segmind.submitDecision(...) are the queued versions.

Read the status before the number

Every answer has a status: ok, refused or error. Only an ok answer carries a probability, a pick or a score, so check the status before you read anything else. Above all, never treat a missing probability as 0, because a refusal is not a "no". The SDK readers return None in Python and undefined in JavaScript for any answer that isn't ok, which makes this a one-line check. Each ok answer also has a confidence, which can be null.

When things go wrong

StatusWhat it meansWhat to do
400Your request failed Segmind's check; the message names the field, such as questions.team.typeFix that field
400"The model rejected the request"Change the request; this model won't take it
429Too many requestsWait (use Retry-After if it's there), then retry
502The model failed or sent nothing usableRetry
503The model is unavailableRetry later, or try another model
504No answer in time (30 s, or 120 s with audio, video or documents)Retry, or shorten the request

None of these errors is billed. A reply is billed when at least one of its answers is ok or refused. Smaller issues that don't stop the call, like my criteria on GPT-6 Luna Decisions, show up in warnings instead.

Caching, sessions and preferences

A request can also carry an options object. caching sets a cache key, and only GPT-6 Luna Decisions uses it. session groups related calls under one id. routing sets a speed or price preference and a zero-data-retention switch, on the models that support them. If a model can't use an option, Segmind drops it and mentions it in warnings rather than failing, so one request body still works on all four.

The full reference is in the Decision models guide.

How you're billed

You pay per call, based on the tokens the model uses. The exact charge is in every reply's cost field and X-Cost header, with any account discount already applied. Images, audio and video add input tokens, so downscaling a big photo before you send it is the easiest way to save.

Where decision models fall short

They're not a fit for everything, and a few things caught me out.

They don't explain themselves. You get numbers, not reasons. If a reviewer needs to know why an email went to billing, or you want a reply drafted, that step still belongs to a chat model.

Probabilities don't transfer between models. Jev's 25% and GPT-6 Luna Decisions' 0% were the same verdict on the same email. Before you trust a threshold like "auto-close below 10%", test it on a labelled sample for the model you picked, and test it again if you switch.

Wording matters. Rephrasing a question or reordering its options can move the numbers, and Jev can lean toward whichever option comes first. Try a few versions before you settle.

Not every feature works everywhere. Boxes are Jev only. Audio, video and documents are Gemini only. GPT-6 Luna Decisions folds criteria into the question rather than reading them separately.

Leave the maths to your code. Counting, arithmetic and comparing dates are better done in code. Split a multi-step judgment into separate questions, and combine the answers yourself.

"No text" doesn't mean "no output". Some models report output tokens in their usage (Jev used 70 in Test 1). You never have to parse them, but don't assume a call is input-only.

Keep a person in the loop for decisions about people. For anything touching credit, employment, housing, healthcare or legal matters, use the answer to inform a human reviewer, not to replace one.

What's coming next

  • Box answers drawn right on the uploaded image in the playground
  • Links that open the playground with your models already selected
  • Decision answers in your request history

FAQ

How is a decision model different from structured outputs?

With structured outputs, a chat model writes JSON that matches your schema, and you validate it. A decision model returns its answers in a fixed shape, with a probability for each, so the only thing to check is each answer's status.

Which decision model should I use?

Use Jev 1.14 if you need to locate something in an image, Gemini Decision 1 for audio, video or PDFs, and GPT-6 Luna Decisions for lots of questions about one long document. Microsoft Decision 1.1 suits short states where "can't tell" is a useful answer. For plain text and images, run your own request on a few of them in the playground and see.

What happens when a model refuses?

That one answer comes back as "status": "refused" with no number, and the rest of the request is unaffected. The call is still billed, because the model did answer, even if every answer was a refusal.

Try it on your own data

Reach for a decision model when the answer you need is a yes, a pick or a level, and you need it quickly and at volume: routing, moderation, triage, or deciding whether an agent should take its next step. Keep a chat model for anything that needs a reason or a reply.

The fastest way to find out whether one fits is to put your own question to three of them at once.

Compare decision models → · Read the Decision models guide

  • #decision-models
  • #model-comparison
  • #api
  • #tutorial
AM

Abhilash Mirji

@abhilashmirji

Product engineer at Segmind, shipping new AI models faster than my cats can knock things off the desk. 11+ years turning ambiguous problems into dependable products. Off-call: drumming, scuba diving, and getting outvoted by four cats and two dogs.

View profile

Posts

More from Abhilash Mirji

Make your own with Segmind

Run every model and Pixelflow in this post, and build your own workflows.

Start creating