Skip to main content

ImageDistance

The vectorial distance with a reference image, or given an embedding

distancenumber<double>required

The distance of the image to the embeddings

Possible values: >= 0

image objectrequired

The image summary

creationDateinteger<int64>required

The entity creation date

Example: 1725989551416
modificationDateinteger<int64>required

The entity last modification date

Example: 1760890442560
idstringrequired

The unique identifier of the image

Possible values: >= 36 characters and <= 36 characters, Value must match regular expression [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}

Example: fb6af249-1061-48a0-9e47-026d7428d709
repositoryIdstringrequired

The unique identifier of the repository it belongs to

Possible values: >= 36 characters and <= 36 characters, Value must match regular expression [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}

Example: 9aa0820f-6405-4b54-a01a-a6b56489a77f
parentIdstring

The unique identifier of the image parent

Possible values: >= 36 characters and <= 36 characters, Value must match regular expression [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}

namestringrequired

The image name

Possible values: non-empty and <= 512 characters

Example: fileName.png
formatImageFormatrequired

The image format

Possible values: [PNG, JPEG, WEBP, GIF, AVIF, HEIF]

Example: PNG
mimeTypestringrequired

The image MIME type

Possible values: non-empty and <= 32 characters

Example: image/jpeg
uristringrequired

The image URI

Possible values: >= 8 characters and <= 4096 characters, Value must match regular expression file://.*

Example: file:///Users/me/image//path/fileName.png
urlstringrequired

The image URL

Possible values: >= 8 characters and <= 4096 characters, Value must match regular expression file://.*

Example: file:///Users/me/image//path/fileName.png
sourceUrlstring<uri>

The image source URL

Possible values: >= 8 characters and <= 4096 characters, Value must match regular expression ^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]$

Example: https://static1.smartbear.co/swagger/media/assets/images/swagger_logo.svg
sizeInBytesinteger<int64>required

The image size in bytes

Possible values: > 0

dimensions objectrequired

The image dimensions

widthinteger<int32>required

The image width in pixels

Possible values: >= 1

heightinteger<int32>required

The image height in pixels

Possible values: >= 1

fileDates objectrequired

The image file dates

creationDateinteger<int64>required

The entity creation date

Example: 1725989551416
modificationDateinteger<int64>required

The entity last modification date

Example: 1760890442560
ImageDistance
{
"distance": 0,
"image": {
"creationDate": 1725989551416,
"modificationDate": 1760890442560,
"id": "fb6af249-1061-48a0-9e47-026d7428d709",
"repositoryId": "9aa0820f-6405-4b54-a01a-a6b56489a77f",
"parentId": "string",
"name": "fileName.png",
"format": "PNG",
"mimeType": "image/jpeg",
"uri": "file:///Users/me/image//path/fileName.png",
"url": "file:///Users/me/image//path/fileName.png",
"sourceUrl": "https://static1.smartbear.co/swagger/media/assets/images/swagger_logo.svg",
"sizeInBytes": 0,
"dimensions": {
"width": 0,
"height": 0
},
"fileDates": {
"creationDate": 1725989551416,
"modificationDate": 1760890442560
}
}
}