The economic case for compiled AI.

Tested. Measured. Anchored to empirical evidence from Stanford, MIT, and our own session logs.

10¢Total spent on 49 tools
1000×Agent token overhead
95%Savings today
68%Workflows run at $0

What's on this page

We spent ten cents. We got 49 tools.

We gave an AI a $4 budget and said: build tools for a law firm, a hospital, an online store, a university, a news company, a real estate agency, a startup, a nonprofit, a consulting firm, and a tech company. It built 49 tools across all ten and had $3.90 left over.

10¢Total spent
49Tools compiled
143Tests passed
2,273×Cheaper at 1K runs
How it works: compile once, run forever

Each tool was generated by an LLM, verified for syntax, executed in an isolated V8 sandbox, approved by the governance engine, and sha256-locked. Average compilation cost: $0.002. After that, the tool runs indefinitely with zero additional LLM cost.

If each tool runs…SafebotsAgent swarmSavings
once$0.04410¢2×
10 times$0.044$1.0023×
100 times$0.044$10227×
1,000 times$0.044$1002,273×

The Safebots line is flat. The agent line grows linearly. At 1,000 runs the gap is over two thousand to one. Model: Claude Haiku 4.5, the cheapest available. Every number is measured, not projected.

Full session log with every tool, every test, every cost →

Agentic AI tasks consume 1000× more tokens. The driver is structural.

A team from Stanford, MIT, Michigan, DeepMind, All Hands, and Microsoft AI ran 8 frontier LLMs against 500 SWE-bench tasks and published the first systematic study of agent token consumption.

1000×More tokens per agent task
153:1Input-to-output ratio
30×Cost variance, same task
The structural driver: input tokens, not output

The input-to-output ratio for agentic tasks is 153:1 — versus 1.33 for chat and 0.16 for reasoning. Your agent isn't expensive because it writes a lot. It's expensive because it reads a lot, repeatedly. Every loop iteration re-ingests the repo state, error logs, tool outputs, and accumulated conversation history. The context snowball is the cost.

Higher tokens ≠ higher accuracy

The same task, run multiple times on the same model, produced token counts that varied by up to 30×. Higher token consumption does not produce higher accuracy. Accuracy peaks at intermediate cost and saturates or drops as cost increases. The cost-accuracy relationship the industry assumed does not exist in the data.

Why this matters for your bill

API providers are pricing inference below cost to capture market share. OpenAI lost roughly $1.35 for every dollar earned in 2025. The per-token price your product currently optimizes against is partially subsidized by venture capital and will not survive market maturity. When the subsidy compresses — and the paper's findings make clear that consumption growth will force it to — every product built on today's cheapest rate has a hidden liability on its balance sheet.

Read the paper → · The architectural argument →

Five findings, each mapped to an infrastructure property.

1000× token consumption → Tools are not LLM calls

A workflow with 40 tool invocations and 4 LLM calls uses ~5% of what a 300-LLM-call swarm uses. The unit of parallelism is the tool, not the model.

153:1 input/output ratio → Streams persist with provenance

Tools read scoped, immutable references — not the full accumulated context. Cache layers serve cache-hit reads at a fraction of the original cost.

30× cost variance → Deterministic toposort

The same workflow runs the same steps in the same order — token consumption is a function of the workflow design, not stochastic agent improvisation.

Higher tokens ≠ accuracy → Author-defined workflows

Tokens are spent where they buy outcomes — explicit workflow structure, plus on-demand tool generation when novel work appears. Not where the agent's improvisation happens to lead.

Models can't predict costs → Infrastructure-level instrumentation

Every step logs actual input/output tokens to a stream. Budget enforcement is deterministic — the infrastructure stops the workflow when the budget is exceeded, regardless of what the LLM thinks. Best self-prediction correlation in the paper: 0.39.

The goal is not to run agents forever. It is to progressively eliminate unnecessary agency.

Most of the AI industry treats autonomous inference as the product: keep calling the model until it finishes. Safebox treats inference as a temporary method for discovering dependable computation. Once a successful process is discovered, continuing to improvise it with an agent is wasteful.

The lifecycle looks like this: a novel task arrives. An agent explores, tries approaches, finds a trajectory that works. That trajectory gets compiled into a workflow or a generated tool. From that point forward, the task executes deterministically — no LLM call needed. If an exception is detected, the agent is invoked again, but only for the part the workflow can't handle.

