add curl and hook model to api