Refine API Support

Change model format abd refine API