Agents discover. Workflows execute. Tools crystallize what was learned.

The essential distinction:

Workflows execute known processes. They are faster, cheaper, reproducible, testable, auditable, permissionable, easier to monitor, easier to roll back, resistant to prompt injection, and predictable in resource consumption.

Agents search for a process when it is not yet known. They remain valuable when the environment is unfamiliar, the task has never been performed before, the necessary sequence can't be specified in advance, tools must be discovered or generated, failures require diagnosis rather than a predetermined response, or conditions change faster than workflows can be manually maintained.

A workflow can still contain LLM steps. The difference is that the model is invoked for a bounded function — classify this document, extract these fields, draft this response — rather than being placed in an open loop and asked to figure out what to do indefinitely.

This is not "workflows versus AI." It is: AI inside governed workflows, with agency invoked only when the workflow reaches something it can't handle.

Example: invoices

"Process this invoice according to company policy" should be a workflow. The steps are known. The rules are known. Run it as compiled, deterministic code — no LLM needed.

"Investigate why invoices from this supplier suddenly stopped reconciling" may require an agent. The problem is novel, the diagnosis is open-ended, and the solution isn't known in advance.

Even then, the agent operates inside a controlled envelope: snapshot the state, give it scoped capabilities and a budget, let it explore in isolated branches, verify its proposed outcome, promote the result only after authorization. And if it finds a recurring pattern, turn that pattern into a workflow so next time it runs at deterministic-compute prices.

The compounding advantage

A conventional agent pays the reasoning cost again every time. Safebox learns a successful path once, encodes it as a workflow or generated tool, verifies it, and reuses it forever at deterministic-compute prices.

Over time: agentic exploration → verified trajectory → reusable workflow → cheap deterministic execution.

Each cycle through this loop converts expensive, unpredictable inference into cheap, predictable computation. The more cycles the system completes, the less agency it needs, and the wider the cost gap grows against systems that re-improvise every task from scratch.

ZFS strengthens this by making experiments, checkpoints, isolated branches, and rollback inexpensive. Local models handle the remaining long tail of novelty. Streams preserve provenance and reusable results. The entire architecture is designed to make this lifecycle — discover, verify, crystallize, reuse — as fast and cheap as possible.

The ideal architecture uses the minimum amount of agency required per outcome. In the growing portion of work that can be routinized, unconstrained agents are an unnecessarily expensive and unpredictable implementation. Safebox governs the entire lifecycle: agents discover, workflows execute, tools crystallize what was learned.

Three tiers. Most tasks never hit a cloud API.

Compilation is the one-time cost ($0.002/tool). At runtime, each task routes to the cheapest layer that can handle it.

⚡
Pure compute
Regex, FFmpeg, math, validation, format conversion. 42 of top 100 workflows.
$0/run
🏠
Local model
Classification, sentiment, PII, language ID. 3B param model in WASM. 26 of top 100.
$0/run
☁️
Cloud LLM
Complex drafting, multi-step reasoning, creative generation. 32 of top 100.
$0.001–0.01
68 of 100 workflows run at zero ongoing cost. We manage the open-source models (Llama, Phi, Mistral, Whisper) — quantized, tested, deployed inside the Safebox. No MLOps team required.
Bonus: experimentation without duplication

Think of it like version control for everything — not just code, but the entire workspace. Safebox can snapshot the current state, create several parallel branches, try different approaches simultaneously, evaluate the results, and promote the winner. Or roll everything back instantly.

What this makes cheap: snapshots (instant), writable copies (instant), rollback after a failed step (instant), parallel experiments (share unchanged data, only store what changes), and clean before/after states for auditing.

What still costs money: the AI computation itself. If you run ten parallel experiments, you pay for ten runs of inference. But Safebox reduces that cost by using cheap local models for initial candidates, stopping weak branches early, and sending only the strongest result to an expensive frontier model. The branching is free. The intelligence about which branches to keep is where the savings compound.

Safebox makes state branching nearly free, allowing parallel experimentation without duplicating entire environments. Compute stays proportional to work performed, but model routing, caching, and early termination sharply reduce wasted inference.

AI API pricing is under pressure from both sides.

