Bartok Text Analyzer

A pay-per-call API for AI agents. Send a text (up to 4000 characters, about one page) and get back a short summary and a category. Payment uses the x402 protocol. No account and no API key.

Pricing and payment

Price0.02 USDC per successful call
NetworkBase mainnet (eip155:8453)
AssetUSDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Pay to0xd125aB58FCCD435a3eD2cce7C9B033440de11e91
Schemeexact (x402 v2), settled through the CDP facilitator

Endpoint

POST https://n8n.eotrends.com/webhook/bartok/resumen

  1. Call the endpoint without payment. It answers 402 with the payment terms (body and PAYMENT-REQUIRED header).
  2. Sign the payment with an x402 client and retry with the PAYMENT-SIGNATURE header.
  3. The service verifies the payment, runs the analysis, settles, and returns the result.

Request

{ "text": "The city council approved the 2027 budget on Monday..." }

Response

{ "ok": true, "result": { "summary": "...", "category": "news" } }

The summary is written in the language of the input text. Categories: news, opinion, technical, commercial, other.

Errors

If a settlement cannot be confirmed, the result is not delivered; retry with the same payment signature and the stored result is returned once the charge is confirmed.