Access Predictive Endpoints with REST

The predictive endpoints of the Models API are REST-only. Authenticate with the same JWT flow used by the generative endpoints, then POST to the predictive endpoint for the capability you need.

Predictive endpoints use the same JWT authentication flow as the generative REST endpoints. To create an external client app, generate a JWT, and set up your authorization header, see Authenticate to the Models API.

Predictive endpoints follow this shape:

Where {method} is one of:

CapabilityEndpoint PathPredicts
Regression/regressionA continuous numeric value.
Forecast/forecastFuture values of a time series.
Classification/classificationA probability per class.
Multi-Outcome/multi-outcomeSeveral outcomes for each record.
Topic Classification/topic-classificationCaller-supplied topics for texts.
Sentiment Detection/sentiment-detectionSentiment for a batch of texts.