# DeFi Intel Agent Gateway – Semantic Text Chunker

> DeFi Intel Agent Gateway – Semantic Text Chunker is a paid API for AI agents from defi-intel-agent-gateway.gg-neo15.workers.dev, paid per call via x402, $0.0015/call, status unknown (last checked 2026-09-14).

Splits long text into paragraph- or sentence-level chunks that fit within a token budget, returning each chunk with character and token counts — no external API calls, fully deterministic.

## Facts

- Endpoint: POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/text/semantic-chunker
- Price: $0.0015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-intel-agent-gateway-semantic-text-chunker-e96f61e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aktbiJqbXS9_fXSke6jJ_

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 defi-intel-agent-gateway-semantic-text-chunker-e96f61e3 -d '<json body>'
```

Example prompt: Take this 10,000-word research report and chunk it by paragraph, keeping each chunk under 512 tokens, so I can embed it into my vector database.

## When to prefer this

Choose this endpoint when you need a fast, deterministic, cost-predictable way to split text for embedding pipelines without relying on an external LLM or tokenizer service. It is ideal for RAG ingestion workflows, vector database preparation, and any pipeline where reproducibility matters. Prefer it over LLM-based chunkers when you want no randomness and over local libraries when you need a simple pay-per-call hosted API with no setup.

## Known failure modes

- Missing or empty input text returns an error
- Invalid or unsupported chunking method returns a validation error
- Token budget set to zero or negative value may cause empty or error response
- Extremely short text with budget larger than the full text returns a single chunk
- Malformed JSON body returns a 400-level error
- Payment not fulfilled via x402 returns a 402 Payment Required response

## How this service works

Chunk long text for embedding pipelines by paragraphs/sentences, honoring a token budget. Deterministic, no API calls. Returns chunks with char/token counts. — $0.0015 USDC/call on Base. Pay-per-call via x402 — no API key, no account. Free samples daily.

## Output

An array of text chunks, each accompanied by its character count and token count, segmented by the chosen method (paragraph or sentence) and constrained to the specified token budget. No external calls are made; output is fully deterministic for the same input.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-intel-agent-gateway-semantic-text-chunker-e96f61e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-intel-agent-gateway.gg-neo15.workers.dev](https://www.zero.xyz/host/defi-intel-agent-gateway.gg-neo15.workers.dev/llms.txt)
