- GUIDES
- Basic
- Video2Video
- ImageFaceSwap
- VideoFaceSwap
- Video Effect
- Text To Image
Generate Video
POST
/api/v1/video2video/generate
Video2Video
Request
Header Params
Authorization
string
optional
Example:
Bearer xxx
Body Params application/json
args
object
required
model
integer
required
duration
integer
required
>= 3<= 30
reference_video_url
string
required
seed
integer
optional
>= -1<= 2147483647
video_refer
enum<integer>
optional
Allowed values:
123
prompt
string
optional
>= 0 characters<= 500 characters
subject_only
boolean
optional
subject_prompt
string
optional
subject_type
enum<string>
optional
Allowed values:
PERSONCUSTOM
bg_custom
boolean
optional
bg_color
string
optional
type
enum<string>
required
Allowed value:
mx-v2v
Example
{
"args": {
"model": 2,
"duration": 10,
"reference_video_url": "https://cdn.goenhance.ai/user/goenhance/0dc5cb142ed43e0616881942c920d4fc.mp4"
},
"type": "mx-v2v"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.goenhance.ai/api/v1/video2video/generate' \
--header 'Authorization: Bearer xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"args": {
"model": 2,
"duration": 10,
"reference_video_url": "https://cdn.goenhance.ai/user/goenhance/0dc5cb142ed43e0616881942c920d4fc.mp4"
},
"type": "mx-v2v"
}'
Responses
🟢200成功
application/json
Body
code
integer
required
msg
string
required
data
object
required
img_uuid
string
required
Examples
{
"code": 0,
"msg": "Success",
"data": {
"img_uuid": "c12b656c-747a-44fd-9c80-add79b0c52d5"
}
}
🟠401Unauthorized
🔴500Server Error
Modified at 2025-03-07 03:34:43