Identity & Enrichment · x402 · early usage
imagepeek (Tanod) image compression: to a quality or a byte budget
imagepeek (Tanod) image compression: to a quality or a byte budget.
by tanod.dev · discovered, not yet claimed by its owner · updated 2026-10-08
30d calls2
30d payers2
MethodPOST
Outputjson
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
imagepeek (Tanod) image compression: to a quality or a byte budget.
Tags: imagepeek · image · image-resize · exif · favicon · bazaar · builder-code
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-08
Input example from Bazaar metadata
{
"max_bytes": 150000,
"url": "https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/gps/DSCN0010.jpg"
}Output example
{
"after_bytes": 132092,
"before_bytes": 161713,
"bytes": 132092,
"content_type": "image/jpeg",
"data_base64": "/9j/4AAQSkZJRgAB... (trimmed: 176,124 base64 characters in the reply)",
"encodes": 1,
"final_url": "https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/gps/DSCN0010.jpg",
"format": "jpeg",
"height": 480,
"input": {
"animated": false,
"bytes": 161713,
"format": "jpeg",
"frames": 1,
"has_alpha": false,
"height": 480,
"width": 640
},
"notes": [],
"operation": "compress",
"quality_used": 85,
"returned_original": false,
"saved_bytes": 29621,
"saved_ratio": 0.1832,
"source": {
"library": "Pillow",
"license": "MIT-CMU (HPND)",
"url": "https://python-pillow.org"
},
"source_url": "https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/gps/DSCN0010.jpg",
"target_met": true,
"width": 640
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/35968.jsonfor the price and payment options. - Pay. Call
GET https://tanod.dev/v1/image/compress. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Polygon, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.003 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Polygon
- Demand
- 2 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.003 | 0x593857A4a4F619543ea12394137C3004ce841720 | 300s |
| exact | Polygon eip155:137 | USDC | $0.003 | 0x593857A4a4F619543ea12394137C3004ce841720 | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "3000",
"amountUsd": 0.003,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "3000",
"amountUsd": 0.003,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"after_bytes": {
"type": "integer"
},
"before_bytes": {
"type": "integer"
},
"bytes": {
"type": "integer"
},
"content_type": {
"type": "string"
},
"data_base64": {
"type": "string"
},
"encodes": {
"type": "integer"
},
"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"
},
"quality_used": {
"type": [
"integer",
"null"
]
},
"returned_original": {
"type": "boolean"
},
"saved_bytes": {
"type": "integer"
},
"saved_ratio": {
"type": "number"
},
"source": {
"type": "object"
},
"source_url": {
"type": "string"
},
"target_met": {
"type": [
"boolean",
"null"
]
},
"width": {
"type": "integer"
}
},
"required": [
"operation",
"input",
"notes",
"format",
"content_type",
"bytes",
"width",
"height",
"data_base64"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"after_bytes": 0,
"before_bytes": 0,
"bytes": 0,
"content_type": "string",
"data_base64": "string",
"encodes": 0,
"final_url": "string",
"format": "string",
"height": 0,
"input": {
"animated": true,
"bytes": 0,
"format": "string",
"frames": 0,
"has_alpha": true,
"height": 0,
"width": 0
},
"notes": [
"string"
],
"operation": "string",
"quality_used": 0,
"returned_original": true,
"saved_bytes": 0,
"saved_ratio": 0,
"source": {},
"source_url": "string",
"target_met": true,
"width": 0
},
"type": "string"
}Examples
curl
curl "https://tanod.dev/v1/image/compress"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidJavaScript
const res = await fetch("https://tanod.dev/v1/image/compress");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://tanod.dev/v1/image/compress")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- tanod.dev
- Endpoint
- https://tanod.dev/v1/image/compress
- Machine-readable
/resources/35968.json