Create embeddings
Turns a string or a list of strings into vectors.
Authentication
AuthorizationBearer
Your API key, sk-..., from Console → API keys.
Request
This endpoint expects an object.
model
input
A string or a list of strings.
dimensions
A shorter vector
encoding_format
Allowed values:
user
metadata
Response
One vector per input, in order.
object
Allowed values:
model
data
usage
Errors
400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
502
Bad Gateway Error