Skip to main content
HTTP Status: 400
For validation errors, details is an object mapping each invalid field name to a list of messages.

Reasons and How to Fix

Invalid Parameter Value

A parameter has an invalid value that doesn’t match the expected options. Common issues:
  • format must be one of: png, jpg, webp for an image, or webm, mov, mp4, gif for a video. Sending a format from the wrong family (for example format=png with a video) returns this error with the valid values for that media
  • channels must be one of: rgba, rgb, alpha
  • size must be one of: full, preview, medium, hd
  • crop must be a boolean (true/false) or an aspect ratio like 1:1, 4:3, 16:9
  • padding must be a number (0.1) or percentage (10%), optionally as horizontal,vertical (10%,7.5%)

Image-only Parameter Sent with a Video

crop, padding, crop_margin, width, height and fit only apply to images. Sending any of them with a video is rejected, and details.field names the offending parameter. Use size to downscale a video.

URL Could Not Be Downloaded

When Poof cannot download the url you sent, the request is rejected with 400 validation_error and details.field is "url" (or "image_url" if you used the legacy alias). If the server answered with an HTTP error, details.status carries its status code. Nothing is billed.
The same error, without status, covers a download that timed out (15 s), a host that could not be reached, more than 3 redirects, or a URL pointing at a private, loopback or link-local address. Check that the URL is public over https and opens without cookies or login (signed URLs must not have expired), or upload the file with file instead.

Incorrect Data Types

Parameters must be the correct type.

Non-multipart Body

The /remove endpoint only accepts multipart/form-data. A JSON or raw body is rejected.

Valid Parameter Reference

Need Help?

Contact us at support@poof.bg with your request_id.