Search Clips by Image

post/serve/api/v1/search_clips_by_image

Request

  • Base URL
    https://mavi-backend.memories.ai/serve/api/v2
  • Auth
    API key in header Authorization

Request body multipart/form-data

filestring binary required

Query image. Allowed extensions: .jpg/.jpeg/.png/.gif/.bmp/.webp. Content-Type must start with image/. Max 20 MB.

video_nostring required

Unique identifier of the video to search within. Must be non-empty.

promptstring required

Natural-language prompt that refines the visual match. Must be non-empty. English recommended.

Example request

{
  "video_no": "VI625239098370850816",
  "prompt": "focus on the red shirt, ignore background color"
}

Response

Successful response

codestring
msgstring
successboolean
failedboolean

Example response

{
  "code": "0000",
  "msg": "success",
  "data": [
    {
      "start_time": 12.5,
      "end_time": 18.2,
      "score": 0.8631,
      "video_bucket": "mavi-resource",
      "video_blob": "VI576925607808602112.mp4"
    },
    {
      "start_time": 42,
      "end_time": 47.8,
      "score": 0.8124,
      "video_bucket": "mavi-resource",
      "video_blob": "VI576925607808602112.mp4"
    }
  ],
  "success": true,
  "failed": false
}

Changes

No recorded changes to this operation across all 1 revision of this API.