purge_cache
Purge Cache
Purge the CDN cache for a specific asset URL, or check the status of a pending purge request. Use this when you need to invalidate a cached version of an asset after updating it.
purge_cache
Purge the CDN cache for a specific asset URL, or check the status of a pending purge request. Use this when you need to invalidate a cached version of an asset after updating it.
upload_file
Upload a file to the ImageKit Media Library from a URL or Base64-encoded data. Supports setting tags, folder destination, custom metadata, privacy settings, and AI extensions during upload.
get_file_metadata
Retrieve technical metadata for an image including EXIF data, dimensions, format, quality, color profile info, transparency, and perceptual hash (pHash). Lookup by file ID or ImageKit URL.
manage_folders
Create, delete, copy, or move folders in the ImageKit Media Library. Copy and move operations on folders are asynchronous and return a job ID that can be checked with the returned bulk job ID.
manage_custom_metadata_fields
Create, list, update, or delete custom metadata field definitions in the ImageKit Media Library. Custom metadata fields can be of types: Text, Textarea, Number, Date, Boolean, SingleSelect, MultiSelect.
manage_file_versions
List, get details, delete, or restore file versions. ImageKit maintains version history for files, allowing you to view previous versions and restore them.
manage_tags
Add or remove tags from one or more files in bulk. Supports adding custom tags, removing custom tags, and removing AI-generated tags.
get_file
Retrieve detailed information about a file including its metadata, tags, dimensions, URL, custom metadata, and version info.
delete_files
Delete one or more files from the ImageKit Media Library by their file IDs. Supports both single and bulk deletion. Note: deleting files does **not** automatically purge the CDN cache.
copy_move_file
Copy, move, or rename a file in the ImageKit Media Library. Use the **operation** field to choose the action. Copy and move use source file path and destination folder. Rename changes the file name and can optionally purge CDN cache.
update_file
Update a file's properties including tags, custom coordinates, custom metadata, publish status, and extensions. Only the provided fields will be updated.
list_files
Search and list files in the ImageKit Media Library. Supports powerful search queries using a Lucene-like syntax to filter by name, tags, file type, size, dimensions, creation date, custom metadata, and more.
Upload, manage, transform, and deliver images and videos via a cloud-based media platform with integrated Digital Asset Management. Upload files from streams, URLs, or Base64 data with options for AI tagging, background removal, and pre/post transformations. Manage assets in folders and collections with search, copy, move, rename, delete, and version control. Retrieve file metadata including EXIF data and dimensions. Create and manage custom metadata fields. Purge CDN cache and check purge status. Receive webhook notifications for video transformation and upload transformation events. Supports AI-powered auto-tagging, background removal, visual search, and image generation from text prompts.
Common questions about connecting Imagekit to AI agents with Metorial.