16trust / 100
Image Palette
by Vextorium in Developer tools
x402 APIFailing, checked 2 h ago
Dominant colors of an image (URL or base64) with their share, in HEX and RGB, plus the average color and light/dark tone. For brand palettes, themes or tagging images by color.
POST https://api.vextorium.com/v1/image-palette
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 0.0%
- Response time
- - typical, - slowest 5%
- Last check
- 2 h ago: Amount "0.003" is not in atomic token units
- Next check
- any minute now
How to call it
# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://api.vextorium.com/v1/image-palette' \
-H 'content-type: application/json' \
--data-raw '{"colors":5,"url":"https://vextorium.com/og.png"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.vextorium.com%2Fv1%2Fimage-palette
const res = await pay("https://api.vextorium.com/v1/image-palette", {
method: "POST",
headers: { "content-type": "application/json" },
body: "{\"colors\":5,\"url\":\"https://vextorium.com/og.png\"}",
});
console.log(await res.json());Example input
{
"colors": 5,
"url": "https://vextorium.com/og.png"
}Example output
{
"avg_color": {
"hex": "#15211d",
"rgb": [
21,
33
]
},
"colors": [
{
"hex": "#0d0f11",
"ratio_pct": 45.38,
"rgb": [
13,
15
]
},
{
"hex": "#0e1916",
"ratio_pct": 40.85,
"rgb": [
14,
25
]
}
],
"tone": "oscuro"
}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 |
|---|---|---|---|---|
| 2 h ago | Amount "0.003" is not in atomic token units | 402 | 107 ms | $0.003 |
| 6 h ago | Amount "0.003" is not in atomic token units | 402 | 83 ms | $0.003 |
| 10 h ago | Amount "0.003" is not in atomic token units | 402 | 164 ms | $0.003 |
| 14 h ago | Amount "0.003" is not in atomic token units | 402 | 286 ms | $0.003 |
| 19 h ago | Amount "0.003" is not in atomic token units | 402 | 199 ms | $0.003 |
| 23 h ago | Amount "0.003" is not in atomic token units | 402 | 86 ms | $0.003 |
| 27 h ago | Amount "0.003" is not in atomic token units | 402 | 222 ms | $0.003 |
| 31 h ago | Amount "0.003" is not in atomic token units | 402 | 82 ms | $0.003 |
| 35 h ago | Amount "0.003" is not in atomic token units | 402 | 83 ms | $0.003 |
| 39 h ago | Amount "0.003" is not in atomic token units | 402 | 295 ms | $0.003 |
| 43 h ago | Amount "0.003" is not in atomic token units | 402 | 90 ms | $0.003 |
| 2 days ago | Amount "0.003" is not in atomic token units | 402 | 80 ms | $0.003 |
| 2 days ago | Amount "0.003" is not in atomic token units | 402 | 83 ms | $0.003 |
| 2 days ago | Amount "0.003" is not in atomic token units | 402 | 78 ms | $0.003 |
| 2 days ago | Amount "0.003" is not in atomic token units | 402 | 83 ms | $0.003 |