Create Embeddings
Generate vector embeddings for semantic search and similarity.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 |
|---|---|---|---|
| text-embedding-3-large | 3072 | 8191 | $0.00013/1K |
| text-embedding-3-small | 1536 | 8191 | $0.00002/1K |
| text-embedding-ada-002 | 1536 | 8191 | $0.0001/1K |
All Models
View all 50+ supported models →