Authorizations
Your API Key from the Chonkie Cloud dashboard
Body
The file to chunk.
Tokenizer to use. Can be a string identifier or a tokenizer instance.
Maximum number of tokens per chunk.
Number or percentage of overlapping tokens between chunks.
Whether to return chunks as Chunk
objects or plain text strings.
texts
, chunks
Response
Successful Response: A list of Chunk
objects.
A list containing Chunk
objects, each detailing a segment of the original text based on token count.
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.