API for slicing models, getting print time and volume?

Part of the quoting process that I’d like to remove is to have an API where I can pass a method a STL file and resin type (and maybe other parameters in the future), and have it auto-generate a printable file, save it to disk, and then also tell me how long it will take to print, and how much resin it will use. By any chance is something like in the works?