# SingleStore Kai

Use the SingleStore Kai ("the API") to connect to a SingleStore Helios workspace from MongoDB® clients and tools. You can run the MongoDB® queries natively in your SingleStore Helios workspace using the API without a code change. Additionally, you can use the [Management API](https://docs.singlestore.com/cloud/reference/management-api.md) and [Data API](https://docs.singlestore.com/cloud/reference/data-api.md) (SQL endpoint) in conjunction with the API. SingleStore Kai natively supports the BSON data type for storage. Refer to [Kai Data Storage Model](https://docs.singlestore.com/cloud/reference/singlestore-kai/kai-data-storage-model.md) for more information.&#x20;

Refer to [Maintenance Release Changelog](https://docs.singlestore.com/cloud/reference/singlestore-kai/maintenance-release-changelog.md) for information on features and improvements introduced since the preview release of SingleStore Kai.

> **📝 Note**: You can only run the MongoDB® commands in your SingleStore Helios database using the SingleStore Kai-enabled endpoint.

**Disclaimer**:

SingleStore is not a MongoDB® partner. SingleStore Kai™ is an API that offers compatibility and enhanced performance for applications built on MongoDB®.

## Why Use the API for MongoDB®

SingleStore Kai offers an innovative, fast, and easy API to perform exceptionally fast analytics on JSON data for your MongoDB® applications without losing transactional performance.

Key benefits to using SingleStore Kai:

* **Drive faster analytics** on JSON data for your MongoDB® applications.
* **Zero code changes and zero data transformations** required for supported commands and operations.
* **Best of both worlds (NoSQL + SQL)**, lets developers utilize both the MongoDB® API and a SQL API to power their applications.
* **Scale-out** SingleStore without any additional cost and simply by defining a shard key.
* **Vector support** lets users provide semantics on vectors using `dot_product`, `euclidean_distance`, and many other functions available through the API.

## How the API Works

The API uses a proxy service (provided by SingleStore) to run the MongoDB® commands and aggregation pipelines. The proxy service receives the MongoDB® commands, generates the SQL equivalent of the command, and runs the SQL in the SingleStore environment. It then reads the resulting rowsets and returns the results as a collection of BSON (Binary JSON) documents back to the MongoDB® client application.

![](https://images.contentstack.io/v3/assets/bltac01ee6daa3a1e14/blt2b1e5a9c8cdb77dc/6a3e132675bd408371a77639/mongodb-arch-updated-R0tfJi.png)

## Availability

The SingleStore Kai feature is available in all the regions where SingleStore Helios can be deployed.

## In this section

* [Getting Started with SingleStore Kai](https://docs.singlestore.com/cloud/reference/singlestore-kai/getting-started-with-singlestore-kai.md)
* [Kai Data Storage Model](https://docs.singlestore.com/cloud/reference/singlestore-kai/kai-data-storage-model.md)
* [Migrate from MongoDB® to SingleStore](https://docs.singlestore.com/cloud/reference/singlestore-kai/migrate-from-mongodb-to-singlestore.md)
* [Replicate MongoDB® Collections to SingleStore](https://docs.singlestore.com/cloud/reference/singlestore-kai/replicate-mongodb-collections-to-singlestore.md)
* [SingleStore Extension Commands](https://docs.singlestore.com/cloud/reference/singlestore-kai/singlestore-extension-commands.md)
* [Supported MongoDB® Commands, Data Types, and Operators](https://docs.singlestore.com/cloud/reference/singlestore-kai/supported-mongodb-commands.md)
* [BSON Data Type Mapping](https://docs.singlestore.com/cloud/reference/singlestore-kai/data-type-mapping.md)
* [MongoDB® to SQL Mapping](https://docs.singlestore.com/cloud/reference/singlestore-kai/mongodb-to-sql-mapping.md)
* [Best Practices](https://docs.singlestore.com/cloud/reference/singlestore-kai/best-practices.md)
* [Error Handling](https://docs.singlestore.com/cloud/reference/singlestore-kai/error-handling.md)
* [Limitations](https://docs.singlestore.com/cloud/reference/singlestore-kai/limitations.md)
* [Maintenance Release Changelog](https://docs.singlestore.com/cloud/reference/singlestore-kai/maintenance-release-changelog.md)

***

Modified at: August 2, 2024

Source: [/cloud/reference/singlestore-kai/](https://docs.singlestore.com/cloud/reference/singlestore-kai/)

(An index of the documentation is available at /llms.txt)
