All
Text Processing

Decision API

Ask typed questions about a text, such as which team, how urgent, or yes or no, and get a choice, a score or a probability back instead of prose. One request answers many questions at once, and only input tokens are billed. This endpoint is in alpha.

Decision API: typed answers with probabilities

Trusted by 500+ Companies, from Startups to Industry Leaders

TUTORIAL

How to get typed decisions from text with Eden AI?

Decision API: typed answers with probabilities

What is a Decision API?

A decision API runs a model built to answer closed questions about a text instead of writing one. You define the possible answers, and the model returns a probability for each of them in a single pass. Typical uses are ticket routing, content triage, lead scoring, intent detection and checking an agent's output. Because the answer comes with its probabilities, you can set a threshold and send uncertain cases to a human.

Try now

Replace Prompt-and-Parse With One Typed Call

Send the text as state and name each question with its type and its options. The response gives the selected choice with its confidence and full probability distribution, a score on your scale, and a probability for each yes or no question. There is no free text to parse and no malformed JSON to retry.

REQUEST
curl -X POST https://api.edenai.run/v3/alpha/decisions \
  -H "Authorization: Bearer $EDENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "typesafe/jev-latest",
    "state": "Hi, my October invoice was charged twice and I need a refund before Friday or I will cancel my subscription.",
    "questions": {
      "department": {
        "type": "choice",
        "instructions": "Which team should handle this?",
        "criteria": {
          "billing": "Payments, invoicing, refunds",
          "technical": "Bugs, outages, integrations",
          "sales": "Pricing, upgrades, new accounts"
        }
      },
      "frustration": {
        "type": "score",
        "instructions": "How frustrated is the customer?",
        "criteria": ["Calm, just stating facts", "Frustrated but civil", "Very angry, strong language"]
      },
      "churn_risk": {
        "type": "noul",
        "instructions": "Is the customer likely to cancel?"
      }
    }
  }'
RESPONSE (TRIMMED)
{
  "answers": {
    "department": {
      "type": "choice", "choice": "billing", "confidence": 1.0,
      "probabilities": { "billing": 1.0, "technical": 0.0, "sales": 0.0 }
    },
    "frustration": {
      "type": "score", "score": 0.99, "confidence": 0.98,
      "probabilities": { "0": 0.01, "1": 0.99, "2": 0.0 }
    },
    "churn_risk": { "type": "noul", "noul": 0.59 }
  },
  "usage": { "input_tokens": 423, "output_tokens": 73 },
  "cost": 0.000017766,
  "provider": "typesafe"
}

In this test, the ticket went to billing with full confidence, frustration scored 0.99 on a 0 to 2 scale, and the churn probability came out at 0.59. The call took about 0.6 seconds and cost $0.000018. See how cheap decision models cut the cost of high-volume AI calls.

See documentation

8 Decision Models, Two Served From the EU

Call every decision model with the same API key and the same request format. Prices are per input token, and output is free. GreenPT Metis and the EU deployment of Microsoft Decision 1 also answer on the Eden AI EU endpoint.

Eden AI lists 8 decision models from TypeSafe, Microsoft, OpenAI, Qwen and GreenPT. They all answer the same three question types: a choice among options, a score on a scale, and a yes or no probability. Run them on your own tickets, reviews or messages and compare their answers before choosing one. To learn how these models differ from chat models, read Jev, a new kind of AI model built for decisions.

ModelInput priceRegion
typesafe/jev-latest$0.042 / 1M tokensUS
typesafe/jev-preview$0.042 / 1M tokensUS
azure/microsoft-decision-1@eu$0.042 / 1M tokensEU
azure/microsoft-decision-1@us$0.042 / 1M tokensUS
azure/microsoft-decision-1$0.042 / 1M tokensGlobal
greenpt/metis$0.13 / 1M tokensEU
openai/gpt-6-luna-decisions$0.10 / 1M tokensUS
qwen/decision-model-previewFree (preview)Global

Prices and regions checked on 2 November 2026. Live list: GET /v3/alpha/decisions/models.

value

Value delivered

/ 1 /
save time

Save time

Integrate once and access hundreds of models without managing multiple APIs.

Model updates, provider changes, and new releases are handled transparently.

/ 2 /
Control costs

Reduce costs

Use the most efficient model for each need. Avoid vendor lock-in and adapt quickly to pricing or performance changes.

/ 3 /
Reduce risk

Reduce risk

Built-in fallback mechanisms protect applications from model outages. Routing flexibility allows rapid adaptation to evolving technologies and providers.

They are using Decision API

No items found.
Solution

Got specific needs? We're here to help

AI API Gateway

5.5% platform fee

Access to hundreds of models with our unified API
Compare AI models accuracy, latency and price
Create multiple API keys for different projects
Cost and performance monitoring tools
Chat support (48h - working days)
Unlimited seats

Advanced AI Platform

Custom price

All the previous features +
High rate limits and bulk discounts
Private deployments / specific compliance needs
Custom latency / cost optimization
Dedicated support & SLA / Professional Services
Custom billing and invoicing structures

Other features

Rerank API: documents reordered by relevance score
Rerank API
All
Text Processing

Reorder retrieved documents by relevance to a query before they reach your LLM. The Eden AI Rerank API follows the Cohere v2 format and gives you 16 reranker models from 9 providers behind one API key.

Data Anonymization API
All
Text Processing

Unlock the power of data privacy with our Data Anonymization API. Effortlessly protect sensitive information while maintaining data integrity for your applications.

Emotion Detection API
All
Text Processing

Unlock the power of emotion detection with our AI API. Effortlessly analyze and interpret emotions from facial expressions to enhance user experiences and drive engagement.

let’s start

Start building with Eden AI

A single interface to integrate the best AI technologies into your products.