Skip to content
Cloudflare Images
Visit Cloudflare Images on GitHub
Set theme to dark (⇧+D)

Getting Started

Cloudflare Images lets you set up an image pipeline in minutes. Build a scalable image pipeline to store, resize, optimize and deliver images in a fast and secure manner.

To get started with Cloudflare Images, visit the images dashboard in your Cloudflare account or sign up.

Photos you upload to Cloudflare Images are not attached to any domain in your Cloudflare account and you do not need a domain on Cloudflare to use the Cloudflare Images product.

Making Your First API Request

Once you have an Images subscription, to make your first request to the Images API, you must obtain these pieces of information:

  • Your Cloudflare Account ID
  • Your API Key or Bearer Token

Once you have this information, we are ready to upload our first image to Cloudflare Images using the API:

curl --request POST \
--url https://api.cloudflare.com/client/v4/accounts/:account_tag/images/v1 \
--header 'Authorization: Bearer :token' \
--form file=@./triceratops.jpeg

A successful response will look similar to this:

{
"result": {
"id": "083eb7b2-5392-4565-b69e-aff66acddd00",
"filename": "triceratops.jpeg",
"uploaded": "2021-09-14T05:52:14.767Z",
"requireSignedURLs": false,
"variants": [
"https://imagedelivery.net/ZWd9g1K7eljCn_KDTu_MWA/083eb7b2-5392-4565-b69e-aff66acddd00/test",
"https://imagedelivery.net/ZWd9g1K7eljCn_KDTu_MWA/083eb7b2-5392-4565-b69e-aff66acddd00/public"
]
},
"result_info": null,
"success": true,
"errors": [],
"messages": []
}