Lambda and Durable Objects bill 128 MB of memory. Your tool uses 5.
AWS Lambda and Cloudflare Durable Objects bill at least 128 MB per call. What that floor costs a 5 MB agent tool, platform by platform, with dated rates.
CrabTalk Team
AWS Lambda and Cloudflare Durable Objects both bill memory at a 128 MB floor. A Lambda function can't be configured below 128 MB, and a Durable Object's duration is billed on its 128 MB allocation whatever it actually uses. An agent tool that parses a JSON response and writes one row may peak at 5 MB, so most of what it pays for is memory it never touched. This post shows where the floor comes from, how many workloads sit on it, and what it costs at each platform's published rates.
Where the 128 MB floor comes from
| Platform | Memory billed for a 5 MB call | Source |
|---|---|---|
| AWS Lambda | 128 MB, the smallest configurable size (128 MB to 10,240 MB in 1 MB steps) | Lambda memory |
| Cloudflare Durable Objects | 128 MB: duration is billed on the allocation "regardless of actual usage" | Durable Objects pricing |
| Deno Deploy | 768 MB, the default allocation, for every second the app is loaded | Deno Deploy pricing |
| Vercel Functions | 2 GB, the default size on Pro and the only size on Hobby | Vercel function memory |
| CrabTalk | The memory the call holds, capped by the tool's budget (1 to 128 MB) | Budgets |
Allocations checked November 21, 2026. Each platform bills memory as an allocation multiplied by time, so the allocation is the number that matters.
Durable Objects stop billing duration once an object can hibernate, and Vercel's memory charges pause after the last in-flight request. Both reduce the time billed. Neither changes the 128 MB or 2 GB being multiplied.
Half of Lambda functions already sit on the floor
Datadog's State of Serverless 2020 found that 47% of Lambda functions were configured with the minimum 128 MB. Only 14% used more than 512 MB. Developers set memory as low as the platform allows, because cost scales with it.
Datadog's later State of Containers and Serverless reports that most container workloads use less than half the memory they request. The 2020 figure is the most recent published share at the Lambda minimum we found. If a function is configured at the minimum, nothing in the configuration says how far below it the function would go.
What the floor costs a 5 MB tool
Take a tool whose calls hold 5 MB and spend one second each, mostly waiting on an upstream API. Here is the memory line alone for a million calls, from the model behind our cost comparison:
| Platform | Memory billed | Memory cost per million calls |
|---|---|---|
| CrabTalk | 5 MB | $0.06 |
| Durable Objects | 128 MB | $1.57 |
| Lambda (x86) | 128 MB | $2.14 |
| Deno Deploy | 768 MB | $5.22 |
| Vercel Pro (iad1) | 2,048 MB | $5.90 |
The Durable Objects rate is $12.50 per million GB-seconds and CrabTalk's is $12.288, so the gap is almost entirely the allocation: 128 MB against 5 MB is a factor of 25.6. Rates as read October 12–19, 2026. Calls run one at a time, before plans, included usage and storage at rest. The methodology lists every assumption and rate source.
Memory is one line of a bill. Requests, CPU and rows read are charged on top, and on some workloads they dominate. The calculator shows the full total for the workload you enter.
Why the floor matters more for agent tools
A web request handler can afford 128 MB: it renders a page, holds a framework in memory and serves many users from one warm instance. An agent tool usually does one small thing per call, such as a lookup, a parse or a single write. Its calls are short, bursty and unattended, so its billed memory is mostly floor.
There are also far more of them now. The official MCP registry listed about 2,000 servers in November 2025 and 64,935 on November 15, 2026. A census across the registry, GitHub, npm and PyPI counted 118,434 active servers on November 14, 2026. Both are third-party counts, and methods differ.
Billing the memory a call holds
A CrabTalk call is billed for the memory it holds, for as long as it holds it. A tool's budget, from 1 MB to 128 MB, is a ceiling, and one call can lower it further when its input needs less. A call that tries to grow past its budget fails, and nothing else is affected.
Measure before you set it. crab bench runs representative inputs in a temporary host and reports peak memory, and crab budget suggests a value from 30 days of real calls. Both are described in the budgets guide, and Cost of a call shows how memory held is billed.
If you stay on Lambda or Durable Objects
- Lambda: 128 MB is the floor, and CPU scales with memory, so a CPU-bound function may finish faster and cost less above the minimum. Measure with AWS Lambda Power Tuning before you lower it.
- Durable Objects: let objects hibernate. An object that can hibernate isn't billed for duration while idle, which shortens the time multiplied by 128 MB.
- Both: batch small calls into one invocation where the caller allows it. The floor is paid per unit of time, so fewer, fuller calls waste less of it.