Submit an embedding request

Submit an embedding request

post

Submits an embedding request to the embeddings models

Header parameters
AuthorizationstringRequired

API key as bearer token in Authorization header

Example: sk-Yf4
Body
modelstringRequired

ID of the model to use. You can use the List models API to see all of your available models, or see our Model Marketplace for descriptions of them.

inputstring[]Required

string or list of strings or list of doubles or list of lists of doubles or list of objects

encoding_formatstringOptional

The format to return the embeddings in. Can be either float or base64.

Example: float
Responses
chevron-right
200Success
application/json
idstringRequired
objectstringRequired
modelstringRequired
post
/v1/embeddings
200Success

Last updated