AI Accelerator Predictions API Using Apex

This AI Accelerator Predictions API is also exposed to Apex. You can access/invoke this API from within your Apex class to get realtime prediction results.

Here are the details to invoke/access the AI Accelerator Predictions API from an Apex class:

  1. In the Developer Console, select File | New Apex Class.

  2. Implement the AI Accelerator Connect API request in the Apex class.

    This example shows an implementation of the connect API request from an Apex class.