Agentic workloads consume 1000× more tokens while API providers are still finding sustainable unit economics. OpenAI spent roughly $1.35 for every dollar earned in 2025. Anthropic's inference margins improved from 38% to 70% in one year — a sign that costs are stabilizing, but also that prices have room to rise as subsidies unwind.

Even if API prices continue falling, agentic token consumption can grow faster than price-per-token declines. Safebots attacks both sides: the tokens required per outcome and the cost of serving them.

Cost comparison: 100M tokens/day
MetricClaude Opus APISafebots (2× HA)Savings
Daily$3,000$13895.4%
Monthly$90,000$4,20095.3%
Annual$1,092,000$50,40095.4%

These numbers assume current subsidized API pricing. When prices normalize, the gap widens.

3-year projection: when subsidies end
YearAPI (projected)SafebotsSavings
Year 1 (2026)$1.092M (subsidized)$50.4K95.4%
Year 2 (2027)$1.638M (+50%)$50.4K96.9%
Year 3 (2028)$2.457M (+50%)$50.4K98.0%
3-year total$5.187M$150K97.1%

The 50% annual increase is one plausible scenario — API prices could also fall as hardware improves. But even if they do, the savings from reducing tokens per outcome remain. Safebots wins in both directions: if prices rise, the gap widens; if prices fall, the workflow efficiency advantage persists.

This isn't theoretical. Subsidies are ending.

SemiAnalysis reports Anthropic's inference margins jumped from 38% to 70% in one year. AI software prices across the US climbed 20–37% in 2026 alone.

Uber: AI spend forcing company-wide caps

Per-engineer API cost: $500–$2,000/month. Uber's AI spending grew so fast that the company capped employee AI spend at $1,500/month per tool — a sign that even large companies are hitting the ceiling on API-based AI economics.

Microsoft: pulling back from external AI APIs

Microsoft halted internal Claude Code licenses company-wide, shifting toward their own self-hosted tooling. When the company that invested $13B in OpenAI decides external API costs are unsustainable for internal use, the signal is clear.

The architectural advantage holds regardless of price direction. If API prices rise, you save more. If API prices fall, you still save — because the real savings come from needing fewer tokens per outcome, not just paying less per token.

Infrastructure doesn't have to be hard to deploy.

