send prediction to API