Logo

openai

#10081

invalid_parameter_error

The provided size '1600x900' is not valid. Accepted values are: '256x256', '512x512', '1024x1024', '1024x1792', '1792x1024'.

This error has been identified and solved.

Reason

The 400 status error you are seeing in the OpenAI API is due to an invalid request related to the image size. The error message indicates that the image size '1600x900' is not one of the supported sizes, which are ['256x256', '512x512', '1024x1024', '1024x1792', '1792x1024']. This means the server cannot process the request because the specified image dimensions do not match the allowed sizes for the API.

Solution

To fix the 400 status error in the OpenAI API due to invalid image size, you need to ensure that the image dimensions conform to the supported sizes. Here are the steps to resolve this issue:

  • Use one of the supported image sizes for the DALL-E model you are using.

  • Ensure the image is resized to one of the following dimensions:

    • 256x256

    • 512x512

    • 1024x1024

    • 1024x1792

    • 1792x1024

By adjusting the image size to one of these supported dimensions, you can avoid the 400 error and successfully submit your request to the OpenAI API.

Original Error Message

Raw

The provided size '1600x900' is not valid. Accepted values are: '256x256', '512x512', '1024x1024', '1024x1792', '1792x1024'.

Original Error Message

Raw

The provided size '1600x900' is not valid. Accepted values are: '256x256', '512x512', '1024x1024', '1024x1792', '1792x1024'.

© 2024 Portkey, Inc. All rights reserved

HIPAA

COMPLIANT

GDPR

Transform Your AI app prototypes to be production-ready

Talk to us →