# BRAINIAC Agent Network Float Rebalancing

> BRAINIAC Agent Network Float Rebalancing is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-11).

Computes optimal cash/currency transfers between AI agents in a network to satisfy minimum float requirements at minimum cost within a budget

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/agent-networks/float-rebalancing?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-agent-network-float-rebalancing-81a6ccec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6dBSd3-lrZRpB5zJYzfoW

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 brainiac-agent-network-float-rebalancing-81a6ccec -d '<json body>'
```

Example prompt: I have 5 agents — ag-1 (USD, balance 5000, min float 2000, max float 8000), ag-2 (USD, balance 500, min float 2000, expected demand 200), ag-3 (USD, balance 9000, min float 1000, max float 7000), ag-4 (EUR, balance 100, min float 500), ag-5 (EUR, balance 2000, min float 500) — with a total transfer budget of 10000 units; transfers from ag-1 to ag-2 cost 2 per unit, ag-3 to ag-2 cost 1 per unit, and ag-5 to ag-4 cost 1 per unit — can you work out the optimal rebalancing plan to get everyone above their minimum float at minimum total cost?

## When to prefer this

Use this endpoint when you need to compute optimal cash redistribution across a network of 2–200 agents with heterogeneous currency balances, minimum and maximum float constraints, transfer costs, transfer limits, and a global budget. It is specifically designed for multi-agent treasury rebalancing and returns a full optimization plan rather than just feasibility. Prefer this over manual or heuristic approaches when you have multiple currencies, asymmetric transfer costs, or corridor limits that make the problem non-trivial.

## Known failure modes

- Infeasible rebalancing if budget is insufficient to cover all shortfalls — feasibility will be false for affected currencies with detail explaining the gap
- Missing required fields (agent id, currency, cash_balance, minimum_float, or transfer cost corridor) will cause a validation error
- Agent IDs in transfer_costs or transfer_limits that don't match any agent in the agents array may be rejected or silently ignored
- Integer overflow not expected given schema maximums but extremely large values should be tested
- Empty or single-agent arrays rejected due to minItems:2 constraint on agents array
- More than 200 agents or 5000 transfer corridors will be rejected by schema limits

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns proposed inter-agent transfers (from/to agent, amount, cost per unit, total cost), projected balances before and after for each agent, excess balances above maximum float, remaining uncovered shortages, feasibility status per currency with a detail message, and total transfer cost.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "agents": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "currency",
     "cash_balance",
     "minimum_float"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     },
     "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$"
     },
     "cash_balance": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
     },
     "maximum_float": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
     },
     "minimum_float": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
     },
     "expected_demand": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200,
   "minItems": 2
  },
  "budget": {
   "type": "integer",
   "maximum": 9007199254740991,
   "minimum": 0
  },
  "transfer_costs": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "from_agent_id",
     "to_agent_id",
     "cost_per_unit"
    ],
    "properties": {
     "to_agent_id": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     },
     "cost_per_unit": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
     },
     "from_agent_id": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 5000,
   "minItems": 1
  },
  "transfer_limits": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "from_agent_id",
     "to_agent_id",
     "max_amount"
    ],
    "properties": {
     "max_amount": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
     },
     "to_agent_id": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     },
     "from_agent_id": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 5000
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "feasibility": [
   {
    "detail": "Every shortage in this currency is covered at minimum total transfer cost under the supplied corridors, limits, and bud…",
    "currency": "EUR",
    "feasible": true
   },
   {
    "detail": "Every shortage in this currency is covered at minimum total transfer cost under the supplied corridors, limits, and bud…",
    "currency": "USD",
    "feasible": true
   }
  ],
  "excess_balances": [
   {
    "amount": 1100,
    "agent_id": "ag-5",
    "currency": "EUR",
    "above_maximum": 0
   },
   {
    "amount": 1800,
    "agent_id": "ag-1",
    "currency": "USD",
    "above_maximum": 0
   },
   "…"
  ],
  "projected_balances": [
   {
    "agent_id": "ag-4",
    "currency": "EUR",
    "cash_balance": 100,
    "minimum_float": 500,
    "expected_demand": 0,
    "projected_after": 500,
    "projected_before": 100
   },
   {
    "agent_id": "ag-5",
    "currency": "EUR",
    "cash_balance": 2000,
    "minimum_float": 500,
    "expected_demand": 0,
    "projected_after": 1600,
    "projected_before": 2000
   },
   "…"
  ],
  "proposed_transfers": [
   {
    "cost": 1400,
    "amount": 700,
    "to_agent_id": "ag-2",
    "cost_per_unit": 2,
    "from_agent_id": "ag-1"
   },
   {
    "cost": 1000,
    "amount": 1000,
    "to_agent_id": "ag-2",
    "cost_per_unit": 1,
    "from_agent_id": "ag-3"
   },
   "…"
  ],
  "remaining_shortages": [],
  "total_transfer_cost": 2800
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-agent-network-float-rebalancing-81a6ccec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
