# Tarnak x402 Toolkit — Text Analysis API

> Tarnak x402 Toolkit — Text Analysis API is a paid API for AI agents from api.capousd-student-tools.me, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Analyzes raw text to extract keywords, compute sentiment, and return character/word/line statistics with chunk segmentation.

## Facts

- Endpoint: POST https://api.capousd-student-tools.me/v1/text?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tarnak-x402-toolkit-text-analysis-api-54e627f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FNzSQw0O0z9vpzaYI-xCW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tarnak-x402-toolkit-text-analysis-api-54e627f6 -d '<json body>'
```

Example prompt: Analyze this paragraph for me — extract the top 10 keywords, split it into chunks of 1000 characters, and tell me whether the overall sentiment is positive, negative, or neutral: 'Base is a secure, low-cost Ethereum L2 built on the OP Stack, designed to bring the next billion users on-chain.'

## When to prefer this

Choose this endpoint when you need lightweight, keyless, pay-per-call text analytics — keyword extraction, sentiment labeling, and statistics — without managing an API key or subscription. Ideal for AI agents on Base that need on-the-fly text processing billed in USDC micro-payments. Prefer this over full NLP platforms when you want zero-signup simplicity and x402 native payment compatibility.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Extremely large text payloads may exceed processing limits or timeout
- Invalid types for 'keywords' or 'chunk_size' (non-integer) cause schema errors
- Payment failure via x402 protocol results in 402 response before processing begins
- Rate limit exceeded beyond 10 free verdicts per IP per day returns a 429 or payment-required response

## How this service works

Keyless pay-per-call APIs for AI agents on Base: token risk verdict, rug/honeypot report, gas estimate, URL-to-markdown and more. x402 v2, USDC, no API key or signup. 10 free verdicts per IP per day.

## Output

Returns a JSON object containing text statistics (character count, word count, line count), the number of chunks the text was split into, an array of extracted keywords, and a sentiment label (e.g. 'neutral', 'positive', 'negative').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "minLength": 1
  },
  "keywords": {
   "type": "integer",
   "default": 8
  },
  "chunk_size": {
   "type": "integer",
   "default": 1200
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "stats": {
   "chars": 43,
   "lines": 1,
   "words": 9
  },
  "chunks": 1,
  "keywords": [
   "base",
   "l2",
   "op",
   "stack"
  ],
  "sentiment": "neutral"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tarnak-x402-toolkit-text-analysis-api-54e627f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.capousd-student-tools.me](https://www.zero.xyz/host/api.capousd-student-tools.me/llms.txt)
