Getting 400 to generate an image using OpenAI's DALL·E API

I’m trying to generate an image using OpenAI’s DALL·E API, which was working fine a few days ago. Now, however, I’m getting a 400 Bad Request response with no specific error message. Any help would be appreciated!
API: POST /v1/images/generations

Request Body (JSON):

{
  "model": "dall-e-2",
  "prompt": "A sunset over a mountain",
  "n": 1,
  "size": "512x512",
  "response_format": "b64_json"
}


 Response:

{
  "error": {
    "message": null,
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}