74trust / 100
Image Favicon
by Tanod imagepeek in Other
x402 APIPassing, checked 26 min ago
imagepeek (Tanod) favicon set: ICO, PNG icons, apple-touch-icon and HTML snippet.
POST https://tanod.dev/v1/image/favicon
Last 30 days
All checks passedSome failedAll failedNot checked
Status and outage history · Atom feed
- Uptime
- 100%
- Response time
- 871 ms typical, 1.2 s slowest 5%
- Last check
- 26 min ago
- Next check
- in 4 min
How to call it
POST https://tanod.dev/v1/image/favicon
Each call costs $0.003 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://tanod.dev/v1/image/favicon
content-type: application/json
{
"url": "https://tanod.dev/icon.png"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
apple_background | string or null | No | apple-touch-icon fill (default #ffffff). Default: null. |
auto_orient | boolean | No | Apply the EXIF orientation first (default true). Default: true. |
background | string or null | No | contain padding (default transparent). Default: null. |
fit | string | No | Squaring a non-square image: cover (default, centre crop) or contain (padded with background). One of: cover, contain. Default: "cover". |
image_base64 | string or null | No | The image as standard or url-safe base64 (at most 10 MB decoded; a data:image/...;base64, prefix is fine); or use url. Default: null. |
url | string or null | No | Public http(s) URL of the image (at most 10 MB; private, internal and IP-literal hosts are refused); or use image_base64. Default: null. |
Example response
The provider's example. We can't check it without paying.
Example response, 88 lines
{
"final_url": "https://tanod.dev/icon.png",
"html": "<link rel=\"icon\" href=\"/favicon.ico\" sizes=\"48x48\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-touch-icon.png\">\n<link rel=\"manifest\" href=\"/site.webmanifest\">",
"images": [
{
"bytes": 2328,
"content_type": "image/vnd.microsoft.icon",
"data_base64": "AAABAAMAEBAAAAAA... (trimmed: 3,104 base64 characters in the reply)",
"format": "ico",
"height": 48,
"name": "favicon.ico",
"sizes": [
16,
32,
48
],
"width": 48
},
{
"bytes": 700,
"content_type": "image/png",
"data_base64": "iVBORw0KGgoAAAAN... (trimmed: 936 base64 characters in the reply)",
"format": "png",
"height": 32,
"name": "favicon-32x32.png",
"width": 32
},
{
"bytes": 4043,
"content_type": "image/png",
"data_base64": "iVBORw0KGgoAAAAN... (trimmed: 5,392 base64 characters in the reply)",
"format": "png",
"height": 180,
"name": "apple-touch-icon.png",
"width": 180
},
{
"bytes": 5044,
"content_type": "image/png",
"data_base64": "iVBORw0KGgoAAAAN... (trimmed: 6,728 base64 characters in the reply)",
"format": "png",
"height": 192,
"name": "icon-192.png",
"width": 192
},
{
"bytes": 20566,
"content_type": "image/png",
"data_base64": "iVBORw0KGgoAAAAN... (trimmed: 27,424 base64 characters in the reply)",
"format": "png",
"height": 512,
"name": "icon-512.png",
"width": 512
}
],
"input": {
"animated": false,
"bytes": 2183,
"format": "png",
"frames": 1,
"has_alpha": true,
"height": 256,
"width": 256
},
"manifest_icons": [
{
"sizes": "192x192",
"src": "/icon-192.png",
"type": "image/png"
},
{
"sizes": "512x512",
"src": "/icon-512.png",
"type": "image/png"
}
],
"notes": [
"the source square is 256px: larger icons were upscaled"
],
"operation": "favicon",
"source": {
"library": "Pillow",
"license": "MIT-CMU (HPND)",
"url": "https://python-pillow.org"
},
"source_url": "https://tanod.dev/icon.png",
"total_bytes": 32681
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.003.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://tanod.dev/v1/image/favicon' \
-H 'content-type: application/json' \
--data-raw '{"url":"https://tanod.dev/icon.png"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://tanod.dev/v1/image/favicon' \
-H 'content-type: application/json' \
--data-raw '{"url":"https://tanod.dev/icon.png"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.003 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.003" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.003 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fimage%2Ffavicon&method=POST
const res = await pay("https://tanod.dev/v1/image/favicon", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"url": "https://tanod.dev/icon.png"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.003 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.003"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://tanod.dev/v1/image/favicon",
json={
"url": "https://tanod.dev/icon.png",
},
)
print(res.status_code, res.text)Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 26 min ago | Passed | 402 | 1.0 s | $0.003 |
| 5 h ago | Passed | 402 | 1.0 s | $0.003 |
| 9 h ago | Passed | 402 | 483 ms | $0.003 |
| 13 h ago | Passed | 402 | 1.1 s | $0.003 |
| 17 h ago | Passed | 402 | 1.2 s | $0.003 |
| 20 h ago | Passed | 402 | 1.0 s | $0.003 |
| 24 h ago | Passed | 402 | 277 ms | $0.003 |
| 28 h ago | Passed | 402 | 1.1 s | $0.003 |
| 32 h ago | Passed | 402 | 440 ms | $0.003 |
| 35 h ago | Passed | 402 | 1.0 s | $0.003 |
| 39 h ago | Passed | 402 | 1.0 s | $0.003 |
| 42 h ago | Passed | 402 | 340 ms | $0.003 |
| 46 h ago | Passed | 402 | 277 ms | $0.003 |
| 2 days ago | Passed | 402 | 279 ms | $0.003 |
| 2 days ago | Passed | 402 | 1.2 s | $0.003 |