81trust / 100
Llm
by api.x-402.online in AI models & inference
x402 APIPassing, checked 4 h ago
Get a short completion from a capable model, paid per call, with a bounded output of 2000 tokens. LLM inference pay-per-call, no account, no API key: prompt in, completion out (DeepSeek v4, up to 2000 output tokens). STANDARD tier; /v1/llm/pro is the PRO tier with four times the output budget. Original note on $/c…
POST https://api.x-402.online/v1/llm
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 190 ms typical, 190 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.x-402.online/v1/llm" \
-H "content-type: application/json" \
-d '{"prompt":"Summarize x402 in one sentence"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.x-402.online%2Fv1%2Fllm
const res = await pay("https://api.x-402.online/v1/llm", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"prompt":"Summarize x402 in one sentence"}),
});
console.log(await res.json());Example input
{
"prompt": "Summarize x402 in one sentence"
}Example output
{
"output": "x402 lets agents pay APIs per call in stablecoins.",
"usage": {
"output_tokens": 18
}
}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 |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 190 ms | $0.01 |