← API reference
Mutation / aiml

predictMLModel

Run a prediction using a trained ML model. Requires mlmodelconfig:execute permission.

Arguments

ID of the ML model config to use for prediction

inputString!

Feature values as JSON string

Returns PredictMLModelPayload!

Explore in a view

AI and ML
View exact SDL
"""
Run a prediction using a trained ML model. Requires mlmodelconfig:execute permission.
"""
predictMLModel(
  """ID of the ML model config to use for prediction"""
  id: MLModelConfigID!
  """Feature values as JSON string"""
  input: String!
): PredictMLModelPayload! @topic(names: ["aiml"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.