POST
/
embed

Request

model_id
string
required

The model_id to use for embedding,

input
string
required

The input source for the file to be embedded, e.g., a URL or direct content.

Max of 5mb per request can be sent (via url or base64), consider using the File Tools API to pre-process larger inputs

modality
string
required

The type of data to be embedded (e.g., text, image, audio, video).

input_type
string
required

The type of input provided (e.g., “url” for remote URLs, “text” for text or “base64” for base64-encoded content).