Overview
The Embedding v2 API allows you to generate high-quality vector embeddings from any form of data including text, images, audio, and documents. This powerful tool converts your data into numerical representations that capture semantic meaning, making it perfect for similarity search, recommendation systems, clustering, and AI applications.- Generate embeddings from text, images, audio, and documents
- Support for multiple data formats and input types
- High-dimensional vector representations with semantic understanding
- Optimized for similarity search and machine learning tasks
- Batch processing support for multiple inputs
- Compatible with popular vector databases and AI frameworks
API Endpoint
Quick Start
JavaScript
Response Example
Speaker Fingerprint
Embedding v2 supports speaker fingerprint for audio type. It is a unique identifier for each speaker. It is used to identify the speaker of the audio. By setting thespeaker_fingerprint
to true, you can get the speaker_embeddings
to identify the speaker of the audio.
Supported Input Types
Text Embeddings
Image Embeddings
PDF Embeddings
Audio Embeddings
Use Cases & Applications
Semantic Search
Build powerful search that understands context and meaning, not just keywords.- Example: Search for “budget headphones” and find “affordable earbuds”
- Implementation: Compare query embeddings with document embeddings using cosine similarity
Retrieval-Augmented Generation (RAG)
Connect AI models to your knowledge base for accurate, context-aware responses.- Example: Customer support chatbot that finds relevant documentation
- Benefits: Reduces hallucinations, provides up-to-date information
Content Recommendation Systems
Suggest similar content based on semantic similarity.- Example: “Related articles” or “You might also like” features
- Implementation: Find content with similar embeddings to current item
Document Classification & Clustering
Automatically categorize and group similar content.- Example: Organize support tickets by topic
- Implementation: Group documents with similar embedding patterns
Find more information on Embedding v2 API here