Skip to content
KG.
  • Blog
  • Hire me, or see what I ship.

    • ProjectsCase studies & shipped work
    • ServicesWork with me
    • SponsorSponsor the blog
  • Essays and references on AI engineering.

    • BlogEssays on AI engineering
    • Learning PathsGuided curricula
    • Topic PillarsDeep-dive hubs
    • GlossaryAI & dev terms, defined
    • CheatsheetsQuick references
    • ComparisonsX vs Y, decided
  • Things to click, play, and take apart.

    • Tools29 dev & AI utilities
    • Games16 browser games
    • DemosInteractive explainers
    • ChallengesDaily coding puzzles
  • Me

    • AboutWho I am
    • UsesMy gear & setup
    • ResumeCV (PDF)

    Shelf

    • BookshelfBooks I recommend
    • Reading ListWhat I'm reading
  • Subscribe
  • Let's talk
  1. Home
  2. ›
  3. Blog
  4. ›
  5. Cost Optimization

Cost Optimization

2 posts tagged #cost-optimization

a bulletin board covered in sticky notes in an office AI and Machine Learning

AI Agent or Workflow? How to Tell Which You Need

Most “AI agents” in production are deterministic workflows wearing an LLM costume. Here’s the teardown rubric I use to simplify designs, cut cost, and make on-call sane.

October 4, 2026 11 min read
Read more
A close up view of a computer tower AI and Machine Learning

Local LLM Cost vs Cloud API: Break-Even Math + Calculator

A workload-specific break-even framework with real per-token math — hardware amortization vs. API spend — for coding, RAG, and batch workloads in 2026.

July 8, 2026 16 min read
Read more

Keep exploring

Close to this topic, not on this page.

  • AI Agent Swarm Patterns 2026: Topologies and Failure Modes AI agent swarm coordination patterns decide whether your multi-agent system converges or spirals. 10 min read
  • How to Ship OpenAI Agents API Guardrails in 1 Day Production tool-use fails on governance, not prompts. 9 min read
  • Execution Trace Tree for AI Agents: Build One in 60 Minutes Stop drowning in agent logs. 9 min read

Content

  • Blog
  • Topic Pillars
  • Learning Paths
  • Games
  • Demos

Resources

  • Tools
  • Glossary
  • Cheatsheets
  • Comparisons
  • LLM Prices
  • Embedding Prices

About Me

  • About
  • Uses
  • Bookshelf
  • Reading List

Meta

  • Subscribe
  • Changelog
  • Sitemap
  • Privacy
  • Terms
  • RSS
KG

Building intelligent systems. Still chasing those sour icecreams.

Made with coffee and curiosity in Toronto. 2026.