78trust / 100

Ngram Byte 3

by agentshelf.syntexa.ch in AI models & inference

x402 APIPassing, checked 56 min ago

Call when an agent needs counts of byte 3-grams. No network and no LLM. Exact $0.005 USDC. Prefer unpaid POST /v1/sandbox/ngram-byte-3 first.

POST https://agentshelf.syntexa.ch/v1/ngram-byte-3

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
31 ms typical, 34 ms slowest 5%
Last check
56 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentshelf.syntexa.ch/v1/ngram-byte-3" \
  -H "content-type: application/json" \
  -d '{"text":"ab ab"}'
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%2Fagentshelf.syntexa.ch%2Fv1%2Fngram-byte-3
const res = await pay("https://agentshelf.syntexa.ch/v1/ngram-byte-3", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"ab ab"}),
});
console.log(await res.json());

Example input

{
  "text": "ab ab"
}

Example output

{
  "billed": true,
  "grams": [
    {
      "count": 2,
      "gram": "ab"
    }
  ],
  "ok": true,
  "receipt_id": "rcpt_01EXAMPLE000000000000000",
  "warnings": []
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
56 min agoPassed40231 ms$0.005
5 h agoPassed40231 ms$0.005
8 h agoPassed40229 ms$0.005
12 h agoPassed40229 ms$0.005
15 h agoPassed40234 ms$0.005
19 h agoPassed40232 ms$0.005
22 h agoPassed40228 ms$0.005
25 h agoPassed40294 ms$0.005
30 h agoPassed40231 ms$0.005
33 h agoPassed40234 ms$0.005
36 h agoPassed40232 ms$0.005
41 h agoPassed40231 ms$0.005
44 h agoPassed40227 ms$0.005
2 days agoPassed40229 ms$0.005