Embeddings Index
The Embeddings Index API allows you to create, manage, and query embeddings indexes for semantic search in your Sanity project. Learn more about embeddings indexes.
Embeddings Index API is currently in beta. Features and behavior may change without notice.
Embeddings Index API is available to projects on the Growth plan and above.
Note: Using this feature requires Sanity to send data to OpenAI and Pinecone to store vector interpretations of documents.
Known limitations:
- Creating an embeddings index for very large datasets can be slow
- The Embeddings Index HTTP API rate limit depends on the OpenAI rate limit, which sets a cap for the HTTP API at about 8,000 tokens per minute
- The embeddings-index API does not support dataset aliases - you must use the real dataset name in all requests
Base API server URL
Embeddings Index API base URL
https://{projectId}.api.sanity.io/{apiVersion}
Variables
- apiVersionstringdefault:
"vX"
API version
- projectIdstringdefault:
"your-project-id"
Sanity project ID