Logo

openai

#8010000

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 in the OpenAI API, indicating that your request was rejected by the safety system, can be due to several reasons:

Content Filtering

The prompt you are using may contain text that is detected as potentially harmful or not allowed by OpenAI's content filtering system. This system is designed to detect and block specific categories of content, such as toxic, racist, or sexual content.

Invalid or Non-Compliant Input

The input or prompt might not be properly formatted or may violate the API's syntax or configuration requirements. This could include issues such as invalid characters, incorrect data types, or other syntax errors that make the request invalid.

Policy Violations

The request may trigger one of OpenAI's or Azure's content management policies, which can flag and reject prompts that do not comply with their safety and usage guidelines.

Solution

To resolve the 400 status error in the OpenAI API due to a violation of safety system guidelines, you can take the following steps:

Ensure your prompts comply with OpenAI's content policies and guidelines.

  • Review and Modify Prompts: Check your prompts for any potentially harmful or disallowed content.

  • Validate Input Syntax: Verify that your input or prompt is properly formatted and complies with the API's syntax and configuration requirements.

  • Comply with Safety Policies: Ensure your requests do not trigger any content management policies that could result in the request being flagged and rejected.

By addressing these areas, you can help ensure your requests are accepted by 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'.

Suggested Links

https://cheatsheet.md/chatgpt-cheatsheet/openai-api-error-axioserror-request-failed-status-code-400 https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety https://github.com/Nutlope/aicommits/issues/137 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://platform.openai.com/docs/guides/production-best-practices

© 2024 Portkey, Inc. All rights reserved

HIPAA

COMPLIANT

GDPR

Transform Your AI app prototypes to be production-ready

Talk to us →