← All API problem types

Image File Required

400

https://optimizeyourimage.com/docs/problems/file-required

What it means

The request reached the API without an image. The optimize endpoint expects one image in the multipart form field named "file".

How to resolve it

Send multipart/form-data with exactly one image part named "file".

Retrying

Retry after correcting the request. Failed requests are not billed.

Include the X-Request-Id response header when contacting [email protected] about a specific failure.