Generate Videos/Images
Generate Video Effects
The resources (image, video) generated by our API are valid for 7 days. Please save the relevant resources as soon as possible to prevent expiration.
Generate video effects
POST https://devapi.vidnoz.com/v2/task/image-to-video-effects
Request Headers
Parameter | Required | Type | Description |
---|---|---|---|
Content-Type | true | string | Data Tranmission Type: multipart/form-data |
Request Attributes
Parameter | Required | Type | Description |
---|---|---|---|
photo | false | file | Uploaded image file (Preferred field),two upload methods are supported,choose either |
photo_url | false | string | Image URL,two upload methods are supported,choose either |
model_name | true | string | Model name(model_name field from video effects list) |
Response Attributes
Parameter | Type | Description |
---|---|---|
code | int | 200 |
message | string | Task Remark |
task_id | string | Task ID |
Example
Request Attributes
curl --request POST \
--url https://devapi.vidnoz.com/v2/task/image-to-video-effects \
--header "accept: application/json" \
--header "Authorization: Bearer $API_KEY" \
--form 'photo_url="https://static-alter1.vidnoz.com/image_to_video_effects/Jesus_Hug.jpg"' \
--form 'model_name="hug_jesus_20_epochs"' \
Response Attributes
{
"code": 200,
"message": "ok",
"data": {
"task_id": "Z0JYUTBlZFJicUx5Z1VwZllXbUtmUT09"
}
}