Api Endpoint

Tanod imagepeek

imagepeek (Tanod) image resize: an image resized (inside, contain, cover or fill). Use when an image must be scaled to given dimensions, keeping or ignoring its aspect ratio. Add output=url for a 24 h link.

Open interactive test console

Offering

Provider
tanod.dev
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Creative
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://tanod.dev/v1/image/resize
MIME type
application/json
First seen
2026-10-16T01:51:02.144Z
Last seen
Tags
image-resize, resize-image, dimensions, image, imagepeek, exif, favicon, resize

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.002 USDC
Atomic price: 2000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 3
0.002 USDC
Atomic price: 2000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Payment option 4
0.002 USDC
Atomic price: 2000000000000000 · Network: eip155:56 · Asset: USDC · Scheme: exact
Payment option 5
0.002 USDC
Atomic price: 2000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 6
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 7
0.002 USDC
Atomic price: 2000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0x593857A4a4F619543ea12394137C3004ce841720"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "2000",
    "payTo": "0x593857A4a4F619543ea12394137C3004ce841720"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "2000",
    "payTo": "RMk9k3VC8dr4hhjgFh88rGhjAbzfBzHxJJ5n2fTcqus"
  },
  {
    "scheme": "exact",
    "network": "eip155:56",
    "asset": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
    "amount": "2000000000000000",
    "payTo": "0x593857A4a4F619543ea12394137C3004ce841720"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "2000",
    "payTo": "0x593857A4a4F619543ea12394137C3004ce841720"
  },
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0x593857A4a4F619543ea12394137C3004ce841720"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "2000",
    "payTo": "0x593857A4a4F619543ea12394137C3004ce841720"
  }
]

Observed health

