LLM Cost

8 posts tagged #llm-cost

8 posts on LLM Cost, 7 of them in the Production AI Engineering pillar, with 1 in AI Agent Architecture & Frameworks — most read: “AI Agent Cost Per Task: Token Budgets & Break-Even Math” and “OpenAI Decisions API Tutorial: 3 Cost-Safe Patterns”.

a cell phone sitting on top of a laptop computer Developer Tools

OpenAI Decisions API Tutorial: 3 Cost-Safe Patterns

A production-first OpenAI Decisions API tutorial: typed evals on POST /v1/decisions, predicate/choice/score, and three patterns to gate, batch, and escalate without cost blowups.

A computer screen displaying system information and an Ubuntu logo in a terminal window Developer Tools

How to Measure AI Coding Agent Harness Overhead

Model wars are a distraction. If you can’t measure prompt scaffolding, repo indexing, context packing, tool calls, and test loops, you’re not benchmarking your coding agent. Here’s a reproducible protocol.

Laptop screen displaying lines of code AI and Machine Learning

Prompt Compression Token Savings Benchmark: RTK vs Reality

Token savings are easy to market and hard to bank. Here’s the benchmark framework I trust for RTK-style compression: cost-per-success, tool-call failures, and latency.

Person working on a laptop with a spreadsheet outdoors. AI and Machine Learning

Agent Per-Task Cost Calculation: Retries, Tools, Caching

A spreadsheet-ready expected-cost model for agent workflows that includes retries, tool-call fanout, context growth, and caching. Plus hard budgets you can actually enforce.

Claude code vibe coding diagram with text Developer Tools

AI Agent Cost Per Task: Token Budgets & Break-Even Math

Concrete per-task cost breakdown for Aider, Claude Code, and OpenHands — covering token overhead per PR, monthly burn at team scale, and the break-even formula for hosted APIs vs local models.

MacBook Pro with images of computer language codes Developer Tools

OpenCode vs Claude Code Token Overhead: The 4.7x Gap

Claude Code sends 33,000 tokens before reading your prompt. OpenCode sends 7,000. Here's the cache economics, the multiplier stack, and the break-even math for teams.

a stack of money sitting on top of a laptop computer AI and Machine Learning

Reduce LLM API Costs 60%: 6 Techniques

A technique-by-technique playbook with real cost math for cutting LLM API bills in production — covering semantic caching, prompt compression, model routing, batch APIs, and context tiering with 2026 pricing.

Gemini 2.5 Flash vs Claude Haiku 4.5: Best Cheap LLM 2026 AI and Machine Learning

Gemini 2.5 Flash vs Claude Haiku 4.5: Best Cheap LLM

I'd pick Gemini 2.5 Flash for high-volume document pipelines where cost per token is the primary constraint, and Claude Haiku 4.5 for customer-facing conversational workloads where tone and safety rails matter more than squeezing every fraction of a cent.

Keep exploring

Close to this topic, not on this page.