Skip to main content
POST
Omit the Authorization header for anonymous access. Per-tier quotas are on Rate Limits. This route shares those quotas with chat completions. Model ids are on Models.

Request parameters

Each model lists the extra fields it reads in supported_parameters on GET /v1/openai/models.

Text input

Multimodal input

Vision-language models such as qwen/qwen3-vl-embedding-2b accept image_url and video_url content parts in input. video_url embeds sampled frames. Image and video vectors share the text vector space. google/embeddinggemma-2 also accepts audio_url, input_audio, and document_url parts. A PDF’s pages pool into one vector. All parts in one input share one 8,192-token window. Check capabilities.supported_input_types on GET /v1/openai/models before using a modality. Not every embedding model accepts images or video.

Task prefixes and dimensions

google/embeddinggemma-2 is trained with a short prefix on text inputs. Set it with prompt_name. The default is Classification. A wrong prefix still returns a vector, at lower precision. An unknown name is a 400. dimensions takes 768, 512, 256, or 128. The shorter vector is re-normalized. Queries and documents must share one value.
200

Models

Available embedding models.

Supported Inputs

Content part types shared across chat and embeddings.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

OpenAI-compatible embeddings request.

The input field is intentionally polymorphic to match both OpenAI's API (string / list-of-strings / list-of-token-ids) and vLLM's multimodal extension (list of content parts). The router normalises everything to a list of items before handing it to the backend, so individual backends only see one shape.

model
string
required
input
required
encoding_format
enum<string>
default:float
Available options:
float,
base64
dimensions
integer | null
user
string | null
prompt_name
string | null
document_pages
any[] | null
document_max_pages
integer | null
truncate_prompt_tokens
integer | null

Response

Successful Response

OpenAI-compatible embeddings response with audit extras (served_model_id and backend).

model
string
required
data
EmbeddingData · object[]
required
id
string
object
string
default:list
Allowed value: "list"
created
integer
served_model_id
string | null
backend
string | null
usage
EmbeddingUsage · object