Create an embedding
Embeddings
Create an embedding
Generate a dense vector representation of one or more input strings. Use the vector to rank documents by similarity, cluster, or as a retrieval index.
POST
Create an embedding
Authorizations
Virtual API key. Create one from the
FlexAI dashboard. Pass as
Authorization: Bearer sk-xxxx.
Body
application/json
Embedding model id. See the model catalog.
Example:
"bge-m3"
Text (or list of texts) to embed.
Example:
"hello world"
Encoding of the returned embedding values. Optional; defaults to
"float" (matching OpenAI). Use "base64" for the compact wire
format. Pass a string or omit the field — do not send an explicit null.
Available options:
float, base64