NanoAPI

Pay-per-use APIs for AI agents — image processing and Solana data. USDC micropayments on Base and Solana via x402.

Endpoints

EndpointDescriptionPrice
POST /image/resizeResize an image to target dimensions$0.01
POST /image/compressCompress an image to reduce file size$0.01
POST /image/convertConvert an image between formats$0.01
POST /sol/tx/parseParse a Solana transaction into human-readable form$0.002
POST /sol/fees/recommendGet recommended Solana priority fee$0.001

How it works

  1. Agent calls the endpoint without payment → server responds 402 Payment Required with payment instructions.
  2. Agent signs a USDC transfer (price varies by endpoint, $0.001-$0.01) on Base or Solana — facilitator sponsors gas.
  3. Agent retries with payment proof → server processes the request and returns result.

Discovery