n8n workflow example of getting local image to generate video
n8n workflow example of getting local image to generate video
1.
First, the first node selects the trigger method, the second node selects reading a file from the local disk, the third node selects requesting the data interface to generate a video, and the fourth node queries the generated video
2. Click into the first one to read the file 1.Select the first one to get the image locally; 2.The second is the file address. Note that the slash "" copied from the disk needs to be changed to: "/" ; 3. Click into the first request method is based on the request method of the interface to be used. url is the interface request address. For the authentication type, choose the second one, For permission, choose Bearer Auth Add a new one. Fill in the token in it, and you can use this permission in all http requests If the above permission does not work, open Send Headers, and in it enter Name: Authorization, In Value enter: Bearer+token (there is a space between Bearer and the token) 2. Open send Body and pass the corresponding parameters according to the documentation. For the parameter passing type, choose Form Data 3. The position for passing the image is special. The left side is the local image obtained in the previous node, When passing the image, choose n8n Binary File to get the content on the left. In value, enter data, which is the entire image on the left 4. Open the fourth node 1.Other configurations are the same as above, but because it is a query interface, you need to see where the id is. If the format is https://xxxx:xxxx/xxxx/{id} and the id is at the end of the interface, you need to put the id obtained from the previous node's interface into this position. You can enter it manually or click the Tid identifier in the red circle on the left and drag it to the end of the interface, as shown in the figure