Skip to main content
POST
/
models
/
v2
/
nomic-ai
/
nomic-embed-vision-v1
image-feature-extraction
curl --request POST \
  --url https://api.bytez.com/models/v2/nomic-ai/nomic-embed-vision-v1 \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://as1.ftcdn.net/v2/jpg/03/03/55/82/1000_F_303558268_YNUQp9NNMTE0X4zrj314mbWcDHd1pZPD.jpg",
  "base64": "data:image/jpg;base64,...BASE_64_GOES_HERE (Only use this is you are not using a url)"
}
'
{
  "error": "<string>",
  "output": [
    [
      0.23,
      0.45,
      0.89,
      0.67
    ],
    [
      0.23,
      0.45,
      0.89,
      0.67
    ]
  ]
}

Authorizations

Authorization
string
header
required

Set Authorization header to BYTEZ_KEY 'Authorization: YOUR_BYTEZ_KEY_HERE'

Body

application/json

Schema for image-feature-extraction models

url
string
required
Example:

"https://as1.ftcdn.net/v2/jpg/03/03/55/82/1000_F_303558268_YNUQp9NNMTE0X4zrj314mbWcDHd1pZPD.jpg"

base64
string
Example:

"data:image/jpg;base64,...BASE_64_GOES_HERE (Only use this is you are not using a url)"

Response

Successful image-feature-extraction response.

error
string | null
required

Null on success; otherwise an error message.

output
array
required

Successful response with extracted features

Example:
[
[0.23, 0.45, 0.89, 0.67],
[0.23, 0.45, 0.89, 0.67]
]