change input api