Inference

ANTHROPIC-COMPATIBLE /v1/messages — Claude Haiku 4.5 through the exact Anthropic API dialect

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.

Price: $0.01 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

post/v1/messages

Request

  • Base URL: https://api.webbersites.com
  • URL: https://api.webbersites.com/v1/messages
  • Auth: API key in header X-PAYMENT

Request body

modelstring

claude-haiku-4-5 (the only model on this route)

max_tokensnumber

output cap, clamped to 1,024

systemstring

optional system prompt (counts toward the input cap)

Response

Success

stop_reasonstring
usageobject

Changes

No recorded changes to this operation across all 1 revision of this API.