You can use the Images API to use a URL of an image instead of uploading the data.
Make a POST request using the example below as reference. Keep in mind that the --form 'file=<FILE>' and --form 'url=<URL>' fields are mutually exclusive.
After successfully uploading the image, you will receive a response similar to the example below.
If your origin server returns an error while fetching the images, the API response will return a 4xx error.
Was this helpful?
What did you like?
What went wrong?
Thank you for helping improve Cloudflare's documentation!