Hey there,
Trying to run an example from the Vision API and getting 400 with “server_error” in the response.
I checked the OpenAI status page, everything is green including the API.
Looks like nobody has reported it so maybe I am doing something wrong?
I tried to run a request to gpt-4-vision-preview with text only without specifying an image, and it does return a valid response with generated text.
Here’s the CURL command that fails (see the response below):
curl https://api.openai.com/v1/chat/completions \
-D - \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $myAPIKey \
-d '{
"model": "gpt-4-vision-preview",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What’s in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
}
}
]
}
],
"max_tokens": 300
}'
Response:
HTTP/2 400
{
"error": {
"message": "",
"type": "server_error",
"param": null,
"code": null
}
}