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
prompt
string
required

The prompt of the generation

is_public
boolean

Whether is generation be public on Haiper Platform, please set to false if you will to keep it private. The default value is true

is_enable_prompt_enhancer
boolean

Whether let AI help you to enhance the prompt. The default value is true

negative_prompt
string

The negative prompt of the generation

gen_mode
string

Default: 'standard', valid: 'standard'(For videos with high fidelity), 'smooth'(For videos with extensive motion), 'enhanced'(For videos with high fidelity & motion)

settings
object

Response

200
application/json
status
string
required
value
object