API Reference
Slumber Chunker
Agentic chunking powered by generative models (via Genie interface) for intelligent text splitting.
POST
Authorizations
Your API Key from the Chonkie Cloud dashboard
Body
multipart/form-data
The file to chunk.
Tokenizer used for initial splitting and size estimation.
Target maximum tokens per chunk for the generative model.
Number of tokens around a potential split point examined by the generative model.
Minimum number of characters required for a valid chunk.
Whether to return chunks as Chunk
objects or plain text strings.
Available options:
texts
, chunks
Response
200 - application/json
Successful Response: A list of `Chunk` objects.
The actual text content of the chunk.
The starting character index of the chunk within the original input text.
The ending character index (exclusive) of the chunk within the original input text.
The number of tokens in this specific chunk, according to the tokenizer used.