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

WhenResultHTTPTimePrice
2 h agoAmount "0.003" is not in atomic token units402107 ms$0.003
6 h agoAmount "0.003" is not in atomic token units40283 ms$0.003
10 h agoAmount "0.003" is not in atomic token units402164 ms$0.003
14 h agoAmount "0.003" is not in atomic token units402286 ms$0.003
19 h agoAmount "0.003" is not in atomic token units402199 ms$0.003
23 h agoAmount "0.003" is not in atomic token units40286 ms$0.003
27 h agoAmount "0.003" is not in atomic token units402222 ms$0.003
31 h agoAmount "0.003" is not in atomic token units40282 ms$0.003
35 h agoAmount "0.003" is not in atomic token units40283 ms$0.003
39 h agoAmount "0.003" is not in atomic token units402295 ms$0.003
43 h agoAmount "0.003" is not in atomic token units40290 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40280 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40283 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40278 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40283 ms$0.003