Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http 400 error with Open AI Dall-e-2 and Dall-e-3 #322

Open
derei opened this issue Oct 5, 2024 · 3 comments
Open

Http 400 error with Open AI Dall-e-2 and Dall-e-3 #322

derei opened this issue Oct 5, 2024 · 3 comments

Comments

@derei
Copy link

derei commented Oct 5, 2024

Title is self-explanatory.
Could you please check if Open AI is implemented correctly? Here is a discussion regarding a similar experience, perhaps it could provide some hints: https://community.openai.com/t/getting-400-error-trying-to-generate-image-with-dalle-3/508710/4

@ShiftHackZ
Copy link
Owner

Http 400 means that OpenAI server was not happy with the payload from SDAI app.
Could you please attach the txt2img form that you used in SDAI app that produces error?

@derei
Copy link
Author

derei commented Oct 7, 2024

@ShiftHackZ there was nothing special about it: I selected one of the AI Dall-E models, provided a simple prompt, j(ust something to test if it works, i can't even remember what), and left the other settings as they are: 1024x1024, Batch:1

(and no, I didn't forget to add the api key 😜. Just sayin')

@ShiftHackZ
Copy link
Owner

ShiftHackZ commented Oct 7, 2024

Checked with dalle-2, dalle-3 models on my API key, have no issue.
Here is a process of my testing: https://www.youtube.com/watch?v=pHUGTJQ8Kjc

But in your case server still may return 400, so if you are on 0.6.3 or newer version, please unlock the developer mode in SDAI app using this instuction: https://github.com/ShiftHackZ/Stable-Diffusion-Android/wiki/Developer-mode#how-to-enter-developer-mode

Then navigate to Settings -> Developer mode -> View logs, try to look for the failure HTTP 400 logs (if unable to find, try to reproduce the 400 and view the logs again). If you will manage to find error message, please post it here, but make sure you not leaking your open ai api key. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants