ZvenoAI
API Reference

Download Video Content

GET
/v1/videos/{id}/content

Стримит содержимое своей задачи: 200/206; неготовая, истёкшая или чужая — 404. Range поддерживает 206 и 416. error.code числовой и совпадает с HTTP status.

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Public ID job'а (формат vj_)

Query Parameters

index?integer

Индекс видео. По умолчанию 0; сейчас поддерживается только 0, иначе 400.

Formatint32

Header Parameters

Range?string

Range-заголовок для частичной загрузки

Response Body

*/*

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:8080/v1/videos/string/content"
Empty
"string"
{
  "error": {
    "code": 0,
    "message": "string",
    "metadata": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": 0,
    "message": "string",
    "metadata": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": 0,
    "message": "string",
    "metadata": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": 0,
    "message": "string",
    "metadata": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": 0,
    "message": "string",
    "metadata": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": 0,
    "message": "string",
    "metadata": {
      "property1": null,
      "property2": null
    }
  }
}