Add model and api