Generate embeddings (deprecated)
Client
Generate embeddings (deprecated)
deprecated
Deprecated compatibility proxy. New integrations should call https://openrouter.ai/api/v1/embeddings directly with the provisioned OpenRouter key.
POST
Generate embeddings (deprecated)
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Embedding model identifier
Example:
"google/gemini-embedding-001"
Single text input to embed
Example:
"Hello world"
The format to return the embeddings in. Can be either float or base64.
Available options:
float, base64 The number of dimensions the resulting output embeddings should have. Only supported in certain models.
Required range:
x >= 0