Skip to main content

DIAL

Measure the cost of AI. Automate what's proven.

DIAL measures whether AI can reliably replace human decisions — and at what cost. Model your process, let AI and humans participate together, and get exact data on cost, quality, and alignment at every step.

HumanAutonomous
$4.20per decision
12.0%alignment
6models

The Question DIAL Answers

For this specific task, at this specific step: can AI do it? Which model does it best? What does it cost? And how often does a human need to check?

DIAL tracks per-specialist, per-decision economics so you can answer these questions with data, not guesswork.

Per-specialist, per-decision:

$0.003costUSD
~200mslatencyMsec
94.2%alignment

Every proposal records cost, latency, tokens, and alignment against human ground truth

What DIAL Gives You

Exact numbers on whether AI can handle each step of your process — and what it costs.

Cost per Decision

Cost per Decision

Exact USD, token count, and latency for every proposal. Know what each AI specialist costs before you trust it.

Alignment Rate

Alignment Rate

Continuous measurement of how well each specialist predicts human choices. Not a training-time metric — a production metric.

Progressive Delegation

Progressive Delegation

Proven decisions get faster and cheaper. Hard decisions stay with humans. The system tells you which is which, with data.

Define. Register. Measure.

Define a state machine, register competing AI specialists, and DIAL measures which one best predicts human choices — with exact cost data.

app.ts
import { createSession, registerProposer, runSession } from "dialai";

const machine = {
  machineName: "content-review",
  initialState: "draft",
  goalState: "published",
  states: {
    draft: {
      prompt: "Review the content. Submit for review or keep editing?",
      transitions: { submit: "review" },
    },
    review: {
      prompt: "Check correctness, clarity, and tone. Approve or reject?",
      transitions: { approve: "published", reject: "draft" },
    },
    published: {},
  },
};

// Register AI specialists — each is a model + strategy + prompt
registerProposer({
  specialistId: "ai-reviewer-gpt4o-mini",
  machineName: "content-review",
  modelId: "openai/gpt-4o-mini",      // $0.003 per decision
});

registerProposer({
  specialistId: "ai-reviewer-llama",
  machineName: "content-review",
  modelId: "meta-llama/llama-3-8b",   // $0.0002 per decision
});

// Run to completion — DIAL measures alignment + cost
const session = await runSession(machine);

Built for Developers and AI Agents

A TypeScript library, CLI, and MCP server. Use it from your code, your terminal, or your AI assistant.

$_CLI
npx dialai machine.json

Run a machine from the command line. Get cost and alignment results immediately.

MCP Server
npx dialai --mcp

Expose DIAL as tools for Claude, Cursor, or any MCP-compatible AI assistant.

{}TypeScript
import { runSession } from "dialai"

Import as a library for maximum control. Embed DIAL in your application.

Switch between local and remote with one env var: DIALAI_BASE_URL

Know what AI costs before you trust it.

Model your decision process. Measure AI alignment. Get exact numbers on cost, quality, and when to delegate.