Skip to main content
GET
/
v1
/
videos
/
{task_id}
/
content
cURL
curl https://api.cometapi.com/v1/videos/<TASK_ID>/content \
  -H "Authorization: Bearer $COMETAPI_KEY" \
  --output output.mp4
"<string>"
Use this endpoint to download the MP4 file for a completed HappyHorse video task. If the task is still running, the API returns a JSON error instead of video bytes.

Before you download

Store completed media

The response body is binary video/mp4 content. Save the bytes to your own storage when your application needs durable access to the generated media.

Authorizations

Authorization
string
header
required

Bearer authentication. Use your CometAPI API key.

Path Parameters

task_id
string
required

Task ID returned by POST /v1/videos.

Response

Binary MP4 video content.

The response is of type file.