Skip to main content
POST
/
v1
/
extract
Extract from media
curl --request POST \
  --url https://api.vidjutsu.ai/v1/extract \
  --header 'Content-Type: application/json' \
  --data '
{
  "mediaUrl": "<string>",
  "frames": "<unknown>",
  "audio": true,
  "metadata": true
}
'
{
  "frames": [
    {
      "index": 123,
      "url": "<string>"
    }
  ],
  "audio": {
    "url": "<string>",
    "duration": 123
  },
  "metadata": {
    "width": 123,
    "height": 123,
    "fps": 123,
    "duration": 123
  }
}

Body

application/json
mediaUrl
string
required

URL of the video to extract from

frames
any

Frame indices to extract. Use [0, 75, 150] for specific frames, 'auto' for 3 evenly spaced, or 'last' for the final frame

audio
boolean

Extract audio track as WAV

metadata
boolean

Return video metadata (width, height, fps, duration). Defaults to true

Response

200 - application/json

The request has succeeded.

frames
object[]
audio
object
metadata
object