Using the Inference API
Learn insights into how your Users think, feel, act and react
The Inference API provides a machine learning model that can generate predictions based on the provided data. This documentation will guide you on how to properly format your input for the API and interpret the results received from the API.
Input Format
Send a POST request to the API endpoint with a JSON payload containing a set of entries for prediction. Each entry should include the following information:
text
: The text input for the inference result (String) - requiredcategory
: The category to which the content belongs (String) - requiredimg_url
: The URL of an image associated with the content (String) - optional
Example JSON body for the POST request:
You can then call the Inference API with the Inference object created above.
Remember to include the access token in the Authorization header of your API request.
Last updated