---
title: "Semantic Chunk"
method: POST
path: "/v1/chunk/semantic"
tags: ["Chunking"]
---

# Semantic Chunk

`POST /v1/chunk/semantic`

Semantic chunking endpoint.

Chunks text using semantic similarity between sentences.

## Headers

- `authorization` string, nullable

## Request body

- SemanticChunkerRequest — Request model for semantic chunking.
  - `text` union — Text or list of texts to chunk
    - string
    - string[]
  - `file` FileReference — File reference for chunking with OCR.
    - `type` string, required — File type: 'document' or 'base64;extension'
    - `content` string, required — Filename (for document) or base64 data
  - `ocr` string — OCR provider (mistral or gemini)
  - `embedding_model` string — Embedding model to use
  - `threshold` number — Similarity threshold
  - `chunk_size` integer — Size of each chunk
  - `similarity_window` integer — Window size for similarity calculation
  - `min_sentences_per_chunk` integer — Minimum sentences per chunk
  - `min_characters_per_sentence` integer — Minimum characters per sentence
  - `delim` union — Sentence delimiters
    - string
    - string[]
  - `include_delim` 'prev' | 'next', nullable — Where to include delimiter
  - `skip_window` integer — Skip window size
  - `filter_window` integer — Filter window size
  - `filter_polyorder` integer — Filter polynomial order
  - `filter_tolerance` number — Filter tolerance

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/chonkie/apis/chonkie-api.md) · [All operations](https://skmtc.dev/chonkie/apis/chonkie-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chonkie/apis/chonkie-api/revisions/f40f036f941c?raw)
