13trust / 100

Chat Completions

by blockrun-staging-f47fabc-190629-vbsbhh7lea-uc.a.run.app in AI models & inference

x402 APIFailing, checked 31 min ago

AI chat completions API - pay per request with USDC on Base

POST https://blockrun-staging-f47fabc-190629-vbsbhh7lea-uc.a.run.app/api/v1/chat/completions

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
31 min ago: Expected HTTP 402, got 404
Next check
in 32 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://blockrun-staging-f47fabc-190629-vbsbhh7lea-uc.a.run.app/api/v1/chat/completions" \
  -H "content-type: application/json" \
  -d '{}'
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%2Fblockrun-staging-f47fabc-190629-vbsbhh7lea-uc.a.run.app%2Fapi%2Fv1%2Fchat%2Fcompletions
const res = await pay("https://blockrun-staging-f47fabc-190629-vbsbhh7lea-uc.a.run.app/api/v1/chat/completions", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}),
});
console.log(await res.json());

Example output

{
  "choices": [],
  "usage": {}
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
31 min agoExpected HTTP 402, got 404404211 ms-
5 h agoExpected HTTP 402, got 404404224 ms-
9 h agoExpected HTTP 402, got 404404229 ms-
13 h agoExpected HTTP 402, got 404404221 ms-
17 h agoExpected HTTP 402, got 404404208 ms-
26 h agoExpected HTTP 402, got 404404174 ms-