Update partial model apis to reduce codes.