{
  "x402Version": 2,
  "id": 35662,
  "slug": "35662",
  "resource": "https://agentsvc.io/api/v1/proxy/image-resize",
  "description": "Resize, crop-fit and convert images (PNG, JPEG, WebP, AVIF, GIF, TIFF, SVG input) to webp, png, jpeg or avif. Auto-rotates by EXIF. Use to shrink screenshots before sending them to a vision model, create thumbnails, or convert formats. Params: image_base64 or image_url (one required), width, height (max 4096), fit (inside default | cover | contain | fill), format (webp default), quality (1-100, default 80).",
  "type": "http",
  "serviceName": "Image Resize and Convert",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791462963/bazaar-icons/243ff0b79dbee242.png",
  "resourceType": "Web Intelligence",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "4500",
      "amountUsd": 0.0045,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "5JzPS5qpEwUM1vTC9GG7uqvwJdHzbEwfoPHf2Ki977tg",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "4500",
      "amountUsd": 0.0045,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "4500",
      "amountUsd": 0.0045,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "4500",
      "amountUsd": 0.0045,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "properties": {
              "format": {
                "type": "string"
              },
              "height": {
                "type": "integer"
              },
              "image_base64": {
                "type": "string"
              },
              "original": {
                "properties": {
                  "format": {
                    "type": "string"
                  },
                  "height": {
                    "type": "integer"
                  },
                  "size_bytes": {
                    "type": "integer"
                  },
                  "width": {
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "size_bytes": {
                "type": "integer"
              },
              "width": {
                "type": "integer"
              }
            },
            "required": [
              "image_base64",
              "format",
              "width",
              "height",
              "size_bytes",
              "original"
            ],
            "type": "object"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "data"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "category": "visual",
      "info": {
        "input": {
          "body": {
            "format": "webp",
            "image_url": "https://agentsvc.io/sample.png",
            "width": 130
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "format": "webp",
              "height": 200,
              "image_base64": "UklGRiQAAABXRUJQVlA4...",
              "original": {
                "format": "png",
                "height": 800,
                "size_bytes": 214000,
                "width": 1280
              },
              "size_bytes": 6120,
              "width": 320
            },
            "success": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "fit": {
                    "default": "inside",
                    "enum": [
                      "inside",
                      "cover",
                      "contain",
                      "fill"
                    ],
                    "type": "string"
                  },
                  "format": {
                    "default": "webp",
                    "enum": [
                      "webp",
                      "png",
                      "jpeg",
                      "avif"
                    ],
                    "type": "string"
                  },
                  "height": {
                    "maximum": 4096,
                    "type": "integer"
                  },
                  "image_base64": {
                    "description": "Base64 image data (data: URI prefix allowed)",
                    "type": "string"
                  },
                  "image_url": {
                    "description": "Public URL of the image (max 15 MB)",
                    "format": "uri",
                    "type": "string"
                  },
                  "quality": {
                    "default": 80,
                    "maximum": 100,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "width": {
                    "maximum": 4096,
                    "type": "integer"
                  }
                },
                "required": []
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "format": {
                        "type": "string"
                      },
                      "height": {
                        "type": "integer"
                      },
                      "image_base64": {
                        "type": "string"
                      },
                      "original": {
                        "properties": {
                          "format": {
                            "type": "string"
                          },
                          "height": {
                            "type": "integer"
                          },
                          "size_bytes": {
                            "type": "integer"
                          },
                          "width": {
                            "type": "integer"
                          }
                        },
                        "type": "object"
                      },
                      "size_bytes": {
                        "type": "integer"
                      },
                      "width": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "image_base64",
                      "format",
                      "width",
                      "height",
                      "size_bytes",
                      "original"
                    ],
                    "type": "object"
                  },
                  "success": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "success",
                  "data"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "image",
        "resize",
        "thumbnail",
        "webp",
        "convert",
        "compress",
        "sharp",
        "image-resize",
        "image-conversion"
      ]
    },
    "builder-code": {
      "info": {
        "a": "bc_q6wi3opd"
      }
    }
  },
  "tags": [
    "image",
    "resize",
    "thumbnail",
    "webp",
    "convert",
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "agentsvc.io",
  "lastUpdated": "2026-10-11T11:56:13.023Z",
  "quality": {
    "calls30d": 11,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-11T11:56:12.809Z"
  },
  "metadata": {
    "serviceName": "Image Resize and Convert",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791462963/bazaar-icons/243ff0b79dbee242.png",
    "extensions": {
      "bazaar": {
        "category": "visual",
        "info": {
          "input": {
            "body": {
              "format": "webp",
              "image_url": "https://agentsvc.io/sample.png",
              "width": 130
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "format": "webp",
                "height": 200,
                "image_base64": "UklGRiQAAABXRUJQVlA4...",
                "original": {
                  "format": "png",
                  "height": 800,
                  "size_bytes": 214000,
                  "width": 1280
                },
                "size_bytes": 6120,
                "width": 320
              },
              "success": true
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "fit": {
                      "default": "inside",
                      "enum": [
                        "inside",
                        "cover",
                        "contain",
                        "fill"
                      ],
                      "type": "string"
                    },
                    "format": {
                      "default": "webp",
                      "enum": [
                        "webp",
                        "png",
                        "jpeg",
                        "avif"
                      ],
                      "type": "string"
                    },
                    "height": {
                      "maximum": 4096,
                      "type": "integer"
                    },
                    "image_base64": {
                      "description": "Base64 image data (data: URI prefix allowed)",
                      "type": "string"
                    },
                    "image_url": {
                      "description": "Public URL of the image (max 15 MB)",
                      "format": "uri",
                      "type": "string"
                    },
                    "quality": {
                      "default": 80,
                      "maximum": 100,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "width": {
                      "maximum": 4096,
                      "type": "integer"
                    }
                  },
                  "required": []
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "format": {
                          "type": "string"
                        },
                        "height": {
                          "type": "integer"
                        },
                        "image_base64": {
                          "type": "string"
                        },
                        "original": {
                          "properties": {
                            "format": {
                              "type": "string"
                            },
                            "height": {
                              "type": "integer"
                            },
                            "size_bytes": {
                              "type": "integer"
                            },
                            "width": {
                              "type": "integer"
                            }
                          },
                          "type": "object"
                        },
                        "size_bytes": {
                          "type": "integer"
                        },
                        "width": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "image_base64",
                        "format",
                        "width",
                        "height",
                        "size_bytes",
                        "original"
                      ],
                      "type": "object"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        },
        "tags": [
          "image",
          "resize",
          "thumbnail",
          "webp",
          "convert",
          "compress",
          "sharp",
          "image-resize",
          "image-conversion"
        ]
      },
      "builder-code": {
        "info": {
          "a": "bc_q6wi3opd"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentsvc.io",
    "manifest_name": "agentsvc.io",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "data": {
        "format": "string",
        "height": 0,
        "image_base64": "string",
        "original": {
          "format": "string",
          "height": 0,
          "size_bytes": 0,
          "width": 0
        },
        "size_bytes": 0,
        "width": 0
      },
      "success": true
    },
    "type": "string"
  }
}