image_transform
Fetches a public image and returns it resized, cropped or converted, as a base64 data URL with the output size. Fit modes scale-down, contain, cover, crop, pad. Max 4 MB output. 0.005 USDC per call via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | scale-down, contain, cover, crop or pad | scale-down |
| url | Yes | Public image URL | |
| width | No | ||
| format | No | webp, avif, jpeg, png or auto | webp |
| height | No | ||
| quality | No | ||
| paymentProof | No | Payment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof. |