Repository avatar
AI Tools
v1.0.0
active

api

xyz.aigentra/api

Pay-per-call LLM chat, images, embeddings, prices, web reader. USDC on Base via x402.

Documentation

Aigentra x402 APIs

Pay-per-call APIs for AI agents. Each request is charged in USDC on Base through x402 (HTTP 402). No account and no API key.

One Cloudflare Worker (x402-api) serves five hosts, routed by the Host header.

Network: Base mainnet (eip155:8453) · Asset: USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 · payTo: 0x3a47581264273B29C14Bb67f76fA34EEF743149B
Facilitator: PayAI · Protocol: x402 v2 (exact scheme)

Failed calls (HTTP 400+) are not settled. The Worker runs on Cloudflare's free plan, including the daily Workers AI allowance for the LLM, image, and embedding routes.

Live hosts

HostWhat it isLandingOpenAPIDiscoveryMCP
api.aigentra.xyzLLM chat, images, embeddings, prices, web reader, research, news, wiki, translate, summarize/openapi.json/.well-known/x402/mcp
api.ariaeren.devDev utilities: hash, JWT, regex, QR, PII redact, prompt-injection check, dependency advisories/openapi.json/.well-known/x402/mcp
api.yukiyaki.idIndonesia / Japan utilities: terbilang, holidays, prayer times, romaji, food barcodes/openapi.json/.well-known/x402/mcp
api.zenzen.funWallet balances (Base, Solana), Base gas, DEX token lookup/openapi.json/.well-known/x402/mcp
api.rektlabs.funToken risk score, trending/boosted tokens, new profiles, search/openapi.json/.well-known/x402/mcp

Each host also serves free /health, /llms.txt, /robots.txt, and /sitemap.xml. https://api.aigentra.xyz/mcp/all exposes every paid tool across the five hosts. Public request stats (no personal data): api.aigentra.xyz/stats.

Paid endpoints

api.aigentra.xyz

PathPriceNotes
POST or GET /v1/chat/completions$0.0015OpenAI-compatible chat. Models: llama-3.1-8b (default), sea-lion-27b (Southeast Asian languages, incl. Indonesian), mistral-small-24b, llama-3.2-3b
POST or GET /v1/images/generations$0.008OpenAI-compatible images. FLUX.1 schnell, 1024×1024 JPEG as data[0].b64_json
POST or GET /v1/embeddings$0.001OpenAI-compatible embeddings. bge-m3 (multilingual, 1024-d, default) or bge-small-en
/v1/crypto/price$0.002Live token prices in USD (optional IDR), CoinGecko id or chain:contract
/v1/web/read$0.003Public URL → clean Markdown + metadata
/v1/fx/idr$0.001USD/IDR (and other) FX via ECB
/v1/research/papers$0.005Academic paper search (OpenAlex)
/v1/news/hn$0.003Hacker News search (Algolia)
/v1/wiki/summary$0.002Wikipedia summary
/v1/ai/translate$0.005Translation (M2M100), incl. Indonesian
/v1/ai/summarize$0.01Text summarization (Llama 3.1 8B)

api.ariaeren.dev

PathPriceNotes
/v1/hash$0.001SHA-256 / keccak and friends
/v1/json/inspect$0.001Inspect and path-query JSON
/v1/jwt/decode$0.001Decode a JWT (no verification of trust)
/v1/qr$0.002QR code
/v1/regex/test$0.001Test a regular expression
/v1/deps/advisories$0.003Package vulnerability advisories (OSV)
/v1/text/pii-redact$0.002Redact common PII patterns
/v1/text/injection-check$0.002Prompt-injection heuristic

api.yukiyaki.id

PathPriceNotes
/v1/id/terbilang$0.001Spell out Indonesian rupiah amounts
/v1/jp/romaji$0.001Japanese → romaji
/v1/food/barcode$0.005Open Food Facts lookup
/v1/id/prayer-times$0.002Prayer times for Indonesian cities
/v1/id/holidays$0.001Indonesian public holidays

api.zenzen.fun

PathPriceNotes
/v1/token/dex$0.005DEX token lookup
/v1/base/balance$0.002ETH + USDC balance on Base
/v1/solana/balance$0.002SOL balance
/v1/base/gas$0.001Base gas price

api.rektlabs.fun

PathPriceNotes
/v1/rekt/score$0.005Token risk signals
/v1/trending/boosted$0.003Boosted / trending tokens (DexScreener, CoinGecko fallback)
/v1/new/profiles$0.003Newly created token profiles
/v1/rekt/search$0.005Token search

All paid routes also accept GET (so directory probes work). The three OpenAI-compatible routes also accept POST with a JSON body.

Quick start (pay with x402)

import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";

const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});

const res = await fetchWithPayment("https://api.aigentra.xyz/v1/chat/completions", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    model: "llama-3.1-8b",
    messages: [{ role: "user", content: "Explain x402 in one sentence." }],
    max_tokens: 128,
  }),
});

Or call any GET URL with query parameters, for example:

https://api.aigentra.xyz/v1/crypto/price?ids=bitcoin,ethereum&idr=true

MCP

Each host exposes a Streamable HTTP MCP server at /mcp. Paid tools are wrapped with @x402/mcp, so an MCP client that can pay x402 can call them directly.

{ "mcpServers": { "aigentra": { "url": "https://api.aigentra.xyz/mcp" } } }

Layout

src/index.js          Host router, stats, MCP entry
src/common.js         Site factory (x402 middleware, OpenAPI, landing, discovery)
src/mcp.js            MCP server per host
src/stats.js          Request analytics (Cloudflare D1)
src/sites/*.js        Endpoints for each host
scripts/              Local handler tests and live 402 verification

Develop locally

npm install
# Run every handler against live upstreams, payment bypassed:
node --input-type=module -e 'globalThis.__NOPAY=1' scripts/local-test.mjs
# Check that production endpoints still return a valid 402:
node scripts/verify-402.mjs

Deploy with Wrangler (npx wrangler deploy --minify) using a Cloudflare API token, or through the Cloudflare API. wrangler.toml already lists the five custom domains. AI endpoints need a Workers AI binding named AI; stats need a D1 binding named DB.

Directories

The endpoints are listed on x402scan, x402dash, 402index, and Agent402. PayAI's catalog picks them up after a settled payment.

License

MIT

MCP registry listings

Each host's MCP server is published in the official MCP Registry (namespace verified by DNS TXT on the domain): xyz.aigentra/api, dev.ariaeren/api, id.yukiyaki/api, fun.zenzen/api, fun.rektlabs/api. Metadata lives in registry/. Agent guides: /agents.md, /skill.md; A2A card: /.well-known/agent-card.json.

No installation packages available.

Remote