Search Modaic documentation

Find a Modaic guide or API reference

Introduction

Modaic is the last-mile platform for Decision Models. Run typed decisions, collect expert feedback, and align models to your criteria and production data.

Decision Models are built for high-volume decision tasks. They return typed outputs, probabilities, and confidence scores while running faster and cheaper than general-purpose language models. Modaic takes them from calibrated in general → calibrated for your use case.

Learn more about Decision Models.

Quickstart

import { Modaic } from "modaic";

const modaic = new Modaic({
  apiKey: process.env.MODAIC_API_KEY!,
});

const decision = await modaic.decisions.create({
  model: "mo",
  state: {
    ticket: "I was charged twice. Please refund one charge.",
  },
  questions: {
    priority: {
      type: "choice",
      instructions: "Choose the support priority.",
      criteria: {
        low: "No financial or time-sensitive impact.",
        normal: "Routine customer issue.",
        high: "Financial impact or an urgent blocker.",
      },
    },
  },
});

console.log(decision.answers.priority);
// { choice: "high", probabilities: { ... }, confidence: 0.94 }

What you can do

  • Make decisions — Ask typed questions and get structured answers, probabilities, and confidence.
  • Create models — Save questions and configuration in a versioned model repository.
  • Collect feedback — Add examples and corrections from domain experts.
  • Align models — Adapt a model to your criteria and data distribution.
  • Review in the platform — Inspect decisions, annotate examples, and manage alignment runs.

Get started

  1. Quickstart — Make your first decision.
  2. Using models — Create and call a versioned model.
  3. Aligning your model — Improve it with annotated examples.
Was this page helpful?