Wan Video Effects
Transform your videos with diverse video effects. Start creating captivating videos today.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/video-effects"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "subject": "person",
12 "negative_prompt": "blurry, bad quality, camera shake, distortion, poor composition, low resolution, artifact, watermark",
13 "effect": "squish_it",
14 "image": "https://segmind-resources.s3.amazonaws.com/input/d5495362-90af-401f-815c-a032c71f7787-wan-effect.png",
15 "seed": 30887452,
16 "video_length": 4,
17 "resolution": "560",
18 "steps": 30,
19 "base64": false
20}
21
22response = requests.post(url, headers=headers, json=data)
23
24if response.status_code == 200:
25 result = response.json()
26 print(json.dumps(result, indent=2))
27else:
28 print(f"Error: {response.status_code}")
29 print(response.text)
1import requests
2import json
3
4url = "https://api.segmind.com/v1/video-effects"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "subject": "person",
12 "negative_prompt": "blurry, bad quality, camera shake, distortion, poor composition, low resolution, artifact, watermark",
13 "effect": "squish_it",
14 "image": "https://segmind-resources.s3.amazonaws.com/input/d5495362-90af-401f-815c-a032c71f7787-wan-effect.png",
15 "seed": 30887452,
16 "video_length": 4,
17 "resolution": "560",
18 "steps": 30,
19 "base64": false
20}
21
22response = requests.post(url, headers=headers, json=data)
23
24if response.status_code == 200:
25 result = response.json()
26 print(json.dumps(result, indent=2))
27else:
28 print(f"Error: {response.status_code}")
29 print(response.text)
API Endpoint
https://api.segmind.com/v1/video-effects
Parameters
effect
requiredstring
Effects to be applied on the video
"squish_it"
"squish_it"
"rotate_it"
"cakeify_it"
"muscle_me"
"crush_it"
"decay_it"
"inflate_it"
"jungle_me"
"baby_me"
"assassin_me"
+10 moreimage
requiredstring (uri)
Reference image for video generation
resolution
requiredinteger
Resolution of the generated video (longest side of the video)
560
360
480
560
subject
requiredstring
Describe your subject in 1-2 words
video_length
requiredinteger
Length of the generated video in seconds
4
Range: 1 - 5base64
optionalboolean
Output as base64
false
negative_prompt
optionalstring
Negative prompt for video generation
"blurry, bad quality, camera shake, distortion, poor composition, low resolution, artifact, watermark"
seed
optionalinteger
Seed number for video generation
42424242
steps
optionalinteger
Number of steps for video generation
30
Range: 10 - 70Response Type
Returns: Video
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Bad Request
Invalid parameters or request format
Unauthorized
Missing or invalid API key
Forbidden
Insufficient permissions
Not Found
Model or endpoint not found
Insufficient Credits
Not enough credits to process request
Rate Limited
Too many requests
Server Error
Internal server error
Bad Gateway
Service temporarily unavailable
Timeout
Request timed out