Video generation is an asynchronous operation. You submit a job withDocumentation Index
Fetch the complete documentation index at: https://doc.hitopen.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/videos, receive a task ID, and then poll GET /v1/videos/{task_id} until the job is complete. Generation typically takes between a few seconds and several minutes depending on the model and video length.
Video generation is billed at job submission. If a job fails, contact your admin for a refund.
Create a video
multipart/form-data.
Request parameters
The video model ID. Supported models include Sora, Kling, and Jimeng variants. Contact your admin for the available model IDs on your instance.
A text description of the video you want to generate. The more detailed your description, the better the result.
An optional reference image provided as a URL or a base64-encoded string. When supplied, the model uses it as the starting frame or visual reference for the generated video.
Desired video duration in seconds. The exact supported range depends on the model.
Output video width in pixels.
Output video height in pixels.
Frames per second for the output video.
Number of videos to generate. Defaults to
1.Random seed for reproducibility. Using the same seed and parameters tends to produce similar results.
The format of the response data.
Additional model-specific parameters passed as a JSON object. Common keys include
negative_prompt, style, and quality_level.An optional end-user identifier for monitoring and abuse detection.
Response fields (job object)
The task ID. Use this to poll for status with
GET /v1/videos/{task_id}.The type of the returned object.
The model that is processing the request.
Current job status. Typical values:
"queued", "processing", "completed", "failed".A value between
0 and 1 indicating how far along the job is.Unix timestamp when the job was created.
Unix timestamp when the job finished.
null if still in progress.Unix timestamp after which the result URLs will no longer be accessible.
Duration of the generated video.
File size information for the generated video.
Present when
status is "failed". Contains message and code fields.Example
cURL
Get video task status
Path parameters
The task ID returned by the
POST /v1/videos request.Response fields
The task ID.
The type of the returned object.
The model processing the request.
Current job status:
"queued", "processing", "completed", or "failed".Completion fraction between
0 and 1.Unix timestamp when the job was created.
Duration of the video (available once complete).
Example
cURL
Async workflow
Python (polling example)