POST
/
embed

SDK support

You can access the embed endpoint with the latest Python, Node.js, or Go SDK.

To install the latest SDK version, run the following command:

If you already have an SDK, upgrade to the latest version as follows:

Authorizations

Api-Key
string
headerrequired

An API Key is required to call Pinecone APIs. Get yours from the console.

Body

application/json
model
string
required

The model to use for embedding generation.

parameters
object

Model-specific parameters.

inputs
object[]
required

List of inputs to generate embeddings for.

Response

200 - application/json
model
string
required

The model used to generate the embeddings

data
object[]
required

The embeddings generated for the inputs.

usage
object
required

Usage statistics for the model inference.