Skip to main content
Run Chonkie as a self-hosted REST API and call any chunker or refinery from any language, framework, or HTTP client — no auth, no billing, no data leaving your infra.

Why Use the API?

  • Language-agnostic — call from JavaScript, Go, Ruby, or any HTTP client
  • Self-hosted — your data never leaves your infrastructure
  • Full feature parity — all Chonkie chunkers and refineries, over HTTP
  • Batch support — chunk multiple documents in a single request
  • No auth required — just run it and chunk away

Available Endpoints

EndpointDescription
POST /v1/chunk/tokenFixed-size token windows
POST /v1/chunk/sentenceSentence-boundary splitting
POST /v1/chunk/recursiveStructural/hierarchical splitting
POST /v1/chunk/semanticEmbedding-based semantic splitting
POST /v1/chunk/codeAST-aware code splitting
POST /v1/refine/overlapAdd overlap context to chunks
POST /v1/refine/embeddingsAttach embeddings to chunks
POST /v1/pipelinesCreate a reusable pipeline
GET /v1/pipelinesList all pipelines
GET /v1/pipelines/{id}Get a pipeline by ID
PUT /v1/pipelines/{id}Update a pipeline
DELETE /v1/pipelines/{id}Delete a pipeline
POST /v1/pipelines/{id}/executeExecute a pipeline on text
GET /healthHealth check
GET /API info and available endpoints