Sync models with api.