Options for generating embeddings.

interface EmbedOptions {
    inputs: string[];
    model: string;
    parameters?: Record<string, string>;
}

Properties

inputs: string[]

List of inputs to generate embeddings for.

model: string

The model to use for embedding generation.

parameters?: Record<string, string>

Additional model-specific parameters. Refer to the model guide for available model parameters.

As a convenience, inputType is automatically converted to the API's input_type parameter. All other parameters are passed through unchanged, so they must use the model's documented (snake_case) parameter names.