Submit an embedding request
Submits an embedding request to the embeddings router
Authentication
AuthorizationBearer
API key as bearer token in Authorization header
Request
This endpoint expects an object.
input
Text, token, or multimodal input(s) to embed
model
The model to use for embeddings
encoding_format
The format of the output embeddings
Allowed values:
dimensions
The number of dimensions for the output embeddings
user
A unique identifier for the end-user
provider
Provider routing preferences for the request.
input_type
The type of input (e.g. search_query, search_document)
Response
Embedding response
object
Allowed values:
data
List of embedding objects
model
The model used for embeddings
id
Unique identifier for the embeddings response
usage
Token usage statistics
Errors
400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error
503
Service Unavailable Error