81trust / 100

Llm Chat

by agentdata-api.sander-van-aard.workers.dev in AI models & inference

x402 APIPassing, checked 28 min ago

LLM chat completion per call — no account, no API key, no token math. Three flat-priced tiers: fast $0.002 (DeepSeek v4 Flash), smart $0.02 (GPT-5.4 mini), reasoning $0.03 (DeepSeek v4 Pro). Send OpenAI-style messages, get the assistant reply with finish_reason and token usage. Input capped per tier (16k-32k chars); the 402 quotes the exact tier price up front. Model or source unavailable means a 503 and you pay nothing. USDC on Base.

POST https://agentdata-api.sander-van-aard.workers.dev/llm/chat

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
51 ms typical, 51 ms slowest 5%
Last check
28 min ago
Next check
in 3 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentdata-api.sander-van-aard.workers.dev/llm/chat" \
  -H "content-type: application/json" \
  -d '{"max_tokens":256,"messages":[{"content":"Summarize x402 in one sentence.","role":"user"}],"model":"fast"}'
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%2Fagentdata-api.sander-van-aard.workers.dev%2Fllm%2Fchat
const res = await pay("https://agentdata-api.sander-van-aard.workers.dev/llm/chat", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_tokens":256,"messages":[{"content":"Summarize x402 in one sentence.","role":"user"}],"model":"fast"}),
});
console.log(await res.json());

Example input

{
  "max_tokens": 256,
  "messages": [
    {
      "content": "Summarize x402 in one sentence.",
      "role": "user"
    }
  ],
  "model": "fast"
}

Example output

{
  "content": "x402 is an HTTP-native payment protocol that lets clients pay per request in stablecoins.",
  "finish_reason": "stop",
  "generated_at": "2026-07-30T08:00:00.000Z",
  "model": "deepseek/deepseek-v4-flash",
  "tier": "fast",
  "usage": {
    "completion_tokens": 21,
    "prompt_tokens": 18
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
28 min agoPassed40246 ms$0.002
4 h agoPassed402163 ms$0.002
9 h agoPassed40251 ms$0.002