Higgsfield Image 2 Video
Transform static images into dynamic, motion-rich videos with unparalleled control and creative depth.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/higgsfield-image2video"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "model": "dop-preview",
12 "prompt": "Make the dress flow dramatically in the wind as the camera slowly circles around her, capturing the golden sunset light.",
13 "seed": 12345,
14 "motion_id": "c5881721-05b1-47d9-94d6-0203863114e1",
15 "motion_strength": 0.8,
16 "image_urls": [
17 "https://segmind-resources.s3.amazonaws.com/input/5d6b3638-b366-496c-847e-4eb91407b8df-128b5b18cad59a0885903ac2bba97087.png"
18 ],
19 "enhance_prompt": true,
20 "check_nsfw": true
21}
22
23response = requests.post(url, headers=headers, json=data)
24
25if response.status_code == 200:
26 result = response.json()
27 print(json.dumps(result, indent=2))
28else:
29 print(f"Error: {response.status_code}")
30 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/higgsfield-image2video"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "model": "dop-preview",
12 "prompt": "Make the dress flow dramatically in the wind as the camera slowly circles around her, capturing the golden sunset light.",
13 "seed": 12345,
14 "motion_id": "c5881721-05b1-47d9-94d6-0203863114e1",
15 "motion_strength": 0.8,
16 "image_urls": [
17 "https://segmind-resources.s3.amazonaws.com/input/5d6b3638-b366-496c-847e-4eb91407b8df-128b5b18cad59a0885903ac2bba97087.png"
18 ],
19 "enhance_prompt": true,
20 "check_nsfw": true
21}
22
23response = requests.post(url, headers=headers, json=data)
24
25if response.status_code == 200:
26 result = response.json()
27 print(json.dumps(result, indent=2))
28else:
29 print(f"Error: {response.status_code}")
30 print(response.text)API Endpoint
https://api.segmind.com/v1/higgsfield-image2videoParameters
enhance_promptrequiredbooleanEnable to refine prompts. Improves output when set to true.
nullmodelrequiredstringSelect the model quality. Use 'dop-preview' for high-quality renders, or 'dop-lite' for faster previews.
null"dop-lite""dop-preview""dop-turbo"motion_idrequiredstringChoose an animation style. 'Cinematic' for dramatic effects or '360 Orbit' for full scene views.
null"ea035f68-b350-40f1-b7f4-7dff999fdd67""2bae49e6-ffe7-42a8-a73f-d44632c4acaa""7f8971a6-9e96-45b6-a05a-8f5c99b1e13d""dc8d7d9c-ae0c-45fc-b780-7d470b171b45""65b0a5a3-953d-471c-86d5-967ab44d0dab""d21ff628-0d91-40b2-8508-cd5a0ce375d4""c5881721-05b1-47d9-94d6-0203863114e1""a85cb3f2-f2be-4ee2-b3b9-808fc6a81acc""ab0fa3d8-fcbe-4a6a-96bb-eae7a0e2c2cb""1b4c1b9a-898b-451c-bff8-7288382ccaf2"promptrequiredstringEnter a detailed description for the animation. Use 'A futuristic skyline at sunset' for cityscapes.
"Make the dress flow dramatically in the wind as the camera slowly circles around her, capturing the golden sunset light."seedrequiredintegerSet random seed for consistent outputs. Change seed for varied results up to 1,000,000.
nullRange: 1 - 1000000check_nsfwoptionalbooleanEnable NSFW filter. Set true to block explicit content.
trueimage_urlsoptionalstring[]Include reference image URLs. Use high-res images for improved detail.
motion_strengthoptionalnumberControl motion intensity; 0.3 for subtle effects, 1 for dramatic motion.
0.8Range: 0 - 1Response 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