78trust / 100

Llm Claude Sonnet

by x402engine.app in AI models & inference

x402 APIPassing, checked 2 h ago

x402engine — Anthropic's balanced model — excellent coding, reasoning, and creative writing

POST https://x402engine.app/api/llm/claude-sonnet

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
291 ms typical, 354 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402engine.app/api/llm/claude-sonnet" \
  -H "content-type: application/json" \
  -d '{"max_tokens":1024,"messages":[{"content":"Hello","role":"user"}]}'
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%2Fx402engine.app%2Fapi%2Fllm%2Fclaude-sonnet
const res = await pay("https://x402engine.app/api/llm/claude-sonnet", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_tokens":1024,"messages":[{"content":"Hello","role":"user"}]}),
});
console.log(await res.json());

Example input

{
  "max_tokens": 1024,
  "messages": [
    {
      "content": "Hello",
      "role": "user"
    }
  ]
}

Example output

{
  "choices": [
    {
      "finish_reason": "stop",
      "index": 0,
      "message": {
        "content": "Hello!",
        "role": "assistant"
      }
    }
  ],
  "content": "Hello!",
  "model": "anthropic/claude-sonnet-4.5"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402281 ms$0.119
6 h agoPassed402300 ms$0.119
9 h agoPassed402267 ms$0.119
13 h agoPassed402284 ms$0.119
16 h agoPassed402310 ms$0.119
20 h agoPassed402291 ms$0.119
23 h agoPassed402264 ms$0.119
27 h agoPassed402316 ms$0.119
30 h agoPassed402461 ms$0.119
34 h agoPassed402342 ms$0.119
37 h agoPassed402354 ms$0.119
47 h agoPassed402184 ms$0.119