generation_spend_cap_usd of 0, 120, 450, null or 600: which applies?

On a Format run 120 and 450 are used as given, null is the $500 platform maximum, and 0 or 600 returns a 400. Omitted means the Format's cap or $400.

5 min readSume
All posts

On a Format run, generation_spend_cap_usd: 120 caps the run at $120, 450 caps it at $450 even if the Format's own cap is lower, null lifts it to the $500 platform maximum, and 0 or 600 is a 400. If you omit the field, the run inherits the Format's cap, which is $400 when the Format never set one.

The table

This is the resolution rule from the Format call guide.

Effective cap for a Format run, as of 2026-10-08
You sendThe run's cap
NothingThe Format's cap, or $400 if it never set one
120$120
450$450, even if the Format's cap is lower
null$500, the platform maximum
0400 error
600400 error

What a cap does and does not do

The Format errors page describes two gates. The wallet gate runs at create and returns 402 insufficient_credits if the workspace cannot fund the run. The spend cap applies during the run; a run that hits it ends as failed, and usage shows how near to the cap the spend got.

The cap is not a bill. The receipt's usage.billable_amount_usd_micros counts reserved plus captured generation amounts and excludes the agent's own LLM turn, so it is not the total cost. Use GET /v1/usage and GET /v1/balance as the billing records.

Picking a number

Production long-form runs usually use caps near $120, and a single-scene retry needs a few dollars. Size a cap from the rate card: a run that makes six 15 second plus avatar clips needs 6 x 15 x $0.245 = $22.05 before images, music and the timeline, so a $30 cap would be tight and $120 would be generous.

Because the API accepts a request cap above the Format cap and does not clamp it, treat the request field as a deliberate override, not a default.

Two examples

A Format has a cap of $200. A request that sends nothing runs under $200. A request that sends 450 runs under $450, because the API accepts a number above the Format's cap and does not clamp it. A request that sends null runs under $500. A request that sends 600 is rejected with 400, and so is 0.

A Format that never set a cap reports the platform default of $400 in generation_spend_cap_usd_micros. The receipt shows the effective cap as usage.generation_spend_cap_usd_micros on every run, which is the value to log.

  • Cap in USD micros: $120 is 120,000,000.
  • Do not confuse the cap with the wallet check at create.
  • A run that reaches the cap ends as failed.

Sources

Related posts

More in Pricing

All Pricing posts

Written by Sume