You might also want to consider using an alternative AI image generator service that has an official API.
Here’s some of the popular alternatives: