Merge model with api