Domestic Video Model Generation
Submit domestic video tasks using `POST /v1/videos`.
https://zx1.deepwl.net/v1/videoscurl -X POST https://zx1.deepwl.net/v1/videos \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '
{
"model": "Kling-3.0-Omni",
"prompt": "The camera circles around the building and uses a Hitchcock zoom",
"seconds": "15",
"size": "720x1280",
"metadata": {
"scene_type": "motion_control",
"motion_level": "pro",
"file_infos": [
{
"type": "Url",
"category": "Video",
"url": "https://example.com/motion-ref.mp4"
}
],
"output_config": {
"duration": 15,
"resolution": "720P",
"aspect_ratio": "9:16",
"audio_generation": "Enabled"
}
}
}'Submit domestic video tasks via POST /v1/videos. Supports text-to-video, image-to-video, first/last frame, motion control, digital human, lip sync, template effects, and more. Extended parameters are passed through metadata.
Request Headers
Authorizationstring必填Authentication header. Uses a Bearer token, e.g. Bearer YOUR_API_KEY.
Content-Typestring必填Request content type, must be application/json.
Request Body
modelstring必填Model name. You can pass either a base model directly or a bundled billing model.
promptstring必填Prompt.
secondsstring | integerDuration. The top-level seconds has the highest priority.
durationintegerDuration compatibility field.
sizestringQuick size field, such as 720x1280 or 1280x720.
imagestringSingle reference image or first-frame image.
imagesarray<string>Multiple reference images.
input_referencestring | array<string>Reference image input, compatible with URL, base64, data URI, and file upload.
metadataobjectExtended parameters. Commonly used metadata.output_config, scene_type, motion_level, offpeak, video_url, file_infos, ext_info.
Request Examples
Scenarios
| Scenario | Key Fields |
|---|---|
| Text-to-video | prompt + seconds |
| Image-to-video | image / images / input_reference |
| First and last frame | image + metadata.last_frame_url |
| Motion control | metadata.scene_type=motion_control + video reference |
| Digital human | metadata.scene_type=avatar_i2v |
| Lip sync | metadata.scene_type=lip_sync |
| Template effects | metadata.scene_type=template_effect |
Rules
seconds/durationcan be placed at the top level or inmetadata- The top-level duration has the highest priority
scene_type=motion_controlmust provide a video referencescene_type=lip_syncis counted as 5 seconds if it is less than 5 secondsFileInfoscan contain up to 3 items
metadata.output_config
Common fields:
resolutionaspect_ratioaudio_generationdurationperson_generationinput_compliance_checkoutput_compliance_checkenhance_switchframe_interpolatelogo_add