All demosDispatch Console

Dispatch Console

Route incidents and response units across a simulated city.

Examples are free. Bring a key for your own inputs. Get a free key

Performance & cost

This session

Ready to run
Delivery time · median
—
Live model compute
—
Live input tokens
0
Est. cost · USD
$0.00

Bypass examples to measure live inference. Uses your quota.

Measurement details · 0 successful requests
Successful requests
0

Run an example for free to see its measurements.

Model compute is the average per measured request. Delivery time is the median browser time for successful requests, including queue, network, and retries. Cached delivery speed is not inference speed. Model compute can exceed browser time when one request processes many inputs.

Tokens come from response headers. Inference costs use $0.04 per million input tokens, before plan credits. The estimate includes live and recorded tokens at the same rate; cached examples are not charged again. Missing usage is unavailable or a partial total (≥). Demo resets keep these totals; reload to start a new session.

Try it

Run the stream, then select an incident.

Build with the SDKTypeScript · Python · dm1

One request from this demo. Copy it into your app.

Uses your MS_API_KEY and quota. Keep the key on your server.

Install · set your key
npm install @cloudraker/milliseconds
export MS_API_KEY="your-api-key"
example.ts
import { DecisionMachine } from "@cloudraker/milliseconds";

// Run on your server; reads MS_API_KEY from the environment.
const dm = new DecisionMachine();

