Convert a static image into a short video with push, pull, pan, and move camera effects.
Prefer not to code?Upload files and process them in Gitruck Toolbox. Just sign in; results match this API.Open Photo to Video (Pan & Zoom) →
Before / After
Before
Original static image input
After
Generated camera-move video output
Create Task
Basic Information
Item
Value
Request Method
POST
Request Path
/task/image_move
Content-Type
application/json
Authentication
Raw API key in the Authorization header
Request Body
Parameter
Type
Required
Default
Description
file_id
string
Yes
-
Uploaded image file ID
width
number
No
1920
Output video width in pixels, up to 10000
height
number
No
1080
Output video height in pixels, up to 10000
duration
number
No
8
Video duration in seconds, up to 12
fps
number
No
60
Frame rate, up to 60 fps
motion
string
No
-
Camera move style, see the table below. When omitted, the server picks one automatically (composition analysis + subject detection + randomness); when specified, reruns with the same image and parameters produce the same move
Camera Move Styles (motion values)
Pan (8 values, each describes the direction of movement)
Use a value from the Camera Move Styles table above
6004
404
File not found
Verify the file_id
6017
400
The file is not a recognizable image (for example, a web page saved as .jpg, or a file whose header is cut off). It is rejected at task creation; no task is created and nothing is charged
Re-export the image as JPEG / PNG and upload it again
6502
401
Authentication failed
Check the Authorization header
6202
402
Insufficient balance
Recharge in the Dashboard
6017
—
The image's actual format can't be read by this API (for example, the extension is .jpg but the content is AVIF); the error message names the actual format (during execution: the task fails and credits are refunded; see error_code in the task result)
Convert the image to JPEG / PNG, upload it again and resubmit
6021
—
The image data is incomplete or damaged, typically truncated by an interrupted download or upload. The file header is intact, so this can't be detected at task creation (during execution: the task fails and credits are refunded; see error_code in the task result)
Re-export the image or use the original, then resubmit