[GH-ISSUE #14822] issue: report about image generation parameters #71980

Closed
opened 2026-05-13 03:57:37 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @LeXwDeX on GitHub (Jun 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14822

Regarding image generation, when choosing openai , an error occurs. The inspected error is as follows:

  File "/app/backend/open_webui/routers/images.py", line 681, in image_generations
    raise HTTPException(status_code=400, detail=ERROR_MESSAGES.DEFAULT(error))
          │                                     │              │       └ "Invalid value: '512x512'. Supported values are: '1024x1024', '1024x1536', '1536x1024', and 'auto'."
          │                                     │              └ <function ERROR_MESSAGES.<lambda> at 0x7fdf56308860>
          │                                     └ <enum 'ERROR_MESSAGES'>
          └ <class 'fastapi.exceptions.HTTPException'>
fastapi.exceptions.HTTPException: 400: [ERROR: Invalid value: '512x512'. Supported values are: '1024x1024', '1024x1536', '1536x1024', and 'auto'.]  

It is necessary to manually change 512x512 to one of the supported parameters.

Originally created by @LeXwDeX on GitHub (Jun 10, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/14822 Regarding image generation, when choosing `openai` , an error occurs. The inspected error is as follows: ``` File "/app/backend/open_webui/routers/images.py", line 681, in image_generations raise HTTPException(status_code=400, detail=ERROR_MESSAGES.DEFAULT(error)) │ │ │ └ "Invalid value: '512x512'. Supported values are: '1024x1024', '1024x1536', '1536x1024', and 'auto'." │ │ └ <function ERROR_MESSAGES.<lambda> at 0x7fdf56308860> │ └ <enum 'ERROR_MESSAGES'> └ <class 'fastapi.exceptions.HTTPException'> fastapi.exceptions.HTTPException: 400: [ERROR: Invalid value: '512x512'. Supported values are: '1024x1024', '1024x1536', '1536x1024', and 'auto'.] ``` It is necessary to manually change `512x512` to one of the supported parameters.
GiteaMirror added the bug label 2026-05-13 03:57:37 -05:00
Author
Owner

@tjbck commented on GitHub (Jun 10, 2025):

Indeed different models support different params.

<!-- gh-comment-id:2957952422 --> @tjbck commented on GitHub (Jun 10, 2025): Indeed different models support different params.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#71980