x402 upto vs exact: how each maps to a Sume spend cap

Apify's x402 upto charges actual usage up to an allowance; exact takes a fixed $1.00 deposit and refunds the rest. Sume's analogue is a per-call spend cap.

4 min readSume
All posts

In Apify's x402 setup, upto sets an allowance and charges what the run actually used, while exact takes a fixed $1.00 deposit and refunds the unused balance. Sume has no on-chain payment step; the closest controls are max_spend_usd on a paid MCP call and the required generation_spend_cap_usd on an Agent Completion.

The details come from Apify's launch post, published June 30, 2026, which describes more than 20,000 Actors settling in USDC on Base. Its own warning is worth repeating: treat an agent wallet like a low-balance hot wallet.

Side by side

Spend-limit models (read 2026-10-04)
ModelHow the limit worksSource
x402 uptoAllowance, then charge for actual usageApify blog
x402 exactFixed $1.00 deposit, unused balance refundedApify blog
Sume paid MCP callOptional max_spend_usd, enforced only when sent; dry_run previewsSume tools and gates
Sume Agent CompletionRequired generation_spend_cap_usd; 400 if missingSume Agent Completions

What carries over and what does not

The shared idea is a ceiling set before work starts. The difference is who holds the money. With x402 the agent's wallet signs a payment. With Sume, your account balance pays, and the ceiling is a field in the request, so a leaked key can spend only up to what each call allows plus whatever calls the key may make.

Sume enforces max_spend_usd only when you provide it, which is the opposite of the Agent Completion rule. Make your client library add it by default.

Rules of thumb

  • Prefer a cap per call over a large shared allowance.
  • Use dry_run to see the estimate before the real call.
  • Keep API keys scoped and rotate them; docs list the scopes for Agent Completions.
  • Do not mix the models: a 402 from Sume means add credits, not send a payment header.

Sources

Related posts

More in Agents

All Agents posts

Written by Sume