Bearer authentication of the form Bearer <token>, where token is your auth token.
Text(s) to embed. Accepts a string, list of strings, list of token IDs, or a list of token ID lists.
Model ID to use for embedding, e.g. perplexity/pplx-embed-v1-4b.
Number of dimensions for the output embedding vector (model-dependent).
Format of the returned embedding. Defaults to float.
Intended use of the embedding, e.g. query or document. Some models use this to apply asymmetric embedding.
Provider routing preferences. Pass a provider slug string (e.g. 'perplexity') or a ProviderPreferences object to control fallback and ordering behaviour.
End-user identifier for abuse monitoring (forwarded to OpenRouter).