78trust / 100

Ngram Char 1

by agentshelf.syntexa.ch in Developer tools

x402 APIPassing, checked 3 h ago

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

POST https://agentshelf.syntexa.ch/v1/ngram-char-1

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
30 ms typical, 35 ms slowest 5%
Last check
3 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-char-1" \
  -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-char-1
const res = await pay("https://agentshelf.syntexa.ch/v1/ngram-char-1", {
  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
3 h agoPassed40233 ms$0.005
6 h agoPassed40229 ms$0.005
10 h agoPassed40232 ms$0.005
13 h agoPassed40230 ms$0.005
17 h agoPassed40235 ms$0.005
20 h agoPassed40240 ms$0.005
24 h agoPassed40228 ms$0.005
27 h agoPassed40233 ms$0.005
31 h agoPassed40230 ms$0.005
35 h agoPassed40230 ms$0.005
38 h agoPassed40228 ms$0.005
43 h agoPassed40229 ms$0.005
46 h agoPassed40232 ms$0.005
2 days agoPassed40226 ms$0.005