Pay an x402 URL
x402_payCalls a URL that asks for an x402 payment and pays it for you: the gateway pays the seller in USDC from its own float on Base or Solana and charges this key in USDF cost plus 5% at most, no minimum (the seller's amount and a fee of at most 5% of it; never free credit), within the key's and its agent's limits. Needs Authorization: Bearer sk_.... Returns the seller's answer with the payment and its receipt; a payment is charged only once the chain shows it, and one that never settles costs nothing. quote: true answers what it would cost and pays nothing. Third-party tools to call this way are listed under marketplace in list_tools (GET /v1/tools?source=marketplace).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The seller's URL (https) | |
| body | No | The request body: text, or JSON sent as application/json | |
| quote | No | Answer the price and pay nothing | |
| method | No | Default GET, or POST when a body is given | |
| headers | No | Headers for the seller (the payment headers are the gateway's) | |
| network | No | Pay on this network only | |
| max_price | No | The most to pay in USDF, the fee included ("0.05") |