PixAI Platform
API v2 DocumentationMedia

Inspect a video or audio file

Returns the duration, size, containers and codecs of a video or audio media item, so you can check a reference file against the model's limits before creating a reference video task.

GET
/media/{mediaId}/info

Authorization

bearerAuth
AuthorizationBearer <token>

In all requests that require authentication

In: header

Path Parameters

mediaId*string

A video or audio media ID.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.pixai.art/v2/media/string/info"
{
  "mediaId": "string",
  "durationSeconds": 0,
  "sizeBytes": "string",
  "containers": [
    "string"
  ],
  "videoStreams": [
    {
      "codec": "string",
      "width": 0,
      "height": 0,
      "averageFrameRate": 0
    }
  ],
  "audioStreams": [
    {
      "codec": "string"
    }
  ]
}
{
  "code": "string",
  "status": 0,
  "message": "string",
  "data": {},
  "defined": true
}
{
  "code": "string",
  "status": 0,
  "message": "string",
  "data": {},
  "defined": true
}
{
  "code": "string",
  "status": 0,
  "message": "string",
  "data": {},
  "defined": true
}