Browse the docs

AI spending

Passes while the AI steps have cost less than an amount in dollars today, this week or this month.

AI spent this period is below below

Details #

Compares what the model steps have cost so far with below, in dollars. It passes while the spending is under that amount. Use it as an Only if so a macro stops running when the budget is gone, or in an If step to pick a cheaper path.

Only cloud models cost anything. Steps that run on this Mac with Apple Intelligence cost nothing and add nothing here. Make with AI and Fix with AI count toward the total, but not toward any one macro.

With macro set to this the condition counts only the macro it is in. A macro's id counts only that macro.

Every condition accepts "negate": true, which flips the verdict. The trace records the amount spent.

Parameters #

ParameterTypeRequiredValuesWhat it does
belownumberYesRequired. Dollars. The condition passes while the spending is under it.
macrotextLeave out for everything, this for the running macro, or a macro id.
periodone oftoday week monthtoday, week or month. Default today. Weeks start on the day your calendar says, months on the 1st.

Examples #

Only run while today's AI spend is under $2
When
  1. Press ⌃⌥J
Only if
  1. If AI spending today is under $2
Do
  1. Ask AI to rewrite: “Make this friendlier”
Open in Switchboard to try it

See also #

aiSpent(), Ask AI to choose, AI budgets