const { result, usage } = await dm.classify(
  [
    "Channel: text message. Address: 174 Juniper St, Northgate.\nReport: \"theres a guy sleeping in the doorway of 174 juniper st northgate hes been there for hours not sure hes ok but he moved when i asked\"",
    "Channel: 911 call transcript. Address: 16 Boathouse Ln, Riverside.\nReport: \"sewage smell and water coming up from a drain at 16 Boathouse Ln, Riverside\"",
    "Channel: automated sensor alert. Address: 341 Foxglove Ct, Northgate.\nReport: \"GRID SENSOR feeder 14 (341 Foxglove Ct, Northgate): fault current, breaker tripped, line-down signature\"",
    "Channel: text message. Address: 292 Union Sq, Midtown.\nReport: \"someone is breaking into the house next door at 292 union sq midtown i can see a flashlight inside owners are away\"",
    "Channel: 911 call transcript. Address: 475 Kiln St, Ironworks.\nReport: \"apartment fire 475 Kiln St, Ironworks smoke everywhere i'm on the 4th floor i can't get down the stairs\"",
    "Channel: 911 call transcript. Address: 488 Quay St, Harborfront.\nReport: \"my son has had a fever since yesterday and now a rash, 488 Quay St, Harborfront, should someone check?\"",
    "Channel: 911 call transcript. Address: 442 Foundry Rd, Ironworks.\nReport: \"man having a heart attack at 442 Foundry Rd, Ironworks he is grey and sweating and cant speak\"",
    "Channel: 911 call transcript. Address: 142 Liberty Pl, Midtown.\nReport: \"there's a guy sleeping in the doorway of 142 Liberty Pl, Midtown, he's been there for hours, not sure he's ok but he moved when I asked\"",
    "Channel: 911 call transcript. Address: 370 Boathouse Ln, Riverside.\nReport: \"my roommate took a bunch of pills and is really drowsy and confused, 370 Boathouse Ln, Riverside apt 12\"",
    "Channel: text message. Address: 475 Kiln St, Ironworks.\nReport: \"i see the smoke from kiln st is anyone coming?? big black smoke\"",
    "Channel: 911 call transcript. Address: 442 Foundry Rd, Ironworks.\nReport: \"still no ambulance at 442 Foundry Rd, Ironworks, he's still not breathing, where are you\"",
    "Channel: 911 call transcript. Address: 141 Juniper St, Northgate.\nReport: \"my roommate took a bunch of pills and is really drowsy and confused, 141 Juniper St, Northgate apt 12\"",
    "Channel: text message. Address: 170 Depot Ln, Ironworks.\nReport: \"thres a raccoon in my garage at 170 depot ln ironworks how do i get it out\"",
    "Channel: text message. Address: 164 Quay St, Harborfront.\nReport: \"my husband colapsed hes not breathing 164 quay st harborfront pls hurry\"",
    "Channel: 911 call transcript. Address: 475 Kiln St, Ironworks.\nReport: \"the fire on Kiln St is getting bigger, its spreading to the next building\"",
    "Channel: 911 call transcript. Address: 478 Elmwood Ave, Northgate.\nReport: \"cyclist got hit by a car at 478 Elmwood Ave, Northgate, she's awake but bleeding from her head and her arm looks broken\"",
    "Channel: text message. Address: 263 Anchor Ave, Harborfront.\nReport: \"transformer exploded at 263 anchor ave harborfront loud bang power out on the whole block wire hanging low over the sidewalk\"",
    "Channel: 911 call transcript. Address: 31 Quay St, Harborfront.\nReport: \"kid had a seizure at 31 Quay St, Harborfront, it stopped but she's not waking up properly\"",
    "Channel: 911 call transcript. Address: 233 Liberty Pl, Midtown.\nReport: \"water main burst at 233 Liberty Pl, Midtown, water gushing down the street, basement of the corner shop is flooding\"",
    "Channel: 911 call transcript. Address: 50 Foxglove Ct, Northgate.\nReport: \"Someone is breaking into the house next door at 50 Foxglove Ct, Northgate. I can see a flashlight inside. Owners are away.\"",
    "Channel: 911 call transcript. Address: 243 Chapel St, Old Town.\nReport: \"small fire in a trash can at 243 Chapel St, Old Town, its out mostly but still smoking\"",
    "Channel: 911 call transcript. Address: 265 Aspen Rd, Northgate.\nReport: \"Marcus here. how do I get a copy of a police report I filed last month?\"",
    "Channel: 911 call transcript. Address: 370 Boathouse Ln, Riverside.\nReport: \"the lady who fell at 370 Boathouse Ln, Riverside is in a lot of pain, how long\"",
    "Channel: text message. Address: 141 Juniper St, Northgate.\nReport: \"update on 141 juniper st northgate: shes awake now but very confused\"",
    "Channel: 911 call transcript. Address: 442 Foundry Rd, Ironworks.\nReport: \"calling again re the man who collapsed at 442 Foundry Rd, Ironworks\"",
    "Channel: text message. Address: 263 Anchor Ave, Harborfront.\nReport: \"anyone coming for the wire on anchor ave? ppl are stpping over it\"",
    "Channel: 911 call transcript. Address: 475 Kiln St, Ironworks.\nReport: \"i see the smoke from Kiln St, is anyone coming?? big black smoke\"",
    "Channel: text message. Address: 243 Chapel St, Old Town.\nReport: \"still smoke from the bin fire at 243 chapel st old town\"",
    "Channel: text message. Address: 478 Elmwood Ave, Northgate.\nReport: \"update on pedestrian hit at 478 elmwood ave northgate: hes conscious now\"",
    "Channel: 911 call transcript. Address: 316 Juniper St, Northgate.\nReport: \"car crashed into a pole at 316 Juniper St, Northgate and caught fire, driver still inside not moving\"",
    "Channel: 911 call transcript. Address: 304 Quay St, Harborfront.\nReport: \"Elderly woman fell down the stairs at 304 Quay St, Harborfront, she's conscious but her leg is bent wrong and bleeding\"",
    "Channel: 911 call transcript. Address: 460 Slag Ave, Ironworks.\nReport: \"Marcus here. A power line came down at 460 Slag Ave, Ironworks, it's sparking on the road and there are kids around\""
  ],
  {
    "fire": "Fire, smoke, explosion, or a gas leak that could ignite",
    "medical": "A sick or injured person who needs paramedics and no other service",
    "police": "Crime, violence, threats, weapons, burglary, or suspicious activity",
    "traffic": "A vehicle collision, a person struck by a vehicle, or a road hazard caused by vehicles",
    "utility": "Downed power lines, transformer fault, water main, sewage, street light or manhole problems",
    "rescue": "A person trapped or in the water: elevator entrapment, trench collapse, drowning, sinking vehicle",
    "non_emergency": "Not an emergency: a question, complaint, noise, animal, minor nuisance, test call, or administrative request"
  }
).withUsage();

console.log(result);
console.log({ inputTokens: usage.inputTokens, modelMs: usage.inferenceMs });

Under the hood How it works & limitations

API calls/classify/rate/yes-no

How it works

The model assigns a category, severity and response package to incoming reports. Local rules merge nearby duplicates and dispatch available units on the map.

Demo scope

The city, reports and response units are fictional. Routing rules and model judgments can miss context; this is an interactive simulation, not an emergency service.

Inspired by the work of dabit3.