The file vectors feature is still in beta. Please contact the team at [email protected] if you have any issues.

Vectorize an existing file (must be part of a group)

Usage

import { PinataSDK } from "pinata";

const pinata = new PinataSDK({
  pinataJwt: process.env.PINATA_JWT!,
  pinataGateway: "example.mypinata.cloud",
});

const update = await pinata.files
  .vectorize("52681e41-86f4-407b-8f79-33a7e7e5df68")

Returns

type VectorizeFileResponse = {
	status: boolean;
};

Parameters

fileId

  • Type: string

ID of the target file to vectorize

const update = await pinata.files
  .vectorize("52681e41-86f4-407b-8f79-33a7e7e5df68")