Image Management
For chat over text, images and short videos, use the OpenAI-compatible Chat Completions API.
These endpoints manage the images in your account. You can upload images for indexing, retrieve image details, list images with filters, and delete images you no longer need. Video search fits use cases that need video context. For most simple use cases, image upload and search is about as accurate as video search, with faster processing and lower cost.
Upload images
Upload one or more images to your account with optional indexing.
Endpoint
POST /v1/images/upload
Request
Bash
Python
Parameters
images(required): Image file(s) to uploadmetadata(optional): JSON object containing configuration for each image:indexing_config: Configuration for indexingindex: Boolean indicating whether to index the image
metadata: Custom metadata for the image
Response
Returns 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 uploaded
Get image
Retrieve details for a specific image by its ID.
Endpoint
GET /v1/images/{image_id}
Request
Bash
Python
Parameters
image_id(required, path): The unique identifier of the image to retrieve
Response
Returns the image object with the same structure as the upload response.
List images
List images in your account with optional pagination.
Endpoint
GET /v1/images
Request
Bash
Python
Parameters
limit(optional, query): Maximum number of images to returnoffset(optional, query): Number of images to skip for pagination
Response
Returns a paginated array of images with the same structure as the upload and get responses.
Delete image
Delete an image from your account.
Endpoint
DELETE /v1/images/{image_id}
Request
Bash
Python
Parameters
image_id(required, path): The unique identifier of the image to delete
Response
Returns a message confirming the deletion.