We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Decision model API

Decision models read a state and a typed question and return a choice or a score instead of free text. They are smaller and cheaper than general LLMs and give predictable, machine-readable answers for routing, moderation and evaluation.

  • Routing requests to the right tool or model
  • Classifying tickets, intents and content
  • Scoring conversations against a rubric
  • Guardrails before an action runs
Sign in to use thisCreate free account

Results will appear here.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign inSession cost $0.00

Decision model API · 30 models

ModelPrice
Baseten: Mammoth 1 (free)baseten/mammoth-1:freeFree
Baseten: Elephant 1 (free)baseten/elephant-1:freeFree
Inception: Mercury Decide (free)inception/mercury-decide:freeFree
Respan: Span-01 Literespan/span-01-liteFree
Respan: Span-01 Lite (free)respan/span-01-lite:freeFree
Perplexity: Decider Flash V1.2perplexity/pplx-decider-flash-v1.2$0.04 / 1M tokens
Perplexity: Decider Flash Latest~perplexity/pplx-decider-flash-latest$0.04 / 1M tokens
Respan: Span-02respan/span-02$0.04 / 1M tokens
Perplexity: Decider V1.2perplexity/pplx-decider-v1.2$0.07 / 1M tokens
Perplexity: Decider Latest~perplexity/pplx-decider-latest$0.07 / 1M tokens
Inception: Mercury Decideinception/mercury-decide$0.07 / 1M tokens
Respan: Span-01respan/span-01$0.07 / 1M tokens
Cloudflare: Clef Flashcloudflare/clef-flash$0.13 / 1M tokens
ScaleDown: Classify-1scaledown/classify-1$0.14 / 1M tokens
Nace.AI: Drex v1.5nace-ai/drex-v1.5$0.14 / 1M tokens
LiquidAI: d1liquid/d1$0.07 / 1M tokens$0.07 / 1M tokens
TypeSafe: Jev 1.14typesafe/jev-1.14$0.15 / 1M tokens
Microsoft: Microsoft-Decision-1microsoft/microsoft-decision-1$0.15 / 1M tokens
Cloudflare: Clefcloudflare/clef$0.15 / 1M tokens
Together: Tev1 4B Experimentaltogethercomputer/tev1-4b-experimental$0.15 / 1M tokens
Jared Palmer: Kev 4Bjaredpalmer/kev-4b$0.15 / 1M tokens
TypeSafe: Jev Latest~typesafe/jev-latest$0.15 / 1M tokens
TypeSafe: Jev 1.13typesafe/jev-1.13$0.15 / 1M tokens
Nace.AI: Drex Maxnace-ai/drex-max$0.21 / 1M tokens
Nace.AI: Drex v2.0nace-ai/drex-v2.0$0.21 / 1M tokens
LiquidAI: d1-ultraliquid/d1-ultra$0.15 / 1M tokens$0.15 / 1M tokens
Upstage: Solar Decide Flashupstage/solar-decide-flash$0.18 / 1M tokens$0.18 / 1M tokens
OpenAI: GPT-6 Luna Decisionsopenai/gpt-6-luna-decisions$0.35 / 1M tokens$35.00 / 1K searches
Upstage: Solar Decideupstage/solar-decide$0.18 / 1M tokens$0.18 / 1M tokens
Cloudflare: Clef Omnicloudflare/clef-omni$0.52 / 1M tokens

How to call the Decision model API API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "liquid/d1".

How do I call a decision model?

Through POST /api/v1/decisions with a state and typed questions (choice, yes/no or score). The answer comes back as probabilities, not free text.

Why not use a normal LLM?

A decision model answers in a fixed shape, so you skip prompt tricks and output parsing, and it usually costs less per call.

Are there free decision models?

Some have a :free variant with stricter upstream rate limits. The table below shows the price of each.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.post("/decisions", { body: {
  "model": "liquid/d1",
  "state": "Customer: I was charged twice for my order and want my money back.",
  "questions": {
    "team": {
      "type": "choice",
      "instructions": "Which team should handle this message?",
      "criteria": {
        "billing": "Payments, refunds, invoices",
        "support": "Product questions and bugs",
        "sales": "Pricing and new purchases"
      }
    },
    "urgent": {
      "type": "noul",
      "instructions": "Does this need a reply today?",
      "criteria": {
        "true": "Money, outage or legal risk",
        "false": "Can wait"
      }
    }
  }
} });
console.log(result.answers);

Popular AI API services