convert model API