Skip to main content
POST
/
v1
/
inference
/
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>",
  "encoding_format": "float",
  "user": "<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

encoding_format
enum<string>
default:float

Encoding format

Available options:
float,
base64
user
string | null

User identifier

Response

200

Embeddings created successfully