Creates an embedding vector representing the input text or image.

Invokes inference using the embedding parameters. If uploading large images, this POST should be used in conjunction with the NVCF API which allows for the upload of large assets.
You can find details on how to use NVCF Asset APIs here: https://docs.api.nvidia.com/cloud-functions/reference/createasset.

Log in to see full request history
Body Params
required

The list of images or texts that you want to generate embeddings for. Images should be in form of data:image/{format};base64,{base64encodedimage}. If the size of an image is more than 200KB, it needs to be uploaded to a presigned S3 bucket using NVCF Asset APIs. Once uploaded you can refer to it using the following format: <img src="data:image/png;asset_id,{asset_id}" />. Accepted formats are jpg, png and jpeg.

string
Defaults to float

The format to return the embeddings in. Can be either float or base64.

string
required

ID of the embedding model.

int32
1 to 1

Not implemented, but provided for API compliance. This field is ignored.

string
length ≤ 204800

Not implemented, but provided for API compliance. This field is ignored.

Headers
uuid
length ≤ 370

String of asset IDs separated by commas. Data is uploaded to AWS S3 using NVCF Asset APIs and associated with these asset IDs.If the size of an image is more than 180KB, it needs to be uploaded to a presigned S3 URL bucket. The presigned URL allows for secure and temporary access to the S3 bucket for uploading the image. Once the asset is requested, an asset ID is generated for it. Please include this asset ID in this header and to use the uploaded image in a prompt, you need to refer to it using the following format: <img src="data:image/png;asset_id,{asset_id}" />.

Responses

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json