WebberSites x402 Data API · Messages

by WebberSites x402 Data API

POSTBase

$0.01

per call · USD Coin on Base

ANTHROPIC-COMPATIBLE /v1/messages — Claude Haiku 4.5 through the exact Anthropic API dialect: same request/response shape, no Anthropic account, the x402 payment IS the auth. Point an Anthropic SDK's base_url at https://api.webbersites.com and pay per call. Caps: 16,000 input chars, 1,024 output tokens (max_tokens clamped), text-only, no streaming.

Endpoint

POST https://api.webbersites.com/v1/messages

55

Calls / 30d

3

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.webbersites.com/v1/messages", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "max_tokens": 256,
    "messages": [
      {
        "content": "Summarize x402 in one sentence.",
        "role": "user"
      }
    ],
    "model": "claude-haiku-4-5"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.webbersites.com/v1/messages" \
  -H "Content-Type: application/json" \
  -d '{"max_tokens":256,"messages":[{"content":"Summarize x402 in one sentence.","role":"user"}],"model":"claude-haiku-4-5"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "content": [
    {
      "text": "x402 is an open protocol...",
      "type": "text"
    }
  ],
  "id": "msg_...",
  "model": "claude-haiku-4-5",
  "role": "assistant",
  "stop_reason": "end_turn",
  "type": "message",
  "usage": {
    "input_tokens": 18,
    "output_tokens": 24
  }
}

Payment details

Pay to0xdd5fcea81ca6f1eb39fed5b973de794293b81ba6
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from WebberSites x402 Data API & similar services