Create Embeddings
Creates embeddings from text in Perplexity.
POST
Query
Field selectionChoose which fields should be included in the response. Learn more
string
Comma-separated response fields to include.
Body
Arguments
stringrequired
Input text to embed. Perplexity also accepts arrays of strings; this action currently models the common single-input path.
stringrequired
Embedding model to use.
Uncommon arguments
number
Optional output embedding dimensions.
string
Output encoding format, for example base64_int8 or base64_binary.