Skip to main content

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

Body

    model NomicVisionEmbeddingModel

    Possible values: [nomic-embed-vision-v1, nomic-embed-vision-v1.5]

    An enumeration.

    urls string[]

    A list of URLs for images, stored remotely

    images binary[]

    A list of image filepaths, bytes, or PIL Images, stored locally

Responses

Successful Response

Schema

    embeddings array[]required

    The embeddings

    usage

    object

    required

    prompt_tokens Prompt Tokens (integer)required

    The number of non-generated tokens ingested.

    total_tokens Total Tokens (integer)required

    The total tokens used.

    model NomicVisionEmbeddingModel

    Possible values: [nomic-embed-vision-v1, nomic-embed-vision-v1.5]

    An enumeration.

Loading...