# Stamina Budget Calculator

> Stamina Budget Calculator is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-03).

Estimates how many actions a character can perform given a total stamina pool and the stamina cost per action.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/stamina-budget-calculator?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stamina-budget-calculator-0b953fa6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uiorqbzwI0ekkKcJ8jPYV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability stamina-budget-calculator-0b953fa6 -d '<json body>'
```

Example prompt: I have a stamina pool of 150 and each action costs 22 stamina — how many actions can I take before I run out?

## When to prefer this

Use this endpoint when building game tools, RPG utilities, or design calculators that need to quickly compute action counts from stamina resources without implementing the arithmetic manually. Ideal for game designers, tabletop assistants, and agent-driven RPG helpers.

## Known failure modes

- Missing or zero cost_per_action causing division by zero
- Non-numeric values for stamina or cost_per_action fields
- Negative stamina or cost values producing nonsensical results
- Payment failure (402) if USDC balance is insufficient

## How this service works

Stamina budget calculator: Estimate actions possible from stamina pool and action cost.

## Output

Returns the estimated number of actions a character can perform, derived by dividing the total stamina pool by the cost per action, giving a clear integer or decimal count of possible actions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "stamina": {
   "type": "number",
   "default": 100
  },
  "cost_per_action": {
   "type": "number",
   "default": 17
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stamina-budget-calculator-0b953fa6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
