Skip to main content
POST
Embeddings
Create an embedding vector from a text input. Compatible with the OpenAI embeddings API.

Authenticate

Use an API key in the Authorization header.

Request body

string
required
Embedding model ID to use. See available embedding models for the full list.Examples: text-embedding-3-small, text-embedding-3-large, voyage-4, voyage-4-large
string | array
required
Text to embed. Pass a string for a single input or an array of strings for batch embedding.
string
default:"float"
Format for the returned embeddings. Options: float, base64.
integer
Number of dimensions for the output embedding. Supported on text-embedding-3-small and text-embedding-3-large.

Response

string
Always list.
array
Array of embedding objects.
string
The model used to generate the embeddings.
object
Token usage statistics.

Examples