GPT-4o / gpt-4-turbo API sends error 500 when providing images

Error: 500 The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID req_XXXXX in your email.)

GPT 3.5 and 4.0 work fine

openai.chat.completions.create({
      model: "gpt-4-turbo",
      messages: [
        {
          role: "user",
          content: [
            { type: "text", text: userMessage },
            {
              type: "image_url",
              image_url: {
                "url": "data:image/jpeg;base64,"+image64,
              },
            }
          ],
        },
      ],
    });

I can confirm that it works on my end. Hopefully it’s just a transient issue. Likely lots of people testing at the moment.

We can’t see what image you are trying to send and if the mime type matches the image format, which must be a properly-formed file, not a byte stream.

example code to load image from file: