Locus public pay-per-use API
anthropic.x402.paywithlocus.com/anthropic/chat
Locus public pay-per-use API
POST
https://anthropic.x402.paywithlocus.com/anthropic/chatUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://anthropic.x402.paywithlocus.com/anthropic/chat", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"max_tokens":16,"messages":[{"content":"Hello from x402","role":"user"}],"model":"claude-haiku-4-5"}),
});
console.log(await res.json());Example input
{
"max_tokens": 16,
"messages": [
{
"content": "Hello from x402",
"role": "user"
}
],
"model": "claude-haiku-4-5"
}More from Locus x402 ServicesProvider status
- billboard.x402.paywithlocus.com/billboard/get-priceLocus public pay-per-use API0.001
- edgar-search.x402.paywithlocus.com/edgar-search/searchLocus public pay-per-use API0.008
- edgar.x402.paywithlocus.com/edgar/company-submissionsLocus public pay-per-use API0.008
- elevenlabs.x402.paywithlocus.com/elevenlabs/ttsLocus public pay-per-use API0.0037
- hunter.x402.paywithlocus.com/hunter/domain-searchLocus public pay-per-use API0.01
- hunter.x402.paywithlocus.com/hunter/email-finderLocus public pay-per-use API0.01
- hunter.x402.paywithlocus.com/hunter/email-verifierLocus public pay-per-use API0.008
- suno.x402.paywithlocus.com/suno/get-music-statusLocus public pay-per-use API0.005
