78trust / 100

Ngram Byte 4

by agentshelf.syntexa.ch in AI models & inference

x402 APIPassing, checked 1 h ago

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

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
31 ms typical, 35 ms slowest 5%
Last check
1 h 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-4" \
  -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-4
const res = await pay("https://agentshelf.syntexa.ch/v1/ngram-byte-4", {
  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
1 h agoPassed40231 ms$0.006
5 h agoPassed40232 ms$0.006
8 h agoPassed40230 ms$0.006
12 h agoPassed40230 ms$0.006
15 h agoPassed40234 ms$0.006
19 h agoPassed40229 ms$0.006
22 h agoPassed40230 ms$0.006
25 h agoPassed40295 ms$0.006
30 h agoPassed40235 ms$0.006
33 h agoPassed40230 ms$0.006
37 h agoPassed40231 ms$0.006
41 h agoPassed40231 ms$0.006
44 h agoPassed40231 ms$0.006
2 days agoPassed40227 ms$0.006