embeddings
Post v1embeddings
Creates embeddings for the given input.
POST
/
v1
/
embeddings
Authorizations
Authorization
string
headerrequiredBody
project_id
integer
requiredThe ID of the project to use.
model
string
requiredThe model to generate the embeddings.
input
required
Embedding Input
encoding_format
enum<string>
default: floatfloat
- floatbase64
- base64
Available options:
float
, base64
Response
200 - application/json
data
object[]
requiredThe embeddings for the input.
model
string
requiredThe model to generate the embeddings.
usage
object
requiredThe usage statistics for the completion.
provider_name
string
requiredThe name of the provider that generated the completion.
provider_id
string
requiredThe ID of the provider that generated the completion.
Was this page helpful?