Implemented api model.