-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
stable diffusion api error 404 #4482
Comments
The 404 error you're encountering when trying to generate an image with the
By following these steps, you should be able to resolve the 404 error and successfully generate images with your self-hosted Dify setup using the Stable Diffusion API.
|
Thx chat gpt but my post request creates a generation without problem from my dify server. The problem comes from the use of the stable diffusion API by dify. @dosu |
It appears the issue with the 404 error when using the To further diagnose and potentially resolve this issue, it would be helpful to have more details about the error message or response from the Stable Diffusion API when the 404 occurs. This information could provide insights into whether the issue lies with the request's construction, the model's availability, or another aspect of the API interaction. If you have access to more detailed logs or error messages from the Stable Diffusion API that occur at the time of the 404 error, sharing those could be crucial in pinpointing the exact cause and finding a solution.
|
我也遇到了同样的错误 |
in code |
GG nice modif "/dify/api/core/tools/provider/builtin/stablediffusion/tools/stable_diffusion.py" in your docker |
Self Checks
Dify version
0.6.8
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
connect your stable diffusion instance and tried to generate an image, I get a 404 error
log stable diff server v1.9.3 :
API 2024-05-17 10:56:48.558694 200 http/1.1 GET /sdapi/v1/sd-models xxx.xxx.xxx 0.0017
API 2024-05-17 10:56:48.743417 200 http/1.1 POST /sdapi/v1/options xxx.xxx.xxx 0.0012
API 2024-05-17 10:51:49.979496 404 http/1.1 POST /sdapi/v1/txt2img xxx.xxx.xxx 0.0043
log dify server:
{
"prompt": "a dog",
"model": "DreamShaperXL_Turbo_v2_1",
"lora": "",
"steps": 5,
"width": 50,
"height": 50,
"negative_prompt": "bad art, ugly, deformed, watermark, duplicated, discontinuous lines"
}
{
"text": "Failed to generate image\n",
"files": []
}
✔️ Expected Behavior
image generation
❌ Actual Behavior
error 404
The text was updated successfully, but these errors were encountered: