Higgsfield Image 2 Video Serverless API
Transform static images into dynamic, motion-rich videos with unparalleled control and creative depth.
POST /v2/higgsfield-image2video · submit + poll 1# pip install "segmind>=1.1.0"
2# export SEGMIND_API_KEY="YOUR_API_KEY"
3from segmind import SegmindClient, InferenceFailed, InferenceTimeout
4
5# Async (v2) — recommended for long-running / video models.
6# run() blocks up to 600s; submit_async + job.wait(timeout=...) sets a longer
7# deadline and keeps the request_id so you can re-poll later.
8client = SegmindClient() # reads SEGMIND_API_KEY
9payload = {
10 "model": "dop-preview",
11 "prompt": "Make the dress flow dramatically in the wind as the camera slowly circles around her, capturing the golden sunset light.",
12 "seed": 12345,
13 "motion_id": "c5881721-05b1-47d9-94d6-0203863114e1",
14 "motion_strength": 0.8,
15 "image_urls": ["https://segmind-resources.s3.amazonaws.com/input/5d6b3638-b366-496c-847e-4eb91407b8df-128b5b18cad59a0885903ac2bba97087.png"],
16 "enhance_prompt": True,
17 "check_nsfw": True,
18}
19job = client.submit_async("higgsfield-image2video", **payload)
20print(job.request_id) # available immediately
21try:
22 result = job.wait(timeout=900, interval=2.0)
23 print(result["status"]) # COMPLETED
24 print(result.get("output")) # model output (e.g. video URL)
25except InferenceTimeout as e:
26 print("still running:", e.request_id) # re-poll later with this id
27except InferenceFailed as e:
28 print("failed:", e.detail)
29
30# Fast models (<=600s) can use the one-liner instead:
31# result = segmind.run("higgsfield-image2video", **payload) 1# pip install "segmind>=1.1.0"
2# export SEGMIND_API_KEY="YOUR_API_KEY"
3from segmind import SegmindClient, InferenceFailed, InferenceTimeout
4
5# Async (v2) — recommended for long-running / video models.
6# run() blocks up to 600s; submit_async + job.wait(timeout=...) sets a longer
7# deadline and keeps the request_id so you can re-poll later.
8client = SegmindClient() # reads SEGMIND_API_KEY
9payload = {
10 "model": "dop-preview",
11 "prompt": "Make the dress flow dramatically in the wind as the camera slowly circles around her, capturing the golden sunset light.",
12 "seed": 12345,
13 "motion_id": "c5881721-05b1-47d9-94d6-0203863114e1",
14 "motion_strength": 0.8,
15 "image_urls": ["https://segmind-resources.s3.amazonaws.com/input/5d6b3638-b366-496c-847e-4eb91407b8df-128b5b18cad59a0885903ac2bba97087.png"],
16 "enhance_prompt": True,
17 "check_nsfw": True,
18}
19job = client.submit_async("higgsfield-image2video", **payload)
20print(job.request_id) # available immediately
21try:
22 result = job.wait(timeout=900, interval=2.0)
23 print(result["status"]) # COMPLETED
24 print(result.get("output")) # model output (e.g. video URL)
25except InferenceTimeout as e:
26 print("still running:", e.request_id) # re-poll later with this id
27except InferenceFailed as e:
28 print("failed:", e.detail)
29
30# Fast models (<=600s) can use the one-liner instead:
31# result = segmind.run("higgsfield-image2video", **payload)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
Asynchronous requests (v2)
Use Async for video, long-running (>~60s), or high-concurrency workloads; Sync is simplest for fast image & LLM calls. Async submits a request and you poll it to completion.
- 1
POST /v2/higgsfield-image2videoSubmit — returns request_id, status_url, response_url
- 2
GET /v2/requests/{id}/statusPoll — until COMPLETED or FAILED
- 3
GET /v2/requests/{id}Result — final response body
Status states
- A FAILED request is served as HTTP 422 — the body still carries the error detail.
- An unknown or expired request_id returns HTTP 404.
- Results are retained for 1 hour, then expire.
- Content / RAI blocks surface as FAILED, not a separate state.
- Track completion by polling the status endpoint.
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