n8n workflow obtains local images and generates video examples
n8n workflow obtains local images and generates video examples
1.
First, the first node chooses the triggering method, the second node chooses to obtain the file from the local disk, the third node chooses to request the data interface to generate the video, and the fourth node queries the generated video.
2. Click to read the file
1.
Select the first one to get the image locally;
2. The second one is the file address. Please note that the slash "" in the file address copied from the disk needs to be replaced with: "/"; 3. Click into the first request method is based on the request method of the interface that needs to be used. URL is the interface request address. Select the second one for the verification type. Select Bearer Auth for permissions Add a new token and fill it in. You can use this permission in all http requests. If the above permission does not work, open Send Headers and enter Name: Authorization. Enter Value: Bearer+Token (there is a space between Bearer and token) 2. After opening send Body, select Form Data according to the document output corresponding parameter transfer type. 3. The location for uploading images is quite special. On the left is the local image we obtained at the previous node. When uploading pictures, select n8n Binary File to get the content on the left. Fill in the data in the value and it will be the entire picture on the left. 4. Open the fourth node
1.
Other configurations are the same as above, but because it is a query interface, it depends on where the id is. If the id in the format https://xxxx:xxxx/xxxx/{id} is at the end of the interface, you need to put the id obtained by the previous node interface on the left into this position. You can enter it manually, or you can click on the Tid identifier in the red circle on the left and drag it to the last position of the interface, as shown in the figure.