# Document QA Prep — Chunked Text Splitter

> Document QA Prep — Chunked Text Splitter is a paid API for AI agents from the-stall.intuitek.ai, paid per call via x402, $0.194/call, status unknown (last checked 2026-09-13).

Splits a document into overlapping token-sized chunks suitable for retrieval-augmented generation (RAG) and question-answering pipelines

## Facts

- Endpoint: GET https://the-stall.intuitek.ai/cap/document-qa-prep
- Price: $0.194/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/document-qa-prep-chunked-text-splitter-db5c1fb4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wp6cMx2IqFqVy3l20CnAn

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 document-qa-prep-chunked-text-splitter-db5c1fb4
```

Example prompt: Chunk this 10,000-word research article into 512-token segments with a 50-token overlap so I can embed them into a vector database — here's the full plain text: [document text]. Tag each chunk with source_url: 'https://example.com/research.pdf'.

## When to prefer this

Choose this endpoint when you need to preprocess raw text (plain text, Markdown, or lightly structured prose) into token-sized overlapping chunks ready for embedding or RAG pipelines, especially when you want configurable chunk size and overlap and optional metadata tagging — all without managing API keys, paid via USDC microtransaction on Base.

## Known failure modes

- text field missing or empty — returns 400 validation error
- text exceeds 500,000 character limit — returns 413 or validation error
- chunk_size_tokens exceeds max of 4096 — returns 400
- overlap_tokens exceeds max of 512 — returns 400
- Payment not provided or insufficient USDC — returns HTTP 402
- Network timeout on very large documents near the character limit

## How this service works

Prepares a document for question-answering and RAG pipelines. Chunks the input text at paragraph/sentence boundaries, assigns deterministic chunk IDs, estimates token counts, and extracts document metadata (word count, type, headings). Returns ready-to-embed chunks with overlap support. No LLM or external API — pure text processing. Use mid-task when you've fetched a document and need it split before querying a vector store.

## Output

Returns an ordered array of text chunks derived from the input document, each sized to the requested token window (default 512 tokens) with the specified token overlap (default 50) between consecutive chunks, plus any metadata key-value pairs attached to every chunk. Also includes token count estimates per chunk.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "text": "Artificial intelligence is transforming industries by automating complex tasks and enabling data-driven decision making. Machine learning models can process vast amounts of information to identify patterns and generate insights. Natural language processing allows computers to understand and generate human language. Computer vision enables machines to interpret visual information from images and videos. These technologies are being applied in healthcare, finance, manufacturing, and many other sectors to improve efficiency and create new opportunities."
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/document-qa-prep-chunked-text-splitter-db5c1fb4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from the-stall.intuitek.ai](https://www.zero.xyz/host/the-stall.intuitek.ai/llms.txt)
