POST
/
v1
/
text-to-video
curl --request POST \
  --url https://api.magichour.ai/v1/text-to-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Text To Video video",
  "end_seconds": 5,
  "orientation": "landscape",
  "style": {
    "prompt": "a dog running",
    "quality_mode": "quick"
  }
}'
{
  "id": "clx7uu86w0a5qp55yxz315r6r",
  "estimated_frame_cost": 450,
  "credits_charged": 450
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Body

The body is of type object.

Response

200
application/json

Success