Overview
Perplexity’s Embeddings API generates high-quality text embeddings for semantic search and retrieval. Choose between standard embeddings for independent texts or contextualized embeddings for document chunks that share context.We recommend using our official SDKs for a more convenient and type-safe way to interact with the Embeddings API.
Available Models
| Model | Dimensions | Context | MRL | Quantization | Price ($/1M tokens) |
|---|---|---|---|---|---|
pplx-embed-v1-0.6b | 1024 | 32K | Yes | INT8/BINARY | $0.004 |
pplx-embed-v1-4b | 2560 | 32K | Yes | INT8/BINARY | $0.03 |
pplx-embed-context-v1-0.6b | 1024 | 32K | Yes | INT8/BINARY | $0.008 |
pplx-embed-context-v1-4b | 2560 | 32K | Yes | INT8/BINARY | $0.05 |
Installation
Authentication
Set your API key as an environment variable:- macOS/Linux
- Windows