81trust / 100

Llm Pro

by api.x-402.online in AI models & inference

x402 APIPassing, checked 31 min ago

Get a long completion with a large output budget, same engine as /v1/llm. Long-form LLM inference: same engine as /v1/llm with a four times larger output budget, up to 8000 tokens, for answers the cheap route truncates. Body: {prompt, system?, max_tokens?}

POST https://api.x-402.online/v1/llm/pro

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
189 ms typical, 189 ms slowest 5%
Last check
31 min 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/pro" \
  -H "content-type: application/json" \
  -d '{"prompt":"Explain the tradeoffs of x402 vs API keys"}'
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%2Fpro
const res = await pay("https://api.x-402.online/v1/llm/pro", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"prompt":"Explain the tradeoffs of x402 vs API keys"}),
});
console.log(await res.json());

Example input

{
  "prompt": "Explain the tradeoffs of x402 vs API keys"
}

Example output

{
  "output": "…",
  "usage": {
    "output_tokens": 300
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
31 min agoPassed402189 ms$0.02
6 h agoPassed402247 ms$0.02