setting up api key model