POST
/
v1
/
experimental
/
image
/
embeddings

Authorizations

Authorization
string
headerrequired

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

Body

application/json

Request to the VLM API for embedding an image and text.

id
string

Unique identifier of the request.

created_at
string

Date and time when the request was created (in UTC timezone)

callback_url
string | null

The URL to call when the request is completed.

Minimum length: 1
image
string | null

Base64 encoded image to embed (at least one of image or text is required).

text
string | null

Text to embed (at least one of image or text is required).

model
string
default: vlm-1-embeddings

The model to use for generating the response.

Allowed value: "vlm-1-embeddings"
batch
boolean
default: false

Whether to process the image/text in batch mode (async).

metadata
object | null

Optional metadata to pass to the model.

Response

201 - application/json

Base prediction response for all API responses.

id
string

Unique identifier of the response.

created_at
string

Date and time when the request was created (in UTC timezone)

completed_at
string | null

Date and time when the response was completed (in UTC timezone)

response
any | null

The response from the model.

status
string
default: pending

The status of the job.