Add online predict API