model api update