Skip to main content
Compute an L2-normalized embedding for a single RGB image.
Input images up to 1280 x 720 (width x height). Larger images are rejected with HTTP 413, not downscaled — resize first.

Parameters

ImageInput
required
RGB image as file path, URL, PIL Image, or numpy array.
float | None
Optional timeout in seconds for the HTTP request.

Returns

np.ndarray: Embedding as numpy array of shape (D,), dtype float32, L2-normalized so dot products give cosine similarity directly.

Example