POST
/
search
/
embed
JavaScript
import PiClient from 'withpi';

const client = new PiClient({
  apiKey: 'My API Key',
});

const response = await client.search.embed({ batch: true, query: ['string'] });

console.log(response);
[
  [
    123
  ]
]

Authorizations

x-api-key
string
header
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type number[][].