Create an async embedding task
Authentication
Request
The type of content for the embeddings.
Values:
audio: An audio file.video: A video file.document: A PDF file. Requires Marengo 3.5.image: An image file. Requires Marengo 3.5.
The embedding model to use.
Values:
marengo3.5: For details about this version, see the Marengo 3.5 page.marengo3.0: For details about this version, see the Marengo 3.0 page.
Set this parameter to true to receive a data[].embedding_uncertainty field in the response, representing a per-dimension uncertainty vector with the same length as the embedding array. A higher value shows lower confidence in that dimension. Requires Marengo 3.5.
To use this parameter with audio or video input, exclude the asset scope from the embedding_scope field. For example, set video.embedding_scope to ["clip"]. The field defaults to ["clip", "asset"], so a request that keeps the default returns a 400 error. This restriction does not apply to document and image input.
This field is required if the input_type parameter is audio.
This field is required if the input_type parameter is video.
This field is required if the input_type parameter is document. Requires Marengo 3.5.
The platform embeds the rendered pages of your PDF file, one embedding per page.
This field is required if the input_type parameter is image. Requires Marengo 3.5. The image can be up to 32 MB before encoding, whether you provide a URL, an asset identifier, or base64-encoded data. For an image, the embedding_option, embedding_type, and embedding_scope fields each accept a single value; any other value returns a 400 error.
Response headers
The maximum number of requests you can make per rate limit window for this endpoint. For details, see the Rate limits page.
The number of input tokens remaining in the current rate limit window for the type of content named in this header. A synchronous response already counts the tokens the request used. This value can be 0 on a response that succeeded. A 202 response does not yet count the task you submitted.
The number of input tokens remaining in the current rate limit window for the type of content named in this header. A synchronous response already counts the tokens the request used. This value can be 0 on a response that succeeded. A 202 response does not yet count the task you submitted.
The number of input tokens remaining in the current rate limit window for the type of content named in this header. A synchronous response already counts the tokens the request used. This value can be 0 on a response that succeeded. A 202 response does not yet count the task you submitted.
The number of input tokens remaining in the current rate limit window for the type of content named in this header. A synchronous response already counts the tokens the request used. This value can be 0 on a response that succeeded. A 202 response does not yet count the task you submitted.
The number of input tokens remaining in the current rate limit window for the type of content named in this header. A synchronous response already counts the tokens the request used. This value can be 0 on a response that succeeded. A 202 response does not yet count the task you submitted.
Response
An array of embedding results when status is ready, or null when status is processing or failed.