extract model_api plugin