81trust / 100

Vision

by api.x-402.online in Other

x402 APIPassing, checked 3 h ago

Answer a question about an image, or describe it, from a URL or base64. Image understanding pay-per-call, no account and no API key: send an image URL (or base64) and an optional question, receive a plain-language answer from a multimodal…

POST https://api.x-402.online/v1/vision

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
138 ms typical, 138 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.x-402.online/v1/vision" \
  -H "content-type: application/json" \
  -d '{"image_url":"https://httpbin.org/image/jpeg","question":"What animal is this?"}'
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.x-402.online%2Fv1%2Fvision
const res = await pay("https://api.x-402.online/v1/vision", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"image_url":"https://httpbin.org/image/jpeg","question":"What animal is this?"}),
});
console.log(await res.json());

Example input

{
  "image_url": "https://httpbin.org/image/jpeg",
  "question": "What animal is this?"
}

Example output

{
  "answer": "The animal in the image appears to be a coyote.",
  "model": "llama-4-scout-17b",
  "ms": 2500,
  "question": "What animal is this?"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402138 ms$0.02
8 h agoPassed402258 ms$0.02