Using _models prefix for API
Move model api into its own file