The Vision API provides endpoints for managing images in your account. You can upload images for indexing, retrieve image details, list images with filters, and delete images when no longer needed. While video search is ideal for more complex use cases that require video context and understanding, for the majority of simple use cases, image upload and search has similiar accuracy to video search but with significantly faster processing and lower costs.
Upload one or more images to your account with optional indexing.
POST /v1/images/uploadimages (required): Image file(s) to uploadmetadata (optional): JSON object containing configuration for each image:
indexing_config: Configuration for indexing
index: Boolean indicating whether to index the imagemetadata: Custom metadata for the imageReturns an array of image upload results with:
image_id: Unique identifier for the uploaded imageimage_url: URL to access the uploaded imageindexing_status: Indexing status (1 = indexing in progress, 2 = indexed)image_metadata: Custom metadata fields for the imageupload_timestamp: Unix timestamp of when the image was uploadedRetrieve details for a specific image by its ID.
GET /v1/images/{image_id}image_id (required, path): The unique identifier of the image to retrieveReturns the image object with the same structure as the upload response.
List images in your account with optional pagination.
GET /v1/imageslimit (optional, query): Maximum number of images to returnoffset (optional, query): Number of images to skip for paginationReturns a paginated array of images with the same structure as the upload and get responses.
Delete an image from your account.
DELETE /v1/images/{image_id}image_id (required, path): The unique identifier of the image to deleteReturns a confirmation message indicating the image was deleted successfully.