OpenAI Format
OpenAI Format - Embeddings
- Generic Embeddings API reference for all OpenAI-compatible embedding models
- Convert text to vector representations
- Supports single or batch input
- Configurable output dimensions and encoding format
POST
Authorizations
All APIs require Bearer Token authentication
Add to request header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
Embedding model name
Example:
"text-embedding-3-small"
Input text to embed, encoded as a string or array of strings
The format to return the embeddings in
Available options:
float, base64 The number of dimensions the resulting output embeddings should have. Only supported in some models.