Skip to content

Inola Decider

Inola Decider answers your questions about a document by choosing among the options you give and returning a probability for each of them. The model name in the API is decider-mini (also decider); the current version is 1.3.0.

  • Takes one document (the state) and several questions about it in one request.
  • Answers three kinds of questions:
typequestionanswer
noulyes or nonoul: the probability of yes
choiceone of the options you listchoice: the most likely option, and probabilities for each option
scorea level on a scale you describescore: the expected level
  • Bills the tokens of the document and of the text of your questions, each once: see Tokens and billing.

You need an API key with the inference permission in the INOLA_API_KEY environment variable. Create one in the console, https://console.inola.ai.

Terminal window
curl -sS "https://api.inola.ai/v1/infer" \
-H "Authorization: Bearer $INOLA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "decider-mini", "input": {"state": "I was charged twice. Please fix this ASAP.", "questions": {"billing": {"type": "noul", "instructions": "Is this ticket about billing?"}, "category": {"type": "choice", "instructions": "What is this ticket about?", "criteria": {"billing": "payments and invoices", "technical": "the product does not work", "other": "anything else"}}}}}'
import os
import requests
response = requests.post(
"https://api.inola.ai/v1/infer",
headers={"Authorization": f"Bearer {os.environ['INOLA_API_KEY']}"},
json={
"model": "decider-mini",
"input": {
"state": "I was charged twice. Please fix this ASAP.",
"questions": {
"billing": {"type": "noul", "instructions": "Is this ticket about billing?"},
"category": {"type": "choice", "instructions": "What is this ticket about?",
"criteria": {"billing": "payments and invoices", "technical": "the product does not work", "other": "anything else"}},
},
},
},
timeout=30,
)
response.raise_for_status()
answers = response.json()["output"]["answers"]
print(answers["billing"]["noul"], answers["category"]["choice"])
const response = await fetch("https://api.inola.ai/v1/infer", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.INOLA_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
model: "decider-mini",
input: {
state: "I was charged twice. Please fix this ASAP.",
questions: {
billing: { type: "noul", instructions: "Is this ticket about billing?" },
category: { type: "choice", instructions: "What is this ticket about?",
criteria: { billing: "payments and invoices", technical: "the product does not work", other: "anything else" } },
},
},
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const { output } = await response.json();
const answers = output.answers;
console.log(answers.billing.noul, answers.category.choice);
{
"id": "req_01JBXQ7M3T8K2V9R4N6PZC5HDA",
"model": "decider-mini",
"version": "1.3.0",
"output_schema_id": "decision.v1",
"output": {
"answers": {
"billing": {"type": "noul", "noul": 0.97},
"category": {"type": "choice", "choice": "billing", "probabilities": {"billing": 0.95, "technical": 0.03, "other": 0.02}}
}
},
"usage": {"input_tokens": 32, "output_tokens": 0, "tokens": 32, "latency_ms": 62},
"created_at": "2026-11-16T12:00:00Z"
}

The answers are in output.answers; the envelope is described in the API reference.

  • Decider quality — measurements of every version: accuracy, calibration, comparison with other models, prices and the method.
  • Models and versions — real-time and batch, pinning a version.
  • Batches — many documents in one file.