I’ve been doing this for more than a year now, including APIs.
Where it breaks down is in the repeatability of experience from user user. It needs to have instructions that define the expectations of user experience across many people. Which ends up being a spec in code or code as spec.
Imagine if your door were to be generated every time you used it. The doorknob, key, even hinges would be different each time.
Ultimately, it is a new way to provide functionality but doesn’t quite remove all the code.