Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer token used for request authentication. Alternatively, you can send the API key in the x-api-key header. Note: A payment method is required to use the API.

Body

application/json
model
enum<string>
required

The multimodal embedding model used for this request.

Available options:
octen-vl-embedding,
octen-vl-embedding-large
input
object
required

The multimodal content to be vectorized. Supports text, images, videos, and combinations. Maximum total elements per request: 20. Maximum images per request: 5. Maximum videos per request: 1.

enable_fusion
boolean
default:false

Whether to generate a fused embedding. When true, all elements in contents are fused into a single vector; when false, each element produces an independent vector.

dimension
integer

The dimensionality of the output embedding vectors. Defaults to the model's max dimension (octen-vl-embedding: 2048, octen-vl-embedding-large: 4096). Any positive integer ≤ the model's max dimension is allowed.

fps
number
default:1

Frames sampled per second of video. For example, 0.5 samples one frame every two seconds. Lower values sample fewer frames and reduce video token consumption. Each video is sampled to at most 64 frames.

Required range: 0 <= x <= 1
instruct
string
default:Represent the user's input.

Custom task description used to guide the model in understanding the query intent. Its length counts toward input_tokens and shares the 32,000-token total context limit with contents.

Response

Successful VL embedding response

code
integer

Business status code. 0 indicates success.

msg
string

A message describing the result.

request_id
string

The unique identifier for this request.

data
object

The main VL embedding response payload.

meta
object

Additional metadata for the VL embedding request.