翻篇收录说明
翻篇网页快照

VL Embedding API Reference - Octen Docs

https://docs.octen.ai/api-reference/vl-embedding

最近抓取:2026-12-05 07:50:12(北京时间)

最近内容变化:2026-12-02 19:19:02(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Converts multimodal input (text, images, and videos) into vector representations. Supports a single fused vector across modalities, independent per-element vectors, configurable output dimensions, video frame sampling control, and a custom task instruction.

正文摘录

cURLText Onlycurl --request POST \ --url https://api.octen.ai/vl-embedding \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "octen-vl-embedding", "input": { "contents": [ { "text": "What is multimodal vector search?" } ] } } '200Fusion mode response (single fused vector){ "code": 0, "msg": "success", "request_id": "a7b8c9d0-e1f2-3456-abcd-789012345678", "data": { "results": [ { "index": 0, "embedding": [ 0.0156, -0.0298, 0.0411 ], "type": "fusion" } ], "model": "octen-vl-embedding-large" }, "meta": { "usage": { "input_tokens": 6814, "text_tokens": 18, "image_tokens": 6796, "image_count": 2, "duration": 22 }, "warning": "" } }POST/vl-embeddingTry itcURLText Onlycurl --request POST \ --url https://api.octen.ai/vl-embedding \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "octen-vl-embedding", "input": { "contents": [ { "text": "What is multimodal vector search?" } ] } } '200Fusion mode response (single fused vector){ "code": 0, "msg": "success", "request_id": "a7b8c9d0-e1f2-3456-abcd-789012345678", "data": { "results": [ { "index": 0, "embedding": [ 0.0156, -0.0298, 0.0411 ], "type": "fusion" } ], "model": "octen-vl-embedding-large" }, "meta": { "usage": { "input_tokens": 6814, "text_tokens": 18, "image_tokens": 6796, "image_count": 2, "duration": 22 }, "warning": "" } }AuthorizationsbearerAuthapiKeyAuthAuthorizationstringheaderrequiredBearer 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.Bodyapplication/jsonmodelenum<string>requiredThe multimodal embedding model used for this request.Available options: octen-vl-embedding, octen-vl-embedding-large inputobjectrequiredThe 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.Show child attributesenable_fusionbooleandefault:falseWhether 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.dimensionintegerThe 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.fpsnumberdefault:1Frames 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 <= 1instructstringdefault: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 10,000-character total limit with contents.Response200application/jsonSuccessful VL embedding responserequest_idstringrequiredThe unique identifier for this request.codeintegerBusiness status code. 0 indicates success.msgstringA message describing the result.dataobjectThe main VL embedding response payload.Show child attributesmetaobjectAdditional metadata for the VL embedding request.Show child attributesWas this page helpful?YesNo