Skip to main content
POST
Hailuo H3

Headers

Authorization
string

Body

application/json
model
enum<string>
required

Model name. Must be hailuo_h3.

Available options:
hailuo_h3
prompt
string
required

Text prompt describing the video. Required. Max 7000 characters.

Maximum string length: 7000
image_url
string<uri>

Optional first-frame image. JPG/PNG/WEBP/HEIC/HEIF, ≤30MB, 256–5760px, aspect ratio 0.4–2.5. When provided, runs image-to-video and the output ratio follows the image.

image_end_url
string<uri>

Optional last-frame image. Must be used together with image_url.

resolution
enum<string>
default:2K

Output resolution. Only 2K is available today; 768P is coming soon.

Available options:
2K
duration
integer
default:5

Video duration in seconds. Any integer from 4 to 15.

Required range: 4 <= x <= 15
ratio
enum<string>
default:16:9

Aspect ratio. Text-to-video only; ignored when image_url is provided (the ratio then follows the input image).

Available options:
21:9,
16:9,
4:3,
1:1,
3:4,
9:16
custom_callback_url
string<uri>

Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

Example:

"https://your-server.com/goenhance/callback"

Response

code
integer
required
msg
string
required
data
object
required