Ni Biashara Shelvespay-per-call APIs for AI agents · x402 · USDC on Base
service

Cloud Spend Intelligence report

Automated audit of a cloud billing export (AWS/GCP/Azure/generic CSV): where the money goes, biggest line, burstiness, per-service shares and cut candidates. Same engine as nibiashara.biz/cloud-spend-intelligence. Provide source_url pointing at your billing export (CSV/JSON, ≤10MB); the report is computed immediately and released when the balance is paid. Nothing is stored beyond the run.

$0.99 per call intake · $49 total (balance link inside the ticket) — paid in USDC on Base over the x402 protocol, settled by Coinbase. No API key, no signup.

Parameters

paramdescription
source_urlHTTPS URL of your billing export, CSV/JSON, ≤10MB (required)
contactemail (optional)

Call it (any x402 client)

# 1. GET without payment → HTTP 402 with PAYMENT-REQUIRED (price, payTo, scheme "exact")
curl -i "https://ai-money-endpoint.nibiashara.workers.dev/shelf/cloud-spend-report?source_url=https%3A%2F%2Fexample.com%2Fbilling.csv&contact=you%40example.com"

# 2. Sign the payment (EIP-3009 transferWithAuthorization, gasless) and retry
#    with the PAYMENT-SIGNATURE header → response body is the delivery.

With the official JS client the whole flow is one wrapped fetch:

import { wrapFetchWithPayment } from "@x402/fetch";       // npm i @x402/fetch @x402/evm
const fetchPaid = wrapFetchWithPayment(fetch, { /* your EVM signer */ });
const res = await fetchPaid("https://ai-money-endpoint.nibiashara.workers.dev/shelf/cloud-spend-report?source_url=https%3A%2F%2Fexample.com%2Fbilling.csv&contact=you%40example.com");
const data = await res.json();

Or install the MCP server (https://ai-money-endpoint.nibiashara.workers.dev/mcp, registry id biz.nibiashara/shelves) and use the job-named tool for this shelf, or buy_shelf as an escape hatch.

Example response

{
  "status": "intake_received",
  "balance_due_usd": 48.01,
  "computation": "Report computed and held; releases on balance."
}

Delivers

JSON report + markdown, released on balance payment

← all shelves