Embeddings
Image / Text Embeddings
Generate embeddings for the given image or text.
POST
/
v1
/
experimental
/
image
/
embeddings
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
id
string
Unique identifier of the request.
created_at
string
Date and time when the request was created (in UTC timezone)
file_id
string | null
The ID of the uploaded file.
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
enum<string>
requiredThe model to use for generating the response.
Available options:
vlm-1
batch
boolean
default: falseWhether to process the document in batch mode (async).
metadata
object | null
Optional metadata to pass to the model.
Response
201 - application/json
The response is of type any
.