So previously we were able to do this prompt with DALL-E 3 just a weeks ago. However, recently when I tried it, I kept getting invalid_request_error with no real feedback on why it is invalid. Here is the curl
curl "https://api.openai.com/v1/images/generations" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <API Key>" \
-d @prompt.json
Here is the prompt.json
{
"model": "dall-e-3",
"prompt": "Create a comic book style illustration of a Elephant and a Rhinoceros battling in a tundra habitat.\n\nHere's a description of the scene: \"The Elephant uses its intelligence to outmaneuver the Rhinoceros, pushing it towards a watering hole. The Rhinoceros cleverly uses the environment to its advantage, splashing water at the Elephant to distract it. The Elephant retaliates with a mighty blow from its trunk, but the Rhinoceros counters with a swift strike to the Elephant's side. The two animals continue to battle fiercely, neither willing to back down.\"\n\nThe animals are realistically drawn with accurate anatomy, size, and natural poses. They appear at natural scale — not oversized — and are fully integrated into the environment. Their size should not overpower the terrain.",
"n": 1,
"size": "1792x1024"
}
And this is the response
{
"error": {
"message": null,
"type": "invalid_request_error",
"param": null,
"code": null
}
}%
The prompt is about 780 characters which should be well within the limits of DALL-E 3. Does anyone what I am doing wrong here?