Legends Chat
by ChatRIP Legends in Other
Ask a ChatRIP legend with one x402 USDC payment.
https://chatrip.app/api/v1/legends/chat/x402- Price
- $0.07
- per call in USDC
- Uptime
- 58.1%
- last 30 days
- Response time
- 395 ms
- 552 ms slowest 5%
- Last check
- Failed
- 9 h ago, next in 3 days
Reliability
Latest check failed 9 h ago: Expected HTTP 402, got 403
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://chatrip.app/api/v1/legends/chat/x402
Each call costs $0.07 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://chatrip.app/api/v1/legends/chat/x402
content-type: application/json
{
"legendSlug": "marcus-aurelius",
"prompt": "What should I remember today?"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
legend | string | No | Alias for legendSlug. |
legendSlug | string | Yes | The ChatRIP legend slug to ask, such as marcus-aurelius or maya-angelou. |
personaSlug | string | No | Alias for legendSlug. |
prompt | string | Yes | The question or reflection prompt to send to the legend. |
Example response
The provider's example. We can't check it without paying.
{
"citations": [],
"conversationId": "54fda827-121b-4c38-837d-1b5a74c3554c",
"message": {
"citations": [],
"finishReason": "stop",
"id": "e2f84b1e-4f65-40e1-bc58-c03a61623d1c",
"role": "assistant",
"suggestedPrompts": [
"How should I handle distraction today?",
"What virtue should I practice first?"
],
"text": "Begin with the judgment you can govern. Let the rest arrive as weather, not command."
},
"model": "zai/glm-5.2",
"persona": {
"displayName": "Marcus Aurelius",
"slug": "marcus-aurelius"
},
"requestId": "b8f9c8a1-8c31-4b7e-90ef-8462b8d18ec4",
"suggestedPrompts": [
"How should I handle distraction today?",
"What virtue should I practice first?"
]
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.07.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://chatrip.app/api/v1/legends/chat/x402' \
-H 'content-type: application/json' \
--data-raw '{"legendSlug":"marcus-aurelius","prompt":"What should I remember today?"}'
# 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://chatrip.app/api/v1/legends/chat/x402' \
-H 'content-type: application/json' \
--data-raw '{"legendSlug":"marcus-aurelius","prompt":"What should I remember today?"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.07 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.07" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.07 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fchatrip.app%2Fapi%2Fv1%2Flegends%2Fchat%2Fx402&method=POST
const res = await pay("https://chatrip.app/api/v1/legends/chat/x402", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"legendSlug": "marcus-aurelius",
"prompt": "What should I remember today?"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.07 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.07"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://chatrip.app/api/v1/legends/chat/x402",
json={
"legendSlug": "marcus-aurelius",
"prompt": "What should I remember today?",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 9 h ago | Expected HTTP 402, got 403 | 403 | 485 ms | - |
| 4 days ago | Expected HTTP 402, got 403 | 403 | 560 ms | - |
| 7 days ago | Expected HTTP 402, got 403 | 403 | 1.3 s | - |
| 10 days ago | Expected HTTP 402, got 403 | 403 | 502 ms | - |
| 10 days ago | Expected HTTP 402, got 403 | 403 | 245 ms | - |
Show 10 older checks
| 10 days ago | Expected HTTP 402, got 403 | 403 | 377 ms | - |
| 11 days ago | Expected HTTP 402, got 403 | 403 | 1.0 s | - |
| 11 days ago | Expected HTTP 402, got 403 | 403 | 565 ms | - |
| 11 days ago | Expected HTTP 402, got 403 | 403 | 1.6 s | - |
| 11 days ago | Expected HTTP 402, got 403 | 403 | 541 ms | - |
| 12 days ago | Expected HTTP 402, got 403 | 403 | 584 ms | - |
| 12 days ago | Expected HTTP 402, got 403 | 403 | 273 ms | - |
| 12 days ago | Expected HTTP 402, got 403 | 403 | 859 ms | - |
| 12 days ago | Expected HTTP 402, got 403 | 403 | 351 ms | - |
| 12 days ago | Expected HTTP 402, got 403 | 403 | 315 ms | - |