[IMP] Add api.model to support backward compablity