/v1/tools/context-aware-splitting
is deprecated and will be removed on November 18, 2025.This endpoint will no longer be available after the removal date. Please plan to migrate any integrations that currently use this endpoint to alternative solutions..env
file with the name WRITER_API_KEY
.POST https://api.writer.com/v1/tools/context-aware-splitting
Parameter | Type | Description |
---|---|---|
text | string | The text content to be split. The text should be fewer than 4000 words. |
strategy | string | The splitting strategy to use. Options include: llm_split , fast_split , and hybrid_split . See below for more details. |
llm_split
: Uses an LLM for precise semantic splittingfast_split
: Uses heuristic-based approach for quick splittinghybrid_split
: Combines both approachesParameter | Type | Description |
---|---|---|
chunks | array[string] | An array of text chunks as strings. |