典名词元DMTOKENSHome
API DocumentationThird-Party Tools Tutorial
AI Model APIVideoJimeng

OmniHuman1.5 Video Generation

POST/api/v1/video/generation

Header Parameters

Authorization*string

Format: Authorization: Bearer sk-xxxxxx

Region*string

Fixed values for this service: Region is cn-north-1, Service is cv.

Service*string

Fixed values for this service: Region is cn-north-1, Service is cv.

Request Body

application/json

model*string

Model name, use the fixed value: jimeng_realman_avatar_picture_omni_v15

Value in"jimeng_realman_avatar_picture_omni_v15"
req_key*string

Model name, use the fixed value: jimeng_realman_avatar_picture_omni_v15

image_url*string

Portrait Image URL

mask_url?array<string>

Mask Image URL List

[]?string
audio_url*string

Audio URL: The audio duration must be less than 60 seconds (it is recommended to use audio under 15 seconds, as quality may degrade somewhat beyond 15 seconds); if the audio is too long, the task will submit successfully, but an error will occur when querying the task.

seed?integer

Random seed, serving as the basis for determining the initial state of diffusion, defaults to -1 (random). If the random seed is set to the same positive integer and all other parameters are identical, the generated content will most likely yield consistent results.

prompt?string

Prompt, limited to Chinese, English, Japanese, Korean, Mexican Spanish, and Indonesian, recommended length ≤ 300 characters

output_resolution?integer

Output video resolution Optional values (choose one): [720, 1080] Default value: 1080

pe_fast_mode?boolean

Whether to enable fast mode. Enabling this mode accelerates generation speed at the expense of some visual quality. To maintain high consistency with the Jimeng client, it is recommended to follow these parameter passing rules: when the output video resolution (output_resolution) is set to 720, set pe_fast_mode to true; when the output video resolution (output_resolution) is set to 1080, set pe_fast_mode to false. Default value: false.

Response Body

application/json

Success

TypeScript Definitions

Use the response body type in TypeScript.

code*integer

Status Code

data*object

Data Object

urls*array<string>

Result Set

[]?string
usage*object

Usage Information

images*integer

Number of Images

seconds*integer

Video Duration in Seconds

input_tokens*integer

Input Tokens

total_tokens*integer

Total Tokens

output_tokens*integer

Output Token Count

expired*string

Validity Period

task_id*string

Task ID

task_status*string

Task Status

message*string

Status Information

request_id*string

Request ID

curl -X POST "https://api.ygw.ai/api/v1/video/generation" \  -H "Authorization: string" \  -H "Region: string" \  -H "Service: string" \  -H "Content-Type: application/json" \  -d '{    "model": "jimeng_realman_avatar_picture_omni_v15",    "req_key": "jimeng_realman_avatar_picture_omni_v15",    "image_url": "string",    "audio_url": "string"  }'
{
  "code": 0,
  "data": {
    "urls": [
      "string"
    ],
    "usage": {
      "images": 0,
      "seconds": 0,
      "input_tokens": 0,
      "total_tokens": 0,
      "output_tokens": 0
    },
    "expired": "string",
    "task_id": "string",
    "task_status": "string"
  },
  "message": "string",
  "request_id": "string"
}