refactor: move model to api