82trust / 100

Attested Inference

by TenPrint in AI models & inference

x402 APIPassing, checked 5 h ago

Attested LLM inference: gpt-4o-mini chat completion plus a post-quantum signed, Hedera-anchored attestation binding the prompt hash, response hash, exact model version, and timestamp. Evidence of which model said what, when — for agents whose decisions may be questioned later.

POST https://rubric-protocol.com/v1/x402/attested-inference

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://rubric-protocol.com/v1/x402/attested-inference" \
  -H "content-type: application/json" \
  -d '{"max_tokens":500,"messages":[{"content":"Summarise this filing in three bullets.","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%2Frubric-protocol.com%2Fv1%2Fx402%2Fattested-inference
const res = await pay("https://rubric-protocol.com/v1/x402/attested-inference", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_tokens":500,"messages":[{"content":"Summarise this filing in three bullets.","role":"user"}]}),
});
console.log(await res.json());

Example input

{
  "max_tokens": 500,
  "messages": [
    {
      "content": "Summarise this filing in three bullets.",
      "role": "user"
    }
  ]
}

Example output

{
  "attestationId": "9b98c940-d198-4218-b89a-ebdfd8830175",
  "model": "gpt-4o-mini-2024-07-18",
  "operator": "TenPrint",
  "paid": true,
  "promptHash": "3e25b554c4ba852a",
  "responseHash": "2d45563c7e93715f",
  "settled": true,
  "success": true,
  "verifyUrl": "https://rubric-protocol.com/v1/verify/9b98c940-d198-4218-b89a-ebdfd8830175",
  "vsr": {
    "hashProfile": "vsr/v0.4/sha3-256",
    "spec": "https://rubric-protocol.com/specs/vsr-v0.4.md",
    "vsrVersion": "0.4-draft"
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402125 ms$0.01