Skip to main content
POST
/
embeddings
Create Embeddings
curl --request POST \
  --url https://api.gravixlayer.com/v1/inference/embeddings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "<string>",
  "input": "<string>"
}'

Authorizations

Authorization
string
header
required

API key authentication. Get your API key from the Gravix Layer Dashboard.

Body

application/json
model
string
required

ID of the model to use

input
required

Input text to embed

Response

200

Embeddings created successfully

I