78trust / 100

Messages

by NetIntel in AI models & inference

x402 APIPassing, checked 14 min ago

OpenAI-compatible chat completions over x402, answered by Claude Sonnet 4.6 — send a messages array and get an assistant reply for Q&A, reasoning, agent planning, coding help, summarization, extraction, and classification. Body is OpenAI chat.completions-shaped ({model?, messages:[{role,content}], max_tokens?, temperature?}); response is a chat.completion object. Flat $0.06; inputs capped ~6KB, max_tokens 1024; no streaming in v1.

POST https://netintel.dev/messages

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
249 ms typical, 377 ms slowest 5%
Last check
14 min ago
Next check
in 14 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://netintel.dev/messages" \
  -H "content-type: application/json" \
  -d '{"max_tokens":256,"messages":[{"content":"What is the capital of France?","role":"user"}],"model":"claude-sonnet-4-6"}'
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%2Fnetintel.dev%2Fmessages
const res = await pay("https://netintel.dev/messages", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_tokens":256,"messages":[{"content":"What is the capital of France?","role":"user"}],"model":"claude-sonnet-4-6"}),
});
console.log(await res.json());

Example input

{
  "max_tokens": 256,
  "messages": [
    {
      "content": "What is the capital of France?",
      "role": "user"
    }
  ],
  "model": "claude-sonnet-4-6"
}

Example output

{
  "choices": [
    {
      "finish_reason": "stop",
      "index": 0,
      "message": {
        "content": "The capital of France is Paris.",
        "role": "assistant"
      }
    }
  ],
  "created": 1735689600,
  "id": "chatcmpl-abc123",
  "model": "claude-sonnet-4-6",
  "object": "chat.completion",
  "usage": {
    "completion_tokens": 8,
    "prompt_tokens": 14,
    "total_tokens": 22
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
14 min agoPassed402181 ms$0.06
4 h agoPassed402249 ms$0.06
7 h agoPassed402377 ms$0.06
11 h agoPassed402305 ms$0.06
14 h agoPassed402183 ms$0.06
18 h agoPassed402518 ms$0.06
22 h agoPassed402182 ms$0.06
25 h agoPassed402281 ms$0.06
29 h agoPassed402188 ms$0.06
33 h agoPassed402186 ms$0.06
36 h agoPassed402327 ms$0.06
40 h agoPassed402181 ms$0.06
43 h agoPassed402328 ms$0.06
2 days agoPassed402279 ms$0.06