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

Trusted by 500+ Companies, from Startups to Industry Leaders

TUTORIAL

How to get typed decisions from text with Eden AI?

Decision API

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

One Typed Call

Typed questions in, probabilities out.

curl https://api.edenai.run/v3/alpha/decisions \
  -H "Authorization: Bearer $EDENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "typesafe/jev-latest", "state": "Charged twice. Refund me or I cancel.",
       "questions": {"team": {"type": "choice", "criteria": {"billing": "Payments", "technical": "Bugs"}},
                     "churn": {"type": "noul", "instructions": "Will they cancel?"}}}'
# → team: billing (confidence 1.0), churn: 0.48 (cost $0.000013)
See documentation

8 Decision Models

TypeSafe Jev, Microsoft Decision 1, GPT-6 Luna, Qwen and GreenPT Metis, from $0.042 per 1M input tokens, with free output. Microsoft (EU) and GreenPT run in Europe. Read more about decision 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
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
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.