Inference API
Embed data
Generate embeddings for input data.
For guidance and examples, see Generate embeddings.
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
headerrequiredAn API Key is required to call Pinecone APIs. Get yours from the console.
Body
application/json
model
string
requiredThe model to use for embedding generation.
parameters
object
Model-specific parameters.
inputs
object[]
requiredList of inputs to generate embeddings for.
Response
200 - application/json
model
string
requiredThe model used to generate the embeddings
data
object[]
requiredThe embeddings generated for the inputs.
usage
object
requiredUsage statistics for the model inference.
Was this page helpful?