It's legal to use ChatGPT in Android app and publish it on Google Play

While using Google Play, I’ve noticed sevral apps use ChatGPT in their apps, they actually use it without API, they just use a Web View (an android component, that let you display a whole web page inside your app).

Just wondering, is making Android apps using ChatGPT is legal ?