Extract features from images for tasks like object detection, image classification, and image retrieval.

Quickstart

Extract Features from an Image

Send an image to a model to generate feature embeddings.

import Bytez from "bytez.js";

const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
const model = client.model("nomic-ai/nomic-embed-vision-v1");

const inputImage = "https://as1.ftcdn.net/v2/jpg/03/03/55/82/1000_F_303558268_YNUQp9NNMTE0X4zrj314mbWcDHd1pZPD.jpg";

const { error, output: embedding } = await model.run(inputImage);

if (error) {
  console.error("Error:", error);
} else {
  console.log("Embedding:", embedding);
}

```python python
from bytez import Bytez

client = Bytez("YOUR_BYTEZ_KEY_HERE")

model = client.model("nomic-ai/nomic-embed-vision-v1")

model.load()

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

result = model.run(input_image_url)

output = result.get("output")

# Depending on the model, there may be additional props returned
print(output)

embedding = output[0]

print(embedding)

Demo