POST
/
v1
/
jobs
/
gen2
/
text2video
curl --request POST \
  --url https://api.haiper.ai/v1/jobs/gen2/text2video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "is_public": true,
  "is_enable_prompt_enhancer": true,
  "prompt": "<string>",
  "negative_prompt": "<string>",
  "gen_mode": "<string>",
  "settings": {
    "seed": 123,
    "aspect_ratio": "<string>",
    "duration": 123
  }
}'
{
  "status": "<string>",
  "value": {
    "generation_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

The information to create video

The body is of type object.

Response

200
application/json

The response is of type object.