GET
/
v1
/
video-projects
/
{id}
Python
from magic_hour import Client
from os import getenv

client = Client(token=getenv("API_TOKEN"))
res = client.v1.video_projects.get(id="cuid-example")
{
  "id": "cuid-example",
  "name": "Example Name",
  "status": "complete",
  "type": "FACE_SWAP",
  "created_at": "2023-11-07T05:31:56Z",
  "width": 512,
  "height": 960,
  "enabled": true,
  "start_seconds": 0,
  "end_seconds": 15,
  "total_frame_cost": 450,
  "credits_charged": 450,
  "fps": 30,
  "error": null,
  "downloads": [
    {
      "url": "https://videos.magichour.ai/id/output.mp4",
      "expires_at": "2024-10-19T05:16:19.027Z"
    }
  ],
  "download": {
    "url": "https://videos.magichour.ai/id/output.mp4",
    "expires_at": "2024-10-19T05:16:19.027Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <api_key>, where <api_key> is your API key. To get your API key, go to Developer Hub and click "Create new API Key".

Path Parameters

id
string
required

Unique ID of the video project. This value is returned by all of the POST APIs that create a video.

Example:

"cuid-example"

Response

200
application/json

Success