Skip to main content

client.embeddings.create()

Generate embeddings for one or more input strings.

Parameters

model
str
required
Embedding model ID. Example: "minnow-em-v1".
input
str | List[str]
required
A single string or a list of strings to embed.
dimensions
int
Request a specific MRL dimension. Supported values: 896, 512, 256, 128, 64. Defaults to the model’s native dimension (896 for minnow-em-v1).
encoding_format
str
"float" (default) or "base64".
extra
dict
Any additional parameters passed through to the API.

Returns: EmbeddingResponse

Each Embedding:

Example — batch with MRL