
openai
#10556
invalid_model_error
Invalid model specified. The 'model' argument should be left blank.
This error has been identified and solved.
Reason
The error "Invalid model dalle3. The model argument should be left blank" with a 400 status code in the OpenAI API is occurring because the dalle-3
model does not require or support specifying the model name in the request. When you include the model name ("dalle-e-3"
or similar) in your API request, it is interpreted as an invalid request, leading to the "Bad Request" error.
This is specific to the dalle-3
model, as other models may require the model name to be specified. The error indicates that the API expects the model argument to be left blank for this particular model.
Solution
To fix the "Invalid model dalle3. The model argument should be left blank" error with a 400 status code, you need to adjust your API request as follows:
Remove the model name (
"dalle-e-3"
) from your request.Ensure that the model argument is left blank for the
dalle-3
model.
Here are the key points to consider:
Do not specify the model name in the request for
dalle-3
.Check your API client configuration to ensure it aligns with the requirements for the
dalle-3
model.
Suggested Links
https://cheatsheet.md/chatgpt-cheatsheet/openai-api-error-axioserror-request-failed-status-code-400
https://community.openai.com/t/invalid-model-dall-e-3-the-model-argument-should-be-left-blank/890486
https://community.openai.com/t/intermittent-error-an-unexpected-error-occurred-error-code-400-error-message-this-model-does-not-support-specifying-dimensions-type-invalid-request-error-param-none-code-none/955807
https://community.openai.com/t/getting-400-error-trying-to-generate-image-with-dalle-3/508710
https://learn.microsoft.com/en-us/answers/questions/1532521/run-failed-openai-api-hits-badrequesterror-error-c
https://github.com/vllm-project/vllm/issues/3906
https://community.openai.com/t/i-am-receiving-an-error-status-code-400/351121
https://community.openai.com/t/opena-ai-bad-request-error-400/666947