Index an image

Pass an image URL as content. Etoile analyzes it and makes it searchable.

Supported formats: PNG, JPEG, WEBP, GIF (max 5MB).


import { Etoile } from "@etoile-dev/client";

const etoile = new Etoile({
apiKey: process.env.ETOILE_API_KEY,
});

await etoile.index({
id: "starry-night",
collection: "paintings",
title: "The Starry Night",
content: "https://art.org/starry-night.jpg",
});

Related