Skip to main content
Watch: Claude Code Just Killed After Effects

COST OPTIMIZATION

16 items

16 posts

Blog
How to Cut Your LLM API Bill in 2026: Prompt Caching, Batch and Flex Tiers Compared Across 15 Providers

Caching a shared prompt cut our worked example by about 78-80% on four models; batch takes 50% off at most providers but 40% at Moonshot and 20% at xAI. Only Anthropic, Fireworks and xAI say the two stack. The math, the assumptions and the quotes.

Blog
Image and Video Generation API Pricing in October 2026: What One Image and One Second of Video Cost Across 19 Providers

At the same 1K size label, per-image API prices run from $0.003 to $0.22. At 720p, video runs from $0.025 to $1.50 a second. The like-for-like math, the units that do not convert, what retires this week, and where the providers' own docs disagree.

Blog
Prompt Caching Across AI Providers: Prices, TTLs and Setup

Prompt caching across OpenAI, Anthropic, Gemini, DeepSeek, Mistral, xAI and Qwen: prices, TTLs, setup code. A reused 100K prefix costs 71-93% less.

Blog
The Harness Is the New Cost Lever: Databricks' Benchmark and Pi's Context Discipline

Coding harness choice moved cost per task by more than 2x at the same quality in a Databricks benchmark. Why Pi's minimal context discipline explains the gap.

Blog
AI Model Routing Strategies for Cost-Effective Coding in 2026

AI model routing for cost-effective coding: pick Claude, GPT-5.6 or Kimi tiers by task complexity, cost and latency, with decision frameworks and code.

Blog
Why Price Per 1M Tokens Is a Misleading Metric for LLM Costs

Comparing LLMs by token pricing alone can lead you to choose worse, more expensive models. Cost per task tells the real story.

Blog
Image Token Compression Is a Real Agent Cost Lever

Image token compression cuts agent costs by rendering bulky context as images, but it is lossy. Where to use it, the byte-safety rule, and the evals it needs.

Blog
Factory Router, Explained: How Automatic Model Routing Cuts Coding-Agent Spend 20-25%

Factory Router explained: automatic model routing and failover for Droid sessions, which spend and reliability claims are vendor claims, and router vs DIY.

Blog
Prompt Caching Economics on Fable 5: When the 5-Minute TTL Pays

Fable 5 prompt caching economics: cache-write vs cache-read pricing, 5-minute vs 1-hour TTL break-even math, and worked agent-loop examples.

Blog
How to Model Fable 5 Costs Before They Blow Up Your Budget

Claude Fable 5's $10/$50 per million token pricing can catch teams off guard - here is how to build a real cost model before you commit.

Blog
Factory AI and the Model Routing Era: How Coding Agents Are Learning to Spend Your Tokens Wisely

Factory AI's Droid lets you pick a model per task and per subagent. What its routing, BYOK and open-weight tiers reveal about cutting coding agent costs.

Blog
MiniMax M2.5 for Developers: The Anthropic-Compatible Budget Frontier Model

MiniMax M2.5 hits 80.2% on SWE-bench Verified and plugs into the Anthropic SDK with two environment variables. Here is what you need to know before switching.

Blog
DeepSeek V4 Changes the Coding Agent Cost Equation

DeepSeek V4 brings near-frontier coding at a much lower token price. Where cheap reasoning fits in a coding agent stack, from code review to repo mapping.

Blog
Claude Batch API: Cutting Async Workload Costs In Half

How to ship Claude's Batch API in production. 50% cost savings, TypeScript SDK code, JSONL request format, and the async architecture gotchas that bite at 100k requests.

Blog
Extended Thinking in Claude: When Deep Reasoning Pays For Itself

A production guide to Claude's extended thinking mode. Real cost math, TypeScript SDK code, and the tasks where reasoning tokens are worth 3x the spend.

Blog
Prompt Caching in the Claude API: A Production Guide

Cut Claude API spend by up to 90% with prompt caching. Real numbers, TypeScript SDK code, and the gotchas Anthropic's docs gloss over.

AI Development Stack

Get Smarter About AI Dev

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.

One email per weekReal code, not theoryFree forever