TanStack

EmbeddingModality

Type Alias: EmbeddingModality

ts
type EmbeddingModality = "text" | "image";

Defined in: packages/ai/src/types.ts:2368

Input modalities an embedding model can accept. Unlike MediaPromptModality, 'text' is listed explicitly because text-only embedding models are the common case and the modality list drives compile-time narrowing of EmbeddingInputItem.