Bad request - please check your parameters Invalid input: image URL is required

Hai n8n community sorry for disturbing, i would like to ask about the error i’m getting from my workflow which “Bad request - please check your parameters Invalid input: image URL is required”. So in my workflow i’m trying to use api.market

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Calvin_Saputra

According to the API you’re using, the required body should look like this:

{
  "input": {
    "haircolor": "brunette",
    "hairproperty": "straight",
    "hairstyle": "Brazilian Blowout",
    "image": "https://blog.api.market/wp-content/uploads/2025/04/taylor_curl_hair.jpg"
  }
}

As you can see, it doesn’t accept the image as a binary file, it expects a URL instead
So, try removing the image download step node and use the URL directly from the WhatsApp node: {{ $json.url }}

Thank you so much mr. @mohamed3nan, it works perfectly but during GET node my status write it’s failed. would you please help me solve this problem

Are you sure you passed all the required body fields in the previous step?

before i was trying to change a bit about the code by changing the path of the url image from the default that you gave me into the image that was taken from whatsapp into http node ( download the image into binary file ). firstily it didnt work but i saw your reply and decide to change the path to the default manual it works perfectly, but the problem here, how am i able to use my custom image? thank you mr. @mohamed3nan

You’re welcome!

You can use any publicly accessible URL, just pass it instead of the WhatsApp image URL.


If your issue got solved, please mark this reply as the solution :white_check_mark::pray:t2:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.