78trust / 100

Solve

by api.x-402.online in Productivity & SaaS

x402 APIPassing, checked 4 min ago

Send a task in plain words and let the router pick and run the right capability. One endpoint for any capability. Send a task in plain words, or name a capability and its input, and the gateway resolves which capability is needed, ranks the providers that…

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
187 ms typical, 194 ms slowest 5%
Last check
4 min ago
Next check
in 27 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.x-402.online/v1/solve" \
  -H "content-type: application/json" \
  -d '{"task":"summarise the latest news about ethereum etf"}'
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%2Fsolve
const res = await pay("https://api.x-402.online/v1/solve", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"task":"summarise the latest news about ethereum etf"}),
});
console.log(await res.json());

Example input

{
  "task": "summarise the latest news about ethereum etf"
}

Example output

{
  "capability": "news_brief",
  "result": {
    "brief": {
      "summary": "…"
    },
    "sources": []
  },
  "routing": {
    "latency_ms": 3800,
    "provider": "internal:/v1/brief"
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 min agoPassed402187 ms$0.05
4 h agoPassed402174 ms$0.05
8 h agoPassed402194 ms$0.05
11 h agoPassed402188 ms$0.05
16 h agoPassed402148 ms$0.05
19 h agoPassed402183 ms$0.05
24 h agoPassed402206 ms$0.05