You uploaded an unsupported image is OpenAI's 400 for an image it can't read. Per OpenAI's docs (read 2026-11-22), the API accepts PNG, JPEG, WEBP and non-animated GIF, and rejects any image that still needs more than 30,000 patches after resizing. Phone photos in HEIC, animated GIFs and a data URL whose MIME type doesn't match the bytes are the usual causes: convert, resize and resend. At https://api.uplinkswitch.com/v1, gpt-6.1-sol lists image input in the catalog, and the whole request body must stay under 10 MB.
What this means, per OpenAI's docs
OpenAI's images and vision guide sets the image input requirements the API enforces. The accepted formats are PNG, JPEG, WEBP and non-animated GIF. A single request may carry up to 512 MB of image data and up to 1,500 images. Each image is measured in patches after resizing, and an image that still needs more than 30,000 patches is rejected outright rather than downscaled further. A format or a decode the API cannot handle produces the 400 rather than a best-effort attempt.
So the message is not about the subject of the photo; it is about the container and the encoding. The three cases that account for most of them are an unsupported format, most often a HEIC photo straight from a phone camera, an animated GIF where only a static one is accepted, and a data URL whose declared MIME type does not match the actual bytes, which leaves the decoder unable to read what it was told to expect. Each is fixed by producing a clean, supported file and sending that.
What the gateway changes
Through https://api.uplinkswitch.com/v1 the first limit a large photo tends to hit is the gateway's own body cap: a request body over 10 MB returns a 413 before the image requirements are ever evaluated. A base64 data URL inflates the byte count by roughly a third over the raw file, so a photo that looks under the limit on disk can cross it once encoded. Keep the whole request body under 10 MB.
A 400 marks a bad request, so the gateway does not send it to another route or another model; it is the request only you can change. A request id sits in each error's headers for support. The catalog's input_modalities field tells you which ids take image input at all: image is listed for gpt-6.1-sol, gpt-6-astra, claude-sonnet-5-5, gemini-4-argon and deepseek-v4.1-flash-1017. Picking an id that does not list image is its own, separate failure, so check this field before sending pixels.
On the 2026-11-23 catalog those five read ok, ok, ok, ok and ok in that order.
A different field, file_parsing, lists the formats the document file-part parser handles (bmp, gif, jpeg, jpg, png, svg and webp among them, with a max_file_mb of 20); that describes document parsing, not vision image input, so do not read it as the vision format list. It does not list HEIC, so do not treat HEIC as supported anywhere here. For sending documents rather than images, see send a PDF to an LLM API.
How to fix it
- Convert to a supported format. Re-encode a HEIC phone photo to PNG or JPEG, and flatten an animated GIF to a single static frame before sending.
- Match the MIME type to the bytes. If you send a data URL, make sure its declared type, for example
image/png, is the type the bytes actually are; a mismatch alone triggers the 400. - Resize before sending. Bring the image down so it does not exceed the patch ceiling after resizing, and so the encoded body stays well under the 10 MB request cap.
- Prefer a URL or a smaller file over a giant base64 blob. Base64 adds about a third to the size, which is often what pushes a request past 413.
- Confirm the model takes images. Check that the id you are calling lists
imageininput_modalities;gpt-6.1-soldoes. - Resend one image, then scale up. Verify a single clean image succeeds before batching many in one request.