Compare: Traditional vs Safebots vs DIY
❌ Traditional
  • 160+ hours setup
  • Kubernetes + vLLM + GPU pools
  • 2–3 DevOps engineers
  • $400K–600K/year in salaries
  • ✓ Safebots
  • 8 hours setup
  • Single AMI, 2 commands
  • Part-time admin
  • $2K/year maintenance
  • 🤔 DIY / OpenClaw
  • 80+ hours learning
  • Manual model setup
  • No HA, no attestation
  • Community support only
  • Multi-tenant scaling changes the math.

    How cost per tenant drops with density

    The marginal cost of adding a low-utilization tenant is small — ZFS datasets, MariaDB databases, and systemd resource limits make provisioning nearly free. The compute cost scales with aggregate workload, not with tenant count. So ten tenants sharing the same inference capacity cost far less than ten separate deployments.

    TenantsCost/tenant/yearInfra note
    1$50,000Base infrastructure, full capacity available
    10$8,000Same hardware, shared inference capacity
    100$7203× infrastructure, utilization-dependent

    Beyond ~100 tenants, GPU/inference capacity must scale with aggregate workload. The tenant provisioning cost stays low, but the compute is proportional to the work performed.

    What changes for your size.

    Savings by organization size
    OrgAPI spendSafebotsSavingsReinvest
    Startup$50KUnlimited10×Scale faster
    SMB$250K$50K80%4× headcount
    Mid-Market$1M$50K95%R&D expansion
    Enterprise$10M$240K97.6%Strategic initiatives
    Fortune 500$1B$240K99.98%Transform the business

    Who switches — and how.

    The cost savings are so large that switching isn't a hard sell — it's arithmetic.

    👥 Community Leaders (B2C)

    YouTubers, podcasters, community organizers, newsletter creators

    How they switch: Sign up, get a branded app with AI bots for their community. Members join, interact, build history. Leader pays weekly for compute. Their membership revenue covers the cost.

    What they replace: $20–100/month across Zapier + ChatGPT + Mailchimp + scheduling tools. Safebots replaces all of it.

    Scale: 1M community leaders in our email list. 38K with push-reachable devices.

    🏢 SMBs & Startups

    5–50 person companies using AI for operations, content, support

    How they switch: Deploy a Safebox (single AMI). Compile the 20–30 workflows they actually use. Run them at zero marginal cost. Cancel API subscriptions.

    What they save: $250K/year API spend → $50K infrastructure. $200K freed for headcount.

    🏛️ Enterprises

    Companies with $1M+ annual AI spend, dedicated ML/AI teams

    How they switch: We deploy in their VPC, meet their compliance requirements. Multi-tenant infrastructure serves their internal teams. Warm intros through SecurityScorecard's CISO network.

    What they save: $10M API spend → $240K infrastructure. 97.6% savings.

    🔧 FDEs & Agencies

    Freelance developers, digital agencies, consultancies deploying AI for clients

    How they switch: Take the operator course. Deploy Safeboxes for their own clients. Earn on the compute their clients use. Each FDE becomes a node in the network — a local sales force in their own geography.

    What they save: Per-client API costs that scale linearly → single deployment serving 10–100 clients. The margin stays with the operator.

    Polygon and Solana didn't win by being better. They won by being cheaper.

    In 2020, Ethereum charged $5–50 per transaction. Polygon did the same transactions for $0.001. Solana did them for $0.00025. Developers migrated to the cheaper rail because the economics demanded it. Polygon reached $20B market cap. Solana reached $80B+.

    Side by side: blockchain cost disruption vs AI cost disruption
    Ethereum (agents)Polygon/Solana (Safebots)Savings
    1 transaction / 1 AI task$5–50 / 10¢$0.001 / $0.0025,000× / 50×
    At 1K runs$5K–50K / $100$1 / $0.0025,000× / 50,000×

    The compiled-workflow model has an advantage even over blockchain's cost disruption: a blockchain transaction has a marginal cost per execution, however small. A compiled workflow's marginal cost for pure-compute tasks is literally zero. The gap widens with usage.

    Same adoption sequence

    Individual developers adopted Polygon and Solana first. Then projects migrated. Then enterprises. Then institutions. Each layer validated the economics for the next. Safebots follows the same sequence: community leaders adopt first (B2C). Enterprise follows (CISO pipeline). Institutions follow enterprise.

    The blockchain parallel in detail →

    100 workflows. $0.11 to compile them all.

    We catalogued the 100 most popular AI workflows across 10 categories — content, sales, operations, legal, finance, HR, support, data, engineering, education. Total compilation cost: eleven cents. 68 run at zero ongoing cost. The other 32 cost under a penny per run.

    $0.11Total compilation
    68Run at $0
    32Need cloud LLM
    $0.003Avg cloud run cost
    At 1,000 runs per workflow, the entire 100-workflow suite costs $0.11 to compile and $96 to run — versus $500+ for an agent swarm doing the same work.

    See all 100 workflows with costs →

    A sustainable economy for AI infrastructure.

    Beyond cost savings, Safebots creates a network economy where operators run infrastructure and earn for it, community leaders pay for compute and storage, and token holders participate in the network's growth. SafeBux is the utility token that settles usage. $SAFE is the security token linked to equity. Future federated deployments allow independent operators to provide verified capacity through a common settlement layer.

    The full token economics, staking mechanics, and network growth model are covered in the crypto parallel and blockchain architecture pages.

    In their own words.

    "Agentic tasks are uniquely expensive, consuming 1000× more tokens than code reasoning and code chat, with input tokens rather than output tokens driving the overall cost. Token usage is highly variable and inherently stochastic: runs on the same task can differ by up to 30× in total tokens, and higher token usage does not translate into higher accuracy."Bai et al. · Stanford / MIT / DeepMind / Microsoft AI · arXiv 2604.22750 · April 2026
    "Anthropic's inference margins jumped from 38% to 70% in roughly one year. That single number tells you more about where enterprise AI is heading than any press release about a new model release."SemiAnalysis · Infrastructure Economics · May 2026
    "As major AI labs quietly end their substantial subsidies on token usage costs, a chain reaction triggered by surging expenses is spreading from Silicon Valley's code repositories to Wall Street trading floors."Zhitong Finance · Industry reporting · June 2026

    Today's API price is not the long-run equilibrium. Build for the equilibrium.

    Schedule a Call Tested Results Architecture