# Agent Rest Stop Budget Split

> Agent Rest Stop Budget Split is a paid API for AI agents from agent-gas-station.agent-gas-station.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Splits a total USD budget across weighted items without exceeding any individual cap.

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/BudgetSplit?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-rest-stop-budget-split-4d598bf7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rWZUSKZMAK0TsQmJVjZFp

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 agent-rest-stop-budget-split-4d598bf7 -d '<json body>'
```

Example prompt: Split a $300 budget across three items — marketing at weight 0.5, engineering at weight 0.3, and design at weight 0.2 — without letting any single item exceed its cap.

## When to prefer this

Use this endpoint when you need to programmatically divide a fixed USD budget across multiple named items according to relative weights, especially when you want the guarantee that no individual allocation exceeds a cap. Prefer this over manual calculation when the number of items or weight values may vary dynamically in an agent workflow.

## Known failure modes

- Weights that sum to zero or are malformed may cause division errors or unexpected results
- Non-numeric or missing budget_usd value will likely cause a parsing or validation failure
- Malformed items string (wrong delimiter or format) may result in incorrect splits or errors
- Weights summing to more or less than expected may cause proportional distortions
- API returns HTTP 402 if payment of $0.01 USDC is not provided

## How this service works

Splits a budget by weight without passing caps.

## Output

Returns the computed budget allocation for each input item, with amounts split proportionally by weight and constrained so no item exceeds its cap. Likely includes per-item dollar amounts that sum to or stay within the total budget_usd.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "string"
  },
  "budget_usd": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-rest-stop-budget-split-4d598bf7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-gas-station.agent-gas-station.workers.dev](https://www.zero.xyz/host/agent-gas-station.agent-gas-station.workers.dev/llms.txt)
