Image Processing

Task progress is available through WebSocket. See Task Progress Query.

Gitruck Cloud image processing APIs provide a variety of AI-powered capabilities including removing black borders, canvas resize, smart collage generation, camera movement effects, watermark removal, and more.

General Notes

All image processing APIs use an asynchronous task model:

  1. Upload file: Call the File Upload API to get a file_id.
  2. Create task: Call the corresponding processing API (POST) with the file_id to create a task and receive a task_id.
  3. Poll for result: Call the query API (GET) to poll the task status. Results are available when status becomes completed.

💡 Tip: Poll every 2–5 seconds.

API List

APIPathDescription
Remove Black Borders/task/image_blackborder_removeAuto-detect and remove black borders
Canvas Resize/task/image_canvas_adaptResize image to a target canvas size
Smart Collage / Cover/task/image_classic_templateGenerate collage or cover from multiple images
Image Matting/task/image_mattingAutomatically separate subjects from backgrounds and generate transparent-background assets
Image Camera Move/task/image_moveConvert static image to video with camera movement
Remove Watermark/task/image_purifyRemove watermarks and logos from images
Image to Live Photo/task/image_to_liveConvert static image to a micro-animated video
Long Image to Square/task/image_to_squareIntelligently split and stitch a long image into a square
Vertical Stitch/task/image_vertical_stitchStitch multiple images vertically into a long image

Supported File Formats

Image processing APIs support: jpg, jpeg, png, webp, bmp.

Next Steps