Integrate conversational data analytics into your applications. Our REST API provides programmatic access to all Modelix features — chat sessions, datasets, model deployment, and more.
Clean, predictable REST endpoints with JSON request/response bodies. Easy to integrate with any stack.
Upload, query, and manage your datasets programmatically. Handle millions of rows with ease.
API key authentication, TLS encryption, and rate limiting on every request to keep your data safe.
Get up and running in minutes.
Generate an API key from your dashboard settings
Include your API key in request headers
Create a session and send your first query
Use our official libraries to integrate Modelix into your preferred stack in minutes.
pip install modelix-sdk
from modelix import Client
client = Client(api_key="YOUR_API_KEY")
session = client.chat.create_session()
response = session.send_message("Analyze Q4 sales trends")npm install @modelix/sdk
import { ModelixClient } from '@modelix/sdk';
const client = new ModelixClient({
apiKey: process.env.MODELIX_API_KEY
});
const session = await client.chat.createSession();
const result = await session.sendMessage("Analyze Q4 sales trends");curl -X POST https://api.modelix.world/api/v1/chat/sessions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"message": "Analyze Q4 sales trends"}'Full reference for all available endpoints.
/api/v1/chat/sessionsCreate a new chat session
{
"title": "Optional Dataset Reference",
"dataset_id": "string (optional)"
}{
"session_id": "string",
"status": "active",
"created_at": "timestamp"
}/api/v1/chat/sessions/{session_id}/messagesSend a message to analyze data
{
"message": "Analyze customer churn by region",
"stream": false
}{
"message_id": "string",
"response": "Analysis results...",
"visualizations": [],
"execution_time": "number"
}/api/v1/datasetsList all uploaded datasets
{
"datasets": [
{
"id": "string",
"name": "sales_data.csv",
"size": 1048576,
"uploaded_at": "timestamp"
}
]
}/api/v1/datasets/uploadUpload a new dataset
{
"file": "FormData",
"name": "string (optional)"
}{
"dataset_id": "string",
"message": "Dataset uploaded successfully"
}/api/v1/deploy/models/predictMake predictions using deployed model
{
"session_id": "string",
"input_data": {
"feature1": "value1",
"feature2": "value2"
}
}{
"predictions": [
0.85,
0.15
],
"model_version": "v1.0",
"execution_time": 123
}All API requests require authentication using a Bearer token. Generate your API key from your dashboard settings and include it in every request header.
Get your API key, explore the endpoints, and integrate Modelix analytics into your product today.