{"uid":"cap_eG8sResSqDNuFNuiFYJ1g","slug":"api-webbersites-com-anthropic-compatible-claude-haiku-4-5-messages-88fd97bc","name":"api.webbersites.com Anthropic-Compatible Claude Haiku 4.5 Messages","description":"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.","url":"https://api.webbersites.com/v1/messages","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["messages"],"properties":{"model":{"type":"string","description":"claude-haiku-4-5 (the only model on this route)"},"system":{"type":"string","description":"optional system prompt (counts toward the input cap)"},"messages":{"type":"array","description":"Anthropic-style messages: [{role, content}], text content only, 16,000 chars total"},"max_tokens":{"type":"number","description":"output cap, clamped to 1,024"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"usage":{"type":"object"},"content":{"type":"array","description":"Anthropic-shape content blocks; the answer is content[0].text"},"stop_reason":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"id":"msg_...","role":"assistant","type":"message","model":"claude-haiku-4-5","usage":{"input_tokens":18,"output_tokens":24},"content":[{"text":"x402 is an open protocol...","type":"text"}],"stop_reason":"end_turn"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.83","successRate":"0.99","reviews":1,"stars":"4.3","state":"rated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"1.0000","medianCents":"1.0000","p90Cents":"1.0000","minCents":"1.0000","maxCents":"1.0000","p95Cents":"1.0000","sampleCount":51,"varies":false,"failureChargeRate":null},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9ujhrWM1_vQ2i28N9BytX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs Claude Haiku 4.5 inference via the exact Anthropic /v1/messages API dialect, authenticated by x402 micropayment instead of an Anthropic API key","exampleAgentPrompt":"Using Claude Haiku 4.5, summarize the following article in three bullet points — system prompt: 'You are a concise summarizer', message: 'Artificial intelligence is rapidly transforming industries...', max_tokens 300.","exampleUseCases":[{"title":"Keyless Claude Haiku text generation","prompt":"Using Claude Haiku 4.5 via the Anthropic-compatible endpoint, answer the following customer support question without needing an Anthropic API key — system prompt: 'You are a helpful support agent', message: 'How do I reset my password and update my billing information?', max_tokens 512."},{"title":"Classify user feedback with Claude","prompt":"Run Claude Haiku 4.5 on this user review and classify its sentiment as positive, neutral, or negative — system prompt: 'You are a sentiment classifier, respond with one word only', message: 'The onboarding flow was confusing but the product itself exceeded my expectations.', max_tokens 10."},{"title":"Draft short copy with pay-per-call","prompt":"Using the Anthropic-compatible Claude Haiku endpoint with x402 micropayment auth, generate a two-sentence product description — system prompt: 'You are a sharp marketing copywriter', message: 'Product: a portable espresso maker designed for travelers who refuse to compromise on coffee quality.', max_tokens 150."}],"resultDescription":"Returns an Anthropic-format /v1/messages response object: an assistant message with text content, stop reason, usage token counts, and model identifier — identical shape to what the official Anthropic API returns for the same request.","failureModes":["Payment not included or insufficient USDC — 402 Payment Required returned","Input text exceeds 16,000 character limit — request rejected or truncated","max_tokens set above 1,024 — silently clamped to 1,024","Streaming requested — not supported, will fail or be ignored","Image or non-text content in messages — text-only endpoint, non-text content rejected","Invalid Anthropic message format — 400 Bad Request","Model name other than claude-haiku-4-5 specified — unsupported model error"],"whenToPreferThis":"Choose this endpoint when you need the exact Anthropic /v1/messages API shape (so you can point an existing Anthropic SDK with base_url) but want to avoid managing an Anthropic account or API key — authenticating instead via x402 USDC micropayment. Ideal for agents that already have the Anthropic SDK integrated and want keyless pay-per-call access to Claude Haiku 4.5 for short-to-medium text tasks within 16k input chars and 1,024 output tokens.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":76,"lastUsedAt":"2026-09-13T13:54:55.253Z","lastSuccessfullyRanAt":"2026-09-12T22:59:11.654Z","lastHealthCheckAt":"2026-09-14T19:14:02.560Z","isFirstParty":false}