To be fair I don't think Reflex does use openAI, that's just the code example they used.
I think its a decent example project, its easily readable and you can understand what they're doing, but I think as a general rule its better to do something without external unrelated libs. An AI image generator just seems a bit too specific of an example for something that fundamentally has nothing to do with AI.
php didn't use openai IIRC
i kind of cannot imagine what this would use openai for unless it's using it to write a web application for you. which is pretty ...not like php.