Create embeddings
Convert text into vector embeddings for semantic search, clustering, recommendations, and retrieval.
POST
Creates numerical vector representations of text. Vectors from the same model can be compared for semantic similarity and used in retrieval pipelines.
Endpoint
Headers
API key using the format
Bearer $YELU_API_KEY.Must be
application/json.Request body
An embedding-capable model ID available to your account.
Text or batch of texts to embed. Empty input and inputs beyond the model’s context limit are rejected.
float for a JSON number array or base64 for encoded vector bytes when supported.Requested output dimensions on models that support shortening embeddings.
Stable, non-sensitive end-user identifier when accepted by the selected provider.
Response
Always
list.One embedding per input, in input order. Each item contains
object, index, and embedding.Model used to create the vectors.
Token accounting with
prompt_tokens and total_tokens when supplied.Error codes
Last modified on July 13, 2026