Keep getting "'image' is a required property" when using valid image urls?

Hi, why do I keep getting 400 errors despite having valid image URLs converted into buffers?

const response = await axios.get(input,  { responseType: 'arraybuffer' })
  const buffer = Buffer.from(, "utf-8") = "image.png";
  var data = JSON.stringify({
  "image": input,
  "n": 10,
  "size": "1024x1024"

var config = {
  method: 'post',
  url: '',
  headers: { 
    'Authorization': 'Bearer ' + apikey, 
    'Content-Type': 'multipart/form-data'
  data : data

await axios(config)
.then(function (response) {
      let toInsert = {
  "key":        key,
  "title":    "response"

I’ve tried passing plain image URLs, Data Urls, and buffers. Why does it keep telling me “Image property is required” despite having a valid image?


Hey @sewellstephens104, did you find a solution?

I’m getting same error using images edit API with PHP.
My payload is this:

$params = [
            'image' => fopen($filePath, 'r'),
            'prompt' => $prompt,