Inference API
Embed data
Generate embeddings for input data
POST
/
embed
This feature is in public preview.
To use the Inference API with the Python SDK, Node.js SDK, or Go SDK, upgrade to the latest SDK version:
Authorizations
Api-Key
string
headerrequiredAn API Key is required to call Pinecone APIs. Get yours from the console.
Body
application/json
model
string
requiredModel name to use for embedding generation.
parameters
object
Model-specific parameters.
inputs
object[]
requiredList of inputs to generate embeddings for that varies by model
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 model inference including any instruction prefixes
Was this page helpful?