Appearance
ML Model Calculations API
You can use the ML Model Calculations API to run machine learning models in real time.
Run a Model Calculation
- Method: POST
- Path:
/ml/model-calculations/run
- Description: Runs a model calculation.
- Request Body:
Property | Type | Description |
---|---|---|
model_id | String | The ID of the model to run |
customer_id | String | The ID of the customer to run the model for |
data | Object | The data to run the model with (optional) |
Example using curl:
bash
curl -X POST \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"model_id": "MODEL_ID",
"customer_id": "CUSTOMER_ID",
"data": {
"key": "value"
}
}' \
https://api.almeta.cloud/ml/model-calculations/run