LiteLLM icon

LiteLLM

Interact with LiteLLM Gateway API

Actions8

Embedding → Create Embedding

AI-generated

Summary

Creates an embedding for the provided text by sending the selected model and input to the LiteLLM /embeddings endpoint. Returns each item in the response’s data array as a separate n8n output item.

Inputs

  • Model (required) — The embedding model to use; must not be empty or whitespace.
  • Input (required) — The text to embed; must not be empty or whitespace.
  • Encoding Format — Optional output format: Float (float, the default) or Base64 (base64).

Output shape

A list of items, one per entry in the response’s data array; each entry becomes an output item’s json value.

Returns no items if the response has no data entries. Requires LiteLLM API credentials.

Links

Discussion