GET/v1/videos/{video_id}/content

Download a video

Streams the finished video file. Before completion the call answers 400 video_not_ready; after the asset expires, 404 video_expired.

認証: AuthorizationヘッダーにBearer形式のAPIキー

パスパラメータ

  • video_idstring必須

    The video job id.

クエリパラメータ

  • variantstring

    Only video is supported.

    デフォルト: "video"

レスポンス

  • 200

    The video bytes, usually video/mp4.

  • 400

    Invalid request. param names the field; code says why (invalid_parameter, unsupported_parameter, unsupported_capability, refusal, previous_response_not_found). Not charged.

    レスポンス
    • errorobject
      error
      • messagestring

        What went wrong and how to fix it.

      • typestring

        For example invalid_request_error, authentication_error, permission_error, rate_limit_error, insufficient_quota, api_error.

      • codestring

        The stable error code.

      • paramstring | null

        The request field at fault, when there is one.

      • refusal_reasonenum

        Present only on code: refusal.

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"
  • 401

    The key is missing, malformed, expired or revoked.

    レスポンス
    • errorobject
      error
      • messagestring

        What went wrong and how to fix it.

      • typestring

        For example invalid_request_error, authentication_error, permission_error, rate_limit_error, insufficient_quota, api_error.

      • codestring

        The stable error code.

      • paramstring | null

        The request field at fault, when there is one.

      • refusal_reasonenum

        Present only on code: refusal.

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"
  • 404

    No such resource for this key.

    レスポンス
    • errorobject
      error
      • messagestring

        What went wrong and how to fix it.

      • typestring

        For example invalid_request_error, authentication_error, permission_error, rate_limit_error, insufficient_quota, api_error.

      • codestring

        The stable error code.

      • paramstring | null

        The request field at fault, when there is one.

      • refusal_reasonenum

        Present only on code: refusal.

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"

リクエスト

curl https://api.experientiallabs.ai/v1/videos/video_4e8a1c7b2f9d4053a6e1b8c3d7f2a910/content \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --output video.mp4

レスポンス

string

https://api.experientiallabs.ai/v1/videos/video_4e8a1c7b2f9d4053a6e1b8c3d7f2a910/content