Status
Healthy
Latest latency
333 ms
Average latency
825 ms
HTTP status
204
Last checked
Reachability
100% over 12 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "additionalProperties": false,
      "properties": {
        "auto_orient": {
          "default": true,
          "description": "Apply the EXIF orientation first.",
          "type": "boolean"
        },
        "background": {
          "anyOf": [
            {
              "pattern": "^(#?[0-9a-fA-F]{6}([0-9a-fA-F]{2})?|transparent)$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "contain padding colour (default transparent / white)."
        },
        "fit": {
          "default": "inside",
          "description": "With width and height: inside (default; fit within, keep aspect), contain (fit within, padded to the exact box), cover (fill the box, centre crop) or fill (stretch).",
          "enum": [
            "inside",
            "contain",
            "cover",
            "fill"
          ],
          "type": "string"
        },
        "format": {
          "anyOf": [
            {
              "enum": [
                "png",
                "jpeg",
                "webp",
                "gif",
                "tiff",
                "bmp",
                "ico",
                "avif"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Output format (default: the input's; ICO in, PNG out)."
        },
        "height": {
          "anyOf": [
            {
              "maximum": 32768,
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Target height in pixels (1-32768)."
        },
        "image_base64": {
          "anyOf": [
            {
              "maxLength": 13333464,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The image as standard or url-safe base64 (at most 10 MB decoded; a data:image/...;base64, prefix is fine); or use url."
        },
        "lossless": {
          "default": false,
          "description": "webp output: lossless encoding (default false).",
          "type": "boolean"
        },
        "optimize": {
          "default": false,
          "description": "png output: maximum (slower) compression (default false).",
          "type": "boolean"
        },
        "progressive": {
          "default": false,
          "description": "jpeg output: progressive encoding (default false).",
          "type": "boolean"
        },
        "quality": {
          "anyOf": [
            {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Encoder quality 1-100 (lossy formats)."
        },
        "resample": {
          "default": "lanczos",
          "description": "Resampling filter: nearest, box, bilinear, hamming, bicubic or lanczos (default).",
          "enum": [
            "nearest",
            "box",
            "bilinear",
            "hamming",
            "bicubic",
            "lanczos"
          ],
          "type": "string"
        },
        "scale": {
          "anyOf": [
            {
              "exclusiveMinimum": 0,
              "maximum": 10,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Instead of width/height."
        },
        "upscale": {
          "default": false,
          "description": "Allow output larger than the input.",
          "type": "boolean"
        },
        "url": {
          "anyOf": [
            {
              "maxLength": 2048,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Public http(s) URL of the image (at most 10 MB; private, internal and IP-literal hosts are refused); or use image_base64."
        },
        "width": {
          "anyOf": [
            {
              "maximum": 32768,
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Target width in pixels (1-32768); give width, height, both, or scale."
        }
      },
      "type": "object"
    },
    "bodyType": {
      "enum": [
        "json",
        "form-data",
        "text"
      ],
      "type": "string"
    },
    "method": {
      "enum": [
        "POST"
      ],
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "auto_orient": {
              "default": true,
              "description": "Apply the EXIF orientation first.",
              "type": "boolean"
            },
            "background": {
              "anyOf": [
                {
                  "pattern": "^(#?[0-9a-fA-F]{6}([0-9a-fA-F]{2})?|transparent)$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "contain padding colour (default transparent / white)."
            },
            "fit": {
              "default": "inside",
              "description": "With width and height: inside (default; fit within, keep aspect), contain (fit within, padded to the exact box), cover (fill the box, centre crop) or fill (stretch).",
              "enum": [
                "inside",
                "contain",
                "cover",
                "fill"
              ],
              "type": "string"
            },
            "format": {
              "anyOf": [
                {
                  "enum": [
                    "png",
                    "jpeg",
                    "webp",
                    "gif",
                    "tiff",
                    "bmp",
                    "ico",
                    "avif"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "Output format (default: the input's; ICO in, PNG out)."
            },
            "height": {
              "anyOf": [
                {
                  "maximum": 32768,
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "Target height in pixels (1-32768)."
            },
            "image_base64": {
              "anyOf": [
                {
                  "maxLength": 13333464,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "The image as standard or url-safe base64 (at most 10 MB decoded; a data:image/...;base64, prefix is fine); or use url."
            },
            "lossless": {
              "default": false,
              "description": "webp output: lossless encoding (default false).",
              "type": "boolean"
            },
            "optimize": {
              "default": false,
              "description": "png output: maximum (slower) compression (default false).",
              "type": "boolean"
            },
            "progressive": {
              "default": false,
              "description": "jpeg output: progressive encoding (default false).",
              "type": "boolean"
            },
            "quality": {
              "anyOf": [
                {
                  "maximum": 100,
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "Encoder quality 1-100 (lossy formats)."
            },
            "resample": {
              "default": "lanczos",
              "description": "Resampling filter: nearest, box, bilinear, hamming, bicubic or lanczos (default).",
              "enum": [
                "nearest",
                "box",
                "bilinear",
                "hamming",
                "bicubic",
                "lanczos"
              ],
              "type": "string"
            },
            "scale": {
              "anyOf": [
                {
                  "exclusiveMinimum": 0,
                  "maximum": 10,
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "Instead of width/height."
            },
            "upscale": {
              "default": false,
              "description": "Allow output larger than the input.",
              "type": "boolean"
            },
            "url": {
              "anyOf": [
                {
                  "maxLength": 2048,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "Public http(s) URL of the image (at most 10 MB; private, internal and IP-literal hosts are refused); or use image_base64."
            },
            "width": {
              "anyOf": [
                {
                  "maximum": 32768,
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "Target width in pixels (1-32768); give width, height, both, or scale."
            }
          },
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "bytes": {
              "type": "integer"
            },
            "content_type": {
              "type": "string"
            },
            "data_base64": {
              "type": "string"
            },
            "final_url": {
              "type": "string"
            },
            "format": {
              "type": "string"
            },
            "height": {
              "type": "integer"
            },
            "input": {
              "properties": {
                "animated": {
                  "type": "boolean"
                },
                "bytes": {
                  "type": "integer"
                },
                "format": {
                  "type": "string"
                },
                "frames": {
                  "type": "integer"
                },
                "has_alpha": {
                  "type": "boolean"
                },
                "height": {
                  "type": "integer"
                },
                "width": {
                  "type": "integer"
                }
              },
              "type": "object"
            },
            "notes": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "operation": {
              "type": "string"
            },
            "source": {
              "type": "object"
            },
            "source_url": {
              "type": "string"
            },
            "upscale_prevented": {
              "type": "boolean"
            },
            "width": {
              "type": "integer"
            }
          },
          "required": [
            "operation",
            "input",
            "notes",
            "format",
            "content_type",
            "bytes",
            "width",
            "height",
            "data_base64"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}