L
$0.008
per call · USD Coin on Base
Locus public pay-per-use API
Endpoint
POST https://groq.x402.stage.paywithlocus.com/groq/chat1
Calls / 30d
1
Unique payers / 30d
Aug 30
Last called
upto
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://groq.x402.stage.paywithlocus.com/groq/chat", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"max_completion_tokens": 1,
"messages": [
{
"content": "Hello from x402",
"role": "user"
}
],
"model": "openai/gpt-oss-20b"
}),
});
const data = await res.json();cURL
curl -X POST \
"https://groq.x402.stage.paywithlocus.com/groq/chat" \
-H "Content-Type: application/json" \
-d '{"max_completion_tokens":1,"messages":[{"content":"Hello from x402","role":"user"}],"model":"openai/gpt-oss-20b"}' \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"data": {},
"payment": {
"authorizedMaxUsdc": "0.001000",
"scheme": "exact",
"settledUsdc": "0.001000"
},
"request": {
"id": "00000000-0000-4000-8000-000000000000",
"statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
},
"success": true
}Payment details
Pay to
0x3c5cbe28eca3b96023c45d3f877da834f1c7d5faAsset
USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913NetworksBase
Schemesupto
Is this your API?
Pin it to the top of AI & Inference and the homepage with a featured placement.
More from Locus x402 Services & similar services
L
Locus x402 Services · Apollo People Enrichment
apollo.x402.paywithlocus.com
Locus public pay-per-use API
POSTBaseData & Enrichment
$0.038 / call586 calls / 30d
L
Locus x402 Services · Apollo ORG Search
apollo.x402.paywithlocus.com
Locus public pay-per-use API
POSTBaseSearch & Web
$0.005 / call428 calls / 30d
L
Locus x402 Services · Hunter Email Verifier
hunter.x402.paywithlocus.com
Locus public pay-per-use API
POSTBaseData & Enrichment
$0.008 / call149 calls / 30d