Embeddings
API Reference
Embeddings
POST /v1/embeddings - Create text, image, and video embeddings
POST
Embeddings
Documentation Index
Fetch the complete documentation index at: https://docs.redpill.ai/llms.txt
Use this file to discover all available pages before exploring further.
Create Embeddings
Generate vector embeddings for text, images, and videos for semantic search, similarity, and retrieval tasks. All embedding requests flow through RedPill’s privacy-protected gateway.Multi-Modal Support: RedPill supports text embeddings, image embeddings (URL or base64), and video embeddings for advanced use cases.
Try it now! Click the “Try it” button above to test the API in the playground. You’ll need:
- Your API key (add it when prompted)
- The
modelfield is pre-filled withtext-embedding-3-small - The
inputfield is pre-filled with example text
Request Body
Model ID to use for embeddingsExamples:
text-embedding-3-large, text-embedding-3-small, text-embedding-ada-002Text to generate embeddings for. Can be a string or array of strings.Example:
"What is RedPill AI?"Format for embeddings:
float (default) or base64Number of dimensions for the output (only supported by some models)
Example
Response
Supported Models
| Model | Dimensions | Max Tokens | Price |
|---|---|---|---|
qwen/qwen3-embedding-8b | 4096 | 32K | $0.000015/1K |
sentence-transformers/all-minilm-l6-v2 | 384 | 512 | $0.000005/1K |
openai/text-embedding-3-large | 3072 | 8191 | $0.00013/1K |
openai/text-embedding-3-small | 1536 | 8191 | $0.00002/1K |
openai/text-embedding-ada-002 | 1536 | 8191 | $0.0001/1K |
Embedding Models
View all embedding models →
Multi-Modal Embeddings
RedPill supports generating embeddings for images and videos in addition to text.Image Embeddings
Generate embeddings for images using multi-modal models like Jina CLIP.Video Embeddings
Generate embeddings for video content using specialized models.Mixed Input Types
Generate embeddings for multiple inputs of different types in a single request.Multi-Modal Use Cases
Cross-Modal Search
Search for images using text queries or text using image queries.Visual Question Answering
Combine image and text embeddings for Q&A.Video Scene Detection
Detect and classify scenes in videos.Supported Multi-Modal Models
| Model | Modalities | Dimensions | Use Cases |
|---|---|---|---|
jina/jina-clip-v2 | Text, Images | 1024 | Cross-modal search, image classification |
jina/jina-embeddings-v3 | Text, Images | 1024 | Semantic search, RAG |
nomic/nomic-embed-video-v1.5 | Text, Video | 768 | Video understanding, scene detection |
nomic/nomic-embed-text-v1.5 | Text | 768 | General text embeddings |
openai/text-embedding-3-large | Text only | 3072 | High-quality text embeddings |
voyage/voyage-3 | Text only | 1024 | Retrieval-optimized |
All Embedding Models
View complete list with pricing →
Advanced Features
Custom Dimensions
Some models support custom output dimensions for reduced storage and faster similarity search.- Reduced storage costs (6x reduction: 3072 → 512)
- Faster similarity search
- Lower memory usage
- Minimal quality loss for many use cases
Batch Processing
Process multiple inputs efficiently in a single request.Encoding Format
Choose between float or base64 encoding.Privacy & Security
TEE-Protected Processing
All embeddings generated in hardware-protected enclaves
Confidential Inputs
Text, images, and videos processed in isolated secure environments
No Storage
Embeddings not retained after generation
No Training Use
Your data never used for model training
Best Practices
Optimize for Your Use Case
Choose the Right Model
- General text:
openai/text-embedding-3-large - Budget-friendly:
openai/text-embedding-3-small - Semantic search:
voyage/voyage-3 - Multi-modal:
jina/jina-clip-v2 - Video:
nomic/nomic-embed-video-v1.5
Use Appropriate Dimensions
Start with default dimensions, reduce if needed for performance
- 3072: Highest quality (text-embedding-3-large)
- 1536: Good balance (text-embedding-3-small)
- 768: Fast & efficient (Nomic models)
- 512: Custom reduced dimensions
Next Steps
Embedding Models
Browse all embedding models
Vision Guide
Learn about vision capabilities
Pricing
View embedding costs
Supported Models
All available models