Skip to main content
Welcome to Chonkie’s API! Build powerful AI applications with enterprise-grade text chunking, semantic search, and intelligent agents.

Available APIs

Chonkie provides two complementary APIs:

Chunking & Embedding API

Base URL: https://api.chonkie.ai Transform raw text into perfectly-sized, semantically meaningful chunks for RAG applications.
  • All Chunkers - Split your documents using our finetuned chunkers
  • All Refineries - Add embeddings and overlap for better retrieval
  • Multiple Embeddings - Support for all major embedding models

Labs API

Base URL: https://labs.chonkie.ai/api Build AI applications with persistent knowledge and intelligent agents. This is Context as a Service:
  • Knowledge Bases - Store and index documents with automatic chunking and embedding
  • Semantic Search - Three-mode search (fast/balanced/deep) over your documents
  • AI Agents - Create LLM powered agents over your documents in natural language
  • MCP Integration - Connect your data to desktop apps or IDEs with one click MCP deployments

Quick Start

1. Get Your API Key

Sign up at labs.chonkie.ai to get your API key.

2. Install SDK (Optional)

pip install chonkie[cloud]

3. Make Your First Request

from chonkie.cloud import TokenChunker

# Initialize chunker
chunker = TokenChunker(
    chunk_size=512,
    chunk_overlap=50
)

# Chunk your text
text = "Your long document here..."
chunks = chunker.chunk(text)

print(f"Created {len(chunks)} chunks")

Authentication

All API requests require authentication using Bearer tokens:
Authorization: Bearer YOUR_API_KEY

SDKs and Libraries

Official SDKs available:
  • Python: pip install chonkie[cloud] - GitHub
  • JavaScript/TypeScript: npm install @chonkiejs/cloud - GitHub

Getting Help

Need assistance?

What’s Next?

I