Skip to content

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:
PropertyTypeDescription
model_idStringThe ID of the model to run
customer_idStringThe ID of the customer to run the model for
dataObjectThe 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