SDKs and templates

Our SDKs are available on Github.

We offer SDKs in JavaScript, PHP, and Python to simplify API integration. Code examples for each language's SDK demonstrate common use cases and are available in the respective subrepositories. These SDKs streamline interaction with our API endpoints, making queries easier. Check the subrepositories for examples :

SDK
folder
branch SDK version (update)

Javascript

version 2.0 (2025)

Python

version 2.0 (2025)

Ruby

main (2025)

PHP

version 2.0 (Nov 2024)

Templates

We also provide a set of templates that demonstrate how to use the K-ai SDKs to interact with K-ai service in different languages.

Senario
Search
Chatbot
Audit

Microsoft Copilot Studio

Streamlit (Python)

Last updated