How to provide image link from Google Drive to Render API

Google Drive

Step 1: Go to Google Drive and right-click the file that you want to share, then click on "Share"

Step 2: In the window that comes up, change the access to "Anyone with the link"

Step 3: Click "Copy link"

As the final step, you will get the link similar to this:

https://drive.google.com/file/d/1wMgCWAsqlw0nXcMhCldTbwSznMdXUmBT/view?usp=sharing

Where the bolded part 1wMgCWAsqlw0nXcMhCldTbwSznMdXUmBT is the file ID

Now create the following link structure and use the file ID:

https://drive.google.com/uc?export=download&id=1wMgCWAsqlw0nXcMhCldTbwSznMdXUmBT

Done! Repeat these steps for each file from Google Drive and it will work.

Last updated

Was this helpful?