billflare.

Feng Yi: AI cost weekly|11/20; watching the model unit price is not enough—first split costs across requests, CPU, tokens, writes, and retries

On 2026-11-20, X user @Michael_liyang (Feng Yi) published "AI cost weekly|11/20". The conclusion is that watching the model unit price is not enough—first split costs across requests, CPU, tokens, writes, and retries. Figures the author checked this week: creating a D1 table is rows_written=2, and inserting 1 row is rows_written=1; the Workers free tier is 100,000 requests/day; the D1 free tier is 5,000,000 row reads/100,000 row writes per day; R2 egress is 0 美元. Suggested ledger fields: requests / rows_written / cpu_ms / input_tokens / output_tokens / retry_rate / cost_per_success. The author cautions: a free quota is not 0 cost.

Products
WorkersD1R2
Source
Author experience𝕏 post
Author
Feng Yi (@Michael_liyang)

Key points

  • The free-tier figures in the post are the result of what the author "checked this week," and should be compared with the official pricing page; do not treat creating a table at rows_written=2, or inserting one row at rows_written=1, as a bill amount. This is a weekly on a cost-splitting method, and it is not merged into this author's other single-topic tutorials.

Original sources

  1. Published

    Original post

    Read on 𝕏

    On 2026-11-20, X user @Michael_liyang (Feng Yi) published "AI cost weekly|11/20". The conclusion is that watching the model unit price is not enough—first split costs across requests, CPU, tokens, writes, and retries. Figures the author checked this week: creating a D1 table is rows_written=2, and inserting 1 row is rows_written=1; the Workers free tier is 100,000 requests/day; the D1 free tier is 5,000,000 row reads/100,000 row writes per day; R2 egress is 0 美元. Suggested ledger fields: requests / rows_written / cpu_ms / input_tokens / output_tokens / retry_rate / cost_per_success. The author cautions: a free quota is not 0 cost.

    风易 | AI 工具链

    @Michael_liyang · Original 𝕏 post

    先说结论:AI 成本周报|11/20。盯模型单价不够,先把请求、CPU、token、写入和重试分账。 本周核对的数字:D1 建表 rows_written=2、插 1 行 rows_written=1;Workers 免费档 100,000 请求/天;D1 免费档 5,000,000 行读/100,000 行写每天;R2 出网 0 美元。 账本字段:requests / rows_written / cpu_ms / input_tokens / output_tokens / retry_rate / cost_per_success。 免费额度不是 0 成本。你的日任务最先撞线的是请求、行写还是 CPU?
Community resourceDurable Objects +2

sean1093/purse-strings: in-process LLM spend budgets, with optional Durable Objects or KV stores

The MIT-licensed TypeScript library purse-strings (sean1093/purse-strings) is described as a denial-of-wallet guard for apps that call LLM APIs: per-user, per-session and global token, cost and request budgets, plus step, tool-call and time limits for agent loops. It has zero runtime dependencies and can keep counters in memory, Firestore, or Cloudflare Durable Objects or Workers KV. The README warns that with multiple process replicas, each replica enforces the limit, so the effective limit is N times the configured value unless a shared store is used, and that a Durable Objects or KV store is what a hard limit needs. Reviewed from the public README on 2026-11-19. Example figures in the docs include a user-daily cap of costUsd: 1 and a fleet-daily cap of costUsd: 200.

Other

Nirant (@NirantK): card charged $6,773 out of the blue with no budget alert; asks for relief.

Nirant (@NirantK) says his card paid $6,773 out of the blue while he was finishing experiments and migrating workloads to Cloudflare, with no budget or default alerts and no warning. He says he has no invoice showing the breakdown and cannot afford the bill, and shares support case #02390828. Fayaz Ahmed, whose X profile lists him as a Sr. Dev Educator at Cloudflare, replies that he has informed the team internally; the author later says he heard back by email and asks for relief from the Cloudflare for Startups team.

Author experienceWorkers +3

fantuantalk: apply for Cloudflare for Startups $10,000 credits while bootstrapped

@fantuantalk’s X article walks through applying to Cloudflare for Startups as a self-funded builder: $10,000 / $100,000 / $350,000 credit tiers, one-year non-cash credits usable on Workers/R2/D1/Workers AI (with product-specific caps; AI Gateway not covered), form steps, and a note that a payment method is still required so overages or ineligible charges can bill.