API Reference
Neural Chunker
Splits text using a fine-tuned BERT model to detect semantic shifts, creating topic-coherent chunks.
POST
Authorizations
Your API Key from the Chonkie Cloud dashboard
Body
multipart/form-data
The file to chunk.
The identifier of the fine-tuned BERT model to use.
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.