API endpoint for predictions.
Merge branch 'api'