メインコンテンツへスキップ
COST OPTIMIZATION

Slash Coding Agent Bills With 80%+ Cached Input Discounts

Cut multi-turn agent bills dramatically with automatic cached-input rates starting at $0.045/1M on DeepSeek V4.1 Flash and $0.25/1M on GLM-5.3.

Why Standard APIs & Subscriptions Break Here

In coding agents like Claude Code, Cline, and Roo Code, 70–90% of every turn consists of repeated system instructions, MCP tool schemas, and already-read files — paying full uncached input rates every turn wastes thousands of dollars per year.

How bf16.ai Solves This Workflow

  • DeepSeek V4.1 Flash Uncensored drops cached input from $0.26 to $0.045/1M (~82.7% savings).
  • GLM-5.3 Uncensored drops cached input from $1.35 to $0.25/1M (~81.5% savings).
  • Kimi K3.1 Pro Uncensored drops cached input from $1.95 to $0.28/1M (~85.6% savings).

Recommended Model Split

Smart Alias: bf16/auto:coding
Primary Model
DeepSeek V4.1 Flash Uncensored
deepseek/deepseek-v4.1-flash-uncensored
$0.26 in · $0.045 cached · $1.00 out / 1M · 1M tokens

24/7 coding loops, subagent fan-out, and high-volume automation

Secondary / Fast Subagent
GLM-5.3 Uncensored
zai-org/glm-5.3-uncensored
$1.35 in · $0.250 cached · $4.20 out / 1M · 1M tokens

Flagship architecture refactoring, Claude Code & Codex sessions

Copy-Paste Production Config

Keep static instructions & repo maps at the prompt prefix

caching-pattern.ts
// Stable prefix (system rules + tool schemas + shared files) hits prompt cache (~80%+ off)
const messages = [
  { role: 'system', content: staticRepoRulesAndTools },
  ...conversationHistory,
  { role: 'user', content: latestTask },
];

よくある質問

Do I need to configure special cache TTL APIs like Google Vertex?

No — keep static instructions and files in the prompt prefix and cached input pricing applies automatically.

How can I calculate my savings at 75% vs 85% cache hit rate?

Use the interactive slider in /tools/cost-calculator to see exact monthly dollar deltas.

Why does bf16.ai achieve higher cache hit rates than dynamic multi-cloud routers?

Dedicated cluster locality preserves GPU KV caches across consecutive agent turns instead of bouncing turns across random third-party clouds.

関連ガイドと比較

ユースケース一覧

Not affiliated with Anthropic, OpenAI, Google, Z.ai, Moonshot AI, DeepSeek, or any third-party provider listed on this page. All trademarks belong to their respective owners. "bf16" is a brand name, not a statement about numeric precision. Third-party reference rates are public approximations; check official pricing pages for exact current terms.