Embed Image
POST/v1/embedding/image
Generates image embeddings from images hosted locally or online.
To generate embeddings from images stored locally, provide a list of filepaths, bytes, or PIL images to the parameter images
.
To generate embeddings from images stored remotely, provide a list of URLs to the parameter urls
.
Request
- multipart/form-data
Body
Possible values: [nomic-embed-vision-v1
, nomic-embed-vision-v1.5
]
An enumeration.
A list of URLs for images, stored remotely
A list of image filepaths, bytes, or PIL Images, stored locally
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
The embeddings
usage
object
required
The number of non-generated tokens ingested.
The total tokens used.
Possible values: [nomic-embed-vision-v1
, nomic-embed-vision-v1.5
]
An enumeration.
{
"embeddings": [
[
0
]
],
"usage": {
"prompt_tokens": 0,
"total_tokens": 0
}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}