x402
utility

Calculate gross profit and margin from per-unit price and cost. Use it as a bounded preflight or analysis step inside an enterprise agent workflow before data, policy, integration, security, or commercial decisions reach production. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base or Solana. Execution is first-party, local-only, stateless, memory-only, and has no paid upstream or input retention. Results are advisory; the caller remains responsible for authorization and production controls.

post/api/v1/x402/unit-economics

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/unit-economics
  • Auth: none declared

Request body

pricenumber required

Input field: price.

costnumber required

Input field: cost.

Response

Paid utility result. Downstream tool errors are returned as structured result payloads with HTTP 200 after payment succeeds.

schemastring
pricenumber
costnumber
gross_profitnumber
gross_margin_percentnumber
profitableboolean

Changes

No recorded changes to this operation across all 1 revision of this API.