Video Generation
Video generation transforms design images into short animated clips. It supports Home, Interior, Exterior, and Garden designs. The system adds motion and smooth visual transitions. This helps users explore designs in a more interactive way.
ENDPOINT
POST /video_generation
An API URL would be like https://homedesigns.ai/api/v2/video_generation
Request
image
file[ .jpg, .jpeg, .png] / base64 Image string
-
The image to be processed by the API. The image dimensions must be 512x512 pixels or greater for optimal results. (Required Parameter)
tool_name
string
The tool_name should be in [pan_up, pan_down, pan_left_right, zoom_in, zoom_out, camera_pullback, rotate_cw, rotate_ccw, combining_motions, look_up, look_down].
Create dynamic design videos using camera effects like Pan, Zoom, Rotate, Pullback, etc. Add smooth motion to make your Home, Interior, Exterior, and Garden designs more realistic.(Required Parameter)
Parameters & Errors
image
Image field required
Image not provided
Invalid image size. The image width and height must be 512x512 or greater than 512x512 pixels.
Image Size Not Proper.
Invalid image format. Only PNG, JPEG and JPG images are allowed.
Image Format not valid.
tool_name
tool_name field required
Tool name not provided
tool_name value is not a valid enumeration member; permitted: 'pan_up'
Tool name not provided properly
status_check
Please Enter a Valid Queue ID
Invalid queue ID.
//Output should be in list of array depends on no of designs as shown below:
{
"input_image": "https://storage.googleapis.com/generativeartbucket/UserGenerations/cristian/input-77a61d7d-1fc6-4911-924b-fb05b4d9b76d-2026-03-31-07-16-30.png",
"output_video": "https://storage.googleapis.com/generativeartbucket/UserGenerations/cristian/imageToClip/videos-807cdcca-2957-49b4-b4b4-282fcaf5d020-2026-03-31-07-17-25-video.mp4"
}Process for Using /video_generation and /video_generation/status_check Endpoints
GET https://homedesigns.ai/api/v2/video_generation/status_check/ag61df25b20-e263-4bae-vbgbae8-ecccaafgbbd687-ugf1
Step 1: Pass Required Parameters to
/video_generationWhen you send a request to the
/video_generationendpoint with all required parameters, it will generate aqueue_id.Example response from
/video_generation:{ "id": "ag61df25b20-e263-4bae-vbgbae8-ecccaafgbbd687-ugf1", "status": "IN_QUEUE" }The
queue_id(idvalue) from this response will be used in subsequent requests.
Step 2: Use
queue_idin/video_generation/status_checkEndpointAppend the generated
queue_idto the/video_generation/status_checkendpoint to check the processing status.Example request:
Step 3: Review the Status Response
The
/video_generation/status_checkendpoint will return the current status of the process. Initially, the status might indicate that the process is still in"starting"wait a few moments and send the request again.Example response:
If the status is still pending
"processing", wait a few moments and send the request again.Example response:
Once all the statuses marked as
IN_QUEUE,startingandprocessingare completed, after hitting the requests one by one, you will see the results as follows:
look_down
pan_up
pan_down
pan_left_right
zoom_in
camera_pullback
zoom_out
rotate_cw
rotate_ccw
combining_motions
look_up
Last updated