HappyHorse 動画を取得する
task ID を使用して HappyHorse の動画タスクを取得します。ステータス、進行状況、タイムスタンプ、および完了した動画の URL が含まれます。
video_url が含まれます。
これらのフィールドを確認する
statusは、タスクがqueued、in_progress、completed、failed、またはerrorのいずれであるかを示します。progressはおおまかな完了率です。video_urlは完了したレスポンスに表示されます。errorはタスクが失敗したときに表示されます。
ポーリングの流れ
最初にタスクを作成する
id を保存します。task ID でポーリングする
status が completed、failed、または error になるまで、このエンドポイントに task ID を送信します。MP4 ファイルをダウンロードする
status が completed のとき、HappyHorse 動画コンテンツを取得する を呼び出します。承認
Bearer authentication. Use your CometAPI API key.
パスパラメータ
Task ID returned by POST /v1/videos.
レスポンス
Current HappyHorse video task state.
Task ID. Use this value as task_id in retrieve and content requests.
"task_example"
Object type. HappyHorse video tasks return video.
"video"
Model ID used for the task.
"happyhorse-1.0"
Task lifecycle status. Poll until the value is completed, failed, or error.
queued, in_progress, completed, failed, error "queued"
Task progress as a coarse percentage.
0 <= x <= 1000
Task creation time as a Unix timestamp in seconds.
1779938152
Compatibility alias for id. The value matches id when present.
"task_example"
Task completion time as a Unix timestamp in seconds. This field appears on completed tasks.
1779938219
Temporary video delivery URL. This field appears on completed tasks.
"<temporary-video-url>"
Failure details. This field appears when the task fails.