Skip to main content
POST
Create embeddings

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Validates and normalizes the POST /v1/embeddings request body.

input accepts a bare string or an array of strings. A bare string is promoted to a one-element array by {@see self::prepareForValidation()}. An empty array is rejected by {@see self::withValidator()}.

Authorization is handled by the Sanctum ability middleware on the route; this class always returns true from authorize().

model
string
required
input
string[]
required
Minimum array length: 1
encoding_format
enum<string> | null
Available options:
float,
null
dimensions
integer | null
Required range: x >= 1
user
string | null
Maximum string length: 255

Response

object
string
required
Allowed value: "list"
data
object[]
required
model
string
required
usage
object
required