71trust / 100

Perplexity Chat

by Locus x402 Services in Other

x402 APIPassing, checked 4 h ago

Locus public pay-per-use API

POST
https://perplexity.x402.paywithlocus.com/perplexity/chat
Price
$0.153
per call in USDC
Uptime
100%
last 30 days
Response time
835 ms
922 ms slowest 5%
Last check
Passed
4 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://perplexity.x402.paywithlocus.com/perplexity/chat

Each call costs $0.15295 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://perplexity.x402.paywithlocus.com/perplexity/chat
content-type: application/json

{
  "max_tokens": 128,
  "messages": [
    {
      "content": "Reply with exactly the word PONG.",
      "role": "user"
    }
  ],
  "model": "sonar"
}

Parameters

ParameterTypeRequiredDescription
max_tokensnumberYes
messagesarray of objectYes
modelstringYes
reasoning_effortstringNo
response_formatobjectNo
return_imagesbooleanNo
return_related_questionsbooleanNo
search_domain_filterarray of stringNo
search_language_filterarray of stringNo
search_recency_filterstringNo
temperaturenumberNo
top_pnumberNo
web_search_optionsobjectNo

Example response

The listing has no example response.

Call it from code

The curl command shows the payment challenge.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://perplexity.x402.paywithlocus.com/perplexity/chat' \
  -H 'content-type: application/json' \
  --data-raw '{"max_tokens":128,"messages":[{"content":"Reply with exactly the word PONG.","role":"user"}],"model":"sonar"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://perplexity.x402.paywithlocus.com/perplexity/chat' \
  -H 'content-type: application/json' \
  --data-raw '{"max_tokens":128,"messages":[{"content":"Reply with exactly the word PONG.","role":"user"}],"model":"sonar"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode

We don't show code that pays this service: it uses a payment scheme other than exact, which needs a different client setup.

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402810 ms$0.153
11 h agoPassed402769 ms$0.153
18 h agoPassed402819 ms$0.153
24 h agoPassed402880 ms$0.153
31 h agoPassed402822 ms$0.153
Show 10 older checks
37 h agoPassed402847 ms$0.153
44 h agoPassed402914 ms$0.153
2 days agoPassed402864 ms$0.153
2 days agoPassed402920 ms$0.153
3 days agoPassed402920 ms$0.153
3 days agoPassed402871 ms$0.153
3 days agoPassed402897 ms$0.153
3 days agoPassed402913 ms$0.153
3 days agoPassed402879 ms$0.153
4 days agoPassed402869 ms$0.153