yes bro I did tried your code but the thing is my code is not wrong if i change the model dall-e-3 to dall-e-2 then the image get generated . But if i put dall-e-3 then the error occurs that ratelimit exceeded . Where as my credits are not finished .
Note: This topic was split into a new topic by a moderator. The OP also noted the problem here.