client.embeddings.create()
Generate embeddings for one or more input strings.
Parameters
Embedding model ID. Example:
"minnow-em-v1".A single string or a list of strings to embed.
Request a specific MRL dimension. Supported values:
896, 512, 256, 128, 64.
Defaults to the model’s native dimension (896 for minnow-em-v1)."float" (default) or "base64".Any additional parameters passed through to the API.
Returns: EmbeddingResponse
| Field | Type | Description |
|---|---|---|
model | str | Model used |
data | List[Embedding] | One item per input string |
usage | Usage or None | Token counts |
Embedding:
| Field | Type | Description |
|---|---|---|
index | int | Position in the input list |
embedding | List[float] | The dense embedding vector |
object | str | Always "embedding" |
