adds api for model