post_v1_messages
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. ($0.01 per call, paid via x402)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>"
},
"name": "post_v1_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | claude-haiku-4-5 (the only model on this route) | |
| system | No | optional system prompt (counts toward the input cap) | |
| messages | Yes | Anthropic-style messages: [{role, content}], text content only, 16,000 chars total | |
| max_tokens | No | output cap, clamped to 1,024 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usage | No | ||
| content | No | Anthropic-shape content blocks; the answer is content[0].text | |
| stop_reason | No |