For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: A month to date view of where AI spend goes by model, team, agent and API key, with caps at risk and one item's daily spend and projection
When to use
- A self-serve planner where an admin sets next month's token volume, model and add-ons against a budget
- A month to date breakdown of AI spend by model, team, agent and API key, with the caps at risk
- A budget, run rate or volume discount readout inside an AI product's own account area
When not to use
- An operator view of provider health, routing and quotas across a whole org: use the AI Ops blocks
- Staff back office for invoices, subscriptions, dunning and metered charges: use the Billing blocks
- Public plan tiers or an upgrade paywall shown before anyone has usage: use the Pricing blocks
Agent notes
DIMENSIONSholds each split's leaves; their seedspendvalues must sum to theWORKSPACEspend, because every share divides by it- Ask Nimbus answers come from
answerFor, a canned stand in; send the question fromAskPanelto your model API instead - The
METRICSCost or Tokens toggle reorders only the splits and leaves; the budget dial andLeafInspectoralways show dollars AiUsagetakes no props and calls no API; every figure comes from typed constants in components/data.tsx, so swap them for your data- Money prints through en-US USD helpers such as
formatDollarsin formatters.ts, so another currency starts there
Third-party API docs
- Recharts v3: API reference, docs
- Motion v12: API reference, docs (the docs follow the latest Motion, with no React API break since v12)
https://reui.io/blocks/ai-agents/ai-usage/ai-usage-2.mdget_block("ai-usage-2")npx shadcn@latest add @reui/ai-usage-2Shadcn Components in the Spend Map Block
Dependencies
- cn
- motion
- recharts
Shadcn Spend Map Block
Spend map that fans monthly AI spend out by model, team, agent and API key. Part of the ReUI Shadcn AI & Agents AI Usage blocks collection.
Month to date AI spend as a fan map: a budget dial splits spend by model, team, agent and API key, flags caps at risk and inspects one item's daily spend. ReUI Frame, Badge, IconTile; shadcn Chart, ToggleGroup, DropdownMenu, Progress, InputGroup; Motion. AI spend, cost breakdown.
It is composed from Avatar, Badge, Button, Chart, Dropdown Menu, Frame, Icon Tile, Input Group, and more, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Spend Map Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn AI & Agents AI Usage blocks to assemble a full screen instead of a single section.
All Shadcn AI & Agents AI Usage Blocks
The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.
- Usage Planner Usage planner with a stepped token ruler, model cards and a live spend estimate
Related Shadcn AI & Agents Block Categories
- AI Chat (13) Conversation surfaces for AI products, from full chat shells to embeddable threads, sheets, and launchers.
- Agent Activity (5) Agent run views, from live step feeds and approvals to research traces, MCP call tables, and run reports.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (44) Browse 44 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (51) Browse 51 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (20) Browse 20 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the Spend Map block?
Use it for a month to date view of where AI spend goes by model, team, agent and API key, with caps at risk and one item's daily spend and projection.
The AI Usage category fits:
- A self-serve planner where an admin sets next month's token volume, model and add-ons against a budget
- A month to date breakdown of AI spend by model, team, agent and API key, with the caps at risk
- A budget, run rate or volume discount readout inside an AI product's own account area
For an operator view of provider health, routing and quotas across a whole org, use the AI Ops blocks. For staff back office for invoices, subscriptions, dunning and metered charges, use the Billing blocks. For public plan tiers or an upgrade paywall shown before anyone has usage, use the Pricing blocks.
What is the Spend Map block built with?
Can I restyle the Spend Map block?
How should I use Shadcn ai usage blocks in a real project?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.