Use the Images binding to upload, list, retrieve, update, and delete images stored in Images directly from your Worker without managing API tokens or making HTTP requests.
The env.IMAGES.hosted namespace supports the following storage and management operations:
.upload(image, options)— Upload a new image to your account..list(options)— List images with pagination..image(imageId).details()— Get image metadata..image(imageId).bytes()— Stream the original image bytes..image(imageId).update(options)— Update metadata or access controls..image(imageId).delete()— Delete an image.
For example, you can upload an image from a request body and return its metadata:
const image = await env.IMAGES.hosted.upload(request.body, { filename: "upload.jpg", metadata: { source: "worker" },});
return Response.json(image);Or retrieve and serve the original bytes of a hosted image:
const bytes = await env.IMAGES.hosted.image("IMAGE_ID").bytes();return new Response(bytes);For more information, refer to the Images binding.
Source: Cloudflare
Latest Posts
- OpenAI GPT-5.4 and GPT-5.5 models now available in US East (N. Virginia) on Amazon Bedrock

- Amazon ECS Managed Daemons now support inter-task visibility and communication

- (Updated) Microsoft Teams: New chat sections for muted and meeting chats [MC1269864]
![(Updated) Microsoft Teams: New chat sections for muted and meeting chats [MC1269864] 4 pexels joaojesusdesign 921294](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Cloudflare Images – Manage hosted images with the Images binding




![(Updated) Microsoft Teams: New chat sections for muted and meeting chats [MC1269864] 4 pexels joaojesusdesign 921294](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-joaojesusdesign-921294-150x150.webp)
