Performance & cost
This session
- 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.
Run the inbox, then open a message.
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.
npm install @cloudraker/milliseconds
export MS_API_KEY="your-api-key"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.yesNo(
[
"Hi, I'm Maya Chen at Northstar Foods. Email: maya@northstar.example. We need to automate invoice processing across our warehouses. Can we book a software demo? We want to start next month. Our budget is $12,000 per year.",
"I'm Oliver from Cedar Studio, oliver@cedar.example. We are evaluating software to process client documents automatically. Could you share pricing? No rollout date has been set and our budget is not decided.",
"Hi, I'm Priya at Fieldwork, priya@fieldwork.example. We already use your product. Our team cannot log in after the latest update. Please help restore access today.",
"I'm Leo Martinez, leo@candidate.example. Are you hiring frontend engineers? I'd love to apply for an open role. My resume is available on request.",
"I'm Drew from Pipeline Partners. We sell outsourced appointment setting. Our package starts at $900 per month. Can we pitch our service to your sales director?",
"I'm Sam at Brightside Books, sam@brightside.example. We need a social media scheduling tool. Can we see a demo of your software? We plan to start next year. Budget: $2,000 annually."
],
[
"The sender wants to purchase or evaluate software for their organization.",
"The sender asks for help with a product they already use.",
"The sender is applying for a job or asking about employment.",
"The sender is offering to sell their services to the recipient."
]
).withUsage();
console.log(result);
console.log({ inputTokens: usage.inputTokens, modelMs: usage.inferenceMs });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(
[
"Hi, I'm Maya Chen at Northstar Foods. Email: maya@northstar.example. We need to automate invoice processing across our warehouses. Can we book a software demo? We want to start next month. Our budget is $12,000 per year.",
"I'm Oliver from Cedar Studio, oliver@cedar.example. We are evaluating software to process client documents automatically. Could you share pricing? No rollout date has been set and our budget is not decided.",
"Hi, I'm Priya at Fieldwork, priya@fieldwork.example. We already use your product. Our team cannot log in after the latest update. Please help restore access today.",
"I'm Leo Martinez, leo@candidate.example. Are you hiring frontend engineers? I'd love to apply for an open role. My resume is available on request.",
"I'm Drew from Pipeline Partners. We sell outsourced appointment setting. Our package starts at $900 per month. Can we pitch our service to your sales director?",
"I'm Sam at Brightside Books, sam@brightside.example. We need a social media scheduling tool. Can we see a demo of your software? We plan to start next year. Budget: $2,000 annually."
],
{
"match": "The message explicitly meets this criterion: Needs to automate document or invoice processing",
"not_fit": "The message explicitly contradicts this criterion: Needs to automate document or invoice processing",
"unknown": "The message does not provide enough information to evaluate this criterion: Needs to automate document or invoice processing"
}
).withUsage();
console.log(result);
console.log({ inputTokens: usage.inputTokens, modelMs: usage.inferenceMs });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.extract(
[
"Hi, I'm Maya Chen at Northstar Foods. Email: maya@northstar.example. We need to automate invoice processing across our warehouses. Can we book a software demo? We want to start next month. Our budget is $12,000 per year.",
"I'm Oliver from Cedar Studio, oliver@cedar.example. We are evaluating software to process client documents automatically. Could you share pricing? No rollout date has been set and our budget is not decided.",
"Hi, I'm Priya at Fieldwork, priya@fieldwork.example. We already use your product. Our team cannot log in after the latest update. Please help restore access today.",
"I'm Leo Martinez, leo@candidate.example. Are you hiring frontend engineers? I'd love to apply for an open role. My resume is available on request.",
"I'm Drew from Pipeline Partners. We sell outsourced appointment setting. Our package starts at $900 per month. Can we pitch our service to your sales director?",
"I'm Sam at Brightside Books, sam@brightside.example. We need a social media scheduling tool. Can we see a demo of your software? We plan to start next year. Budget: $2,000 annually."
],
{
"type": "object",
"properties": {
"company": {
"type": "string",
"description": "the sender company name, not the recipient company"
},
"contact": {
"type": "string",
"description": "the sender person name"
},
"email": {
"type": "string",
"description": "the sender email address"
},
"need": {
"type": "string",
"description": "the product or task the sender needs help with"
},
"timing": {
"type": "string",
"description": "the explicitly stated purchase or rollout timeline"
},
"budget": {
"type": "string",
"description": "the explicitly stated purchase budget, not a price offered by a vendor"
}
}
}
).withUsage();
console.log(result);
console.log({ inputTokens: usage.inputTokens, modelMs: usage.inferenceMs });pip install cloudraker-milliseconds
export MS_API_KEY="your-api-key"from milliseconds import DecisionMachine
# Reads MS_API_KEY from the environment.
dm = DecisionMachine()
result = dm.yes_no(
[
"Hi, I'm Maya Chen at Northstar Foods. Email: maya@northstar.example. We need to automate invoice processing across our warehouses. Can we book a software demo? We want to start next month. Our budget is $12,000 per year.",
"I'm Oliver from Cedar Studio, oliver@cedar.example. We are evaluating software to process client documents automatically. Could you share pricing? No rollout date has been set and our budget is not decided.",
"Hi, I'm Priya at Fieldwork, priya@fieldwork.example. We already use your product. Our team cannot log in after the latest update. Please help restore access today.",
"I'm Leo Martinez, leo@candidate.example. Are you hiring frontend engineers? I'd love to apply for an open role. My resume is available on request.",
"I'm Drew from Pipeline Partners. We sell outsourced appointment setting. Our package starts at $900 per month. Can we pitch our service to your sales director?",
"I'm Sam at Brightside Books, sam@brightside.example. We need a social media scheduling tool. Can we see a demo of your software? We plan to start next year. Budget: $2,000 annually."
],
[
"The sender wants to purchase or evaluate software for their organization.",
"The sender asks for help with a product they already use.",
"The sender is applying for a job or asking about employment.",
"The sender is offering to sell their services to the recipient."
]
)
print(result)from milliseconds import DecisionMachine
# Reads MS_API_KEY from the environment.
dm = DecisionMachine()
result = dm.classify(
[
"Hi, I'm Maya Chen at Northstar Foods. Email: maya@northstar.example. We need to automate invoice processing across our warehouses. Can we book a software demo? We want to start next month. Our budget is $12,000 per year.",
"I'm Oliver from Cedar Studio, oliver@cedar.example. We are evaluating software to process client documents automatically. Could you share pricing? No rollout date has been set and our budget is not decided.",
"Hi, I'm Priya at Fieldwork, priya@fieldwork.example. We already use your product. Our team cannot log in after the latest update. Please help restore access today.",
"I'm Leo Martinez, leo@candidate.example. Are you hiring frontend engineers? I'd love to apply for an open role. My resume is available on request.",
"I'm Drew from Pipeline Partners. We sell outsourced appointment setting. Our package starts at $900 per month. Can we pitch our service to your sales director?",
"I'm Sam at Brightside Books, sam@brightside.example. We need a social media scheduling tool. Can we see a demo of your software? We plan to start next year. Budget: $2,000 annually."
],
{
"match": "The message explicitly meets this criterion: Needs to automate document or invoice processing",
"not_fit": "The message explicitly contradicts this criterion: Needs to automate document or invoice processing",
"unknown": "The message does not provide enough information to evaluate this criterion: Needs to automate document or invoice processing"
}
)
print(result)from milliseconds import DecisionMachine
# Reads MS_API_KEY from the environment.
dm = DecisionMachine()
result = dm.extract(
[
"Hi, I'm Maya Chen at Northstar Foods. Email: maya@northstar.example. We need to automate invoice processing across our warehouses. Can we book a software demo? We want to start next month. Our budget is $12,000 per year.",
"I'm Oliver from Cedar Studio, oliver@cedar.example. We are evaluating software to process client documents automatically. Could you share pricing? No rollout date has been set and our budget is not decided.",
"Hi, I'm Priya at Fieldwork, priya@fieldwork.example. We already use your product. Our team cannot log in after the latest update. Please help restore access today.",
"I'm Leo Martinez, leo@candidate.example. Are you hiring frontend engineers? I'd love to apply for an open role. My resume is available on request.",
"I'm Drew from Pipeline Partners. We sell outsourced appointment setting. Our package starts at $900 per month. Can we pitch our service to your sales director?",
"I'm Sam at Brightside Books, sam@brightside.example. We need a social media scheduling tool. Can we see a demo of your software? We plan to start next year. Budget: $2,000 annually."
],
{
"type": "object",
"properties": {
"company": {
"type": "string",
"description": "the sender company name, not the recipient company"
},
"contact": {
"type": "string",
"description": "the sender person name"
},
"email": {
"type": "string",
"description": "the sender email address"
},
"need": {
"type": "string",
"description": "the product or task the sender needs help with"
},
"timing": {
"type": "string",
"description": "the explicitly stated purchase or rollout timeline"
},
"budget": {
"type": "string",
"description": "the explicitly stated purchase budget, not a price offered by a vendor"
}
}
}
)
print(result)npm install -g @cloudraker/milliseconds
export MS_API_KEY="your-api-key"# Reads MS_API_KEY. JSON on stdin supplies the complete request.
dm1 yes-no --json --usage <<'DM1_REQUEST'
{
"texts": [
"Hi, I'm Maya Chen at Northstar Foods. Email: maya@northstar.example. We need to automate invoice processing across our warehouses. Can we book a software demo? We want to start next month. Our budget is $12,000 per year.",
"I'm Oliver from Cedar Studio, oliver@cedar.example. We are evaluating software to process client documents automatically. Could you share pricing? No rollout date has been set and our budget is not decided.",
"Hi, I'm Priya at Fieldwork, priya@fieldwork.example. We already use your product. Our team cannot log in after the latest update. Please help restore access today.",
"I'm Leo Martinez, leo@candidate.example. Are you hiring frontend engineers? I'd love to apply for an open role. My resume is available on request.",
"I'm Drew from Pipeline Partners. We sell outsourced appointment setting. Our package starts at $900 per month. Can we pitch our service to your sales director?",
"I'm Sam at Brightside Books, sam@brightside.example. We need a social media scheduling tool. Can we see a demo of your software? We plan to start next year. Budget: $2,000 annually."
],
"statements": [
"The sender wants to purchase or evaluate software for their organization.",
"The sender asks for help with a product they already use.",
"The sender is applying for a job or asking about employment.",
"The sender is offering to sell their services to the recipient."
]
}
DM1_REQUEST# Reads MS_API_KEY. JSON on stdin supplies the complete request.
dm1 classify --json --usage <<'DM1_REQUEST'
{
"texts": [
"Hi, I'm Maya Chen at Northstar Foods. Email: maya@northstar.example. We need to automate invoice processing across our warehouses. Can we book a software demo? We want to start next month. Our budget is $12,000 per year.",
"I'm Oliver from Cedar Studio, oliver@cedar.example. We are evaluating software to process client documents automatically. Could you share pricing? No rollout date has been set and our budget is not decided.",
"Hi, I'm Priya at Fieldwork, priya@fieldwork.example. We already use your product. Our team cannot log in after the latest update. Please help restore access today.",
"I'm Leo Martinez, leo@candidate.example. Are you hiring frontend engineers? I'd love to apply for an open role. My resume is available on request.",
"I'm Drew from Pipeline Partners. We sell outsourced appointment setting. Our package starts at $900 per month. Can we pitch our service to your sales director?",
"I'm Sam at Brightside Books, sam@brightside.example. We need a social media scheduling tool. Can we see a demo of your software? We plan to start next year. Budget: $2,000 annually."
],
"labels": {
"match": "The message explicitly meets this criterion: Needs to automate document or invoice processing",
"not_fit": "The message explicitly contradicts this criterion: Needs to automate document or invoice processing",
"unknown": "The message does not provide enough information to evaluate this criterion: Needs to automate document or invoice processing"
}
}
DM1_REQUEST# Reads MS_API_KEY. JSON on stdin supplies the complete request.
dm1 extract --json --usage <<'DM1_REQUEST'
{
"texts": [
"Hi, I'm Maya Chen at Northstar Foods. Email: maya@northstar.example. We need to automate invoice processing across our warehouses. Can we book a software demo? We want to start next month. Our budget is $12,000 per year.",
"I'm Oliver from Cedar Studio, oliver@cedar.example. We are evaluating software to process client documents automatically. Could you share pricing? No rollout date has been set and our budget is not decided.",
"Hi, I'm Priya at Fieldwork, priya@fieldwork.example. We already use your product. Our team cannot log in after the latest update. Please help restore access today.",
"I'm Leo Martinez, leo@candidate.example. Are you hiring frontend engineers? I'd love to apply for an open role. My resume is available on request.",
"I'm Drew from Pipeline Partners. We sell outsourced appointment setting. Our package starts at $900 per month. Can we pitch our service to your sales director?",
"I'm Sam at Brightside Books, sam@brightside.example. We need a social media scheduling tool. Can we see a demo of your software? We plan to start next year. Budget: $2,000 annually."
],
"schema": {
"type": "object",
"properties": {
"company": {
"type": "string",
"description": "the sender company name, not the recipient company"
},
"contact": {
"type": "string",
"description": "the sender person name"
},
"email": {
"type": "string",
"description": "the sender email address"
},
"need": {
"type": "string",
"description": "the product or task the sender needs help with"
},
"timing": {
"type": "string",
"description": "the explicitly stated purchase or rollout timeline"
},
"budget": {
"type": "string",
"description": "the explicitly stated purchase budget, not a price offered by a vendor"
}
}
}
}
DM1_REQUESTUnder the hood How it works & limitations
API calls/yes-no/classify/extract
From an inbox to the next conversation
The model checks four intent signals, extracts stated facts, and evaluates three criteria. Code routes each message to a team and computes a weighted fit score from the known criteria. Weights reorder the queue locally; new criteria need a fresh model run.
Drafts, ready for a person
These fictional messages demonstrate intake, not enrichment. Exact wording can be highlighted in the source, but a match does not prove the model assigned the right meaning or person. Unknown information stays unknown. Routes and fit judgments can be wrong; nothing is sent to a CRM and no email is sent.