Vertical Stitch
Stitch multiple images together vertically in sequence. You can optionally display each file name as a label on the image.
Prefer not to code? Upload files and process them in Gitruck Toolbox. Just sign in; results match this API.Open Vertical Image Stitch →
Create Task
| Item | Value |
|---|
| Request Method | POST |
| Request Path | /task/image_vertical_stitch |
| Content-Type | application/json |
| Authentication | Raw API key in the Authorization header |
Request Body
| Parameter | Type | Required | Default | Description |
|---|
file_ids | array | Yes | - | Image file IDs to stitch from top to bottom |
show_filename | boolean | No | false | Whether to display the file name on each stitched image section |
If any image can't be read, the whole task fails; the bad image is never skipped to stitch the rest. A file that isn't a recognizable image is rejected at task creation with 6017, so no task is created and nothing is charged. Incomplete image data (such as a file truncated by an interrupted download) is only found when the task runs: the task then fails with 6021, the credits are refunded, and the error message names which image it is (counted from 1 in file_ids order).
Request Example
curl -X POST https://api.ai-mcn.tv:10000/task/image_vertical_stitch \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"file_ids": ["537489015178246", "537489015178247", "537489015178248"],
"show_filename": false
}'
Success Example
{
"code": 200,
"msg": "success",
"data": {
"task_id": "537489015178249",
"task_type": "image_vertical_stitch",
"status": "queued"
}
}
Query Task Result
| Item | Value |
|---|
| Request Method | GET |
| Request Path | /task/image_vertical_stitch/{task_id} |
| Authentication | Raw API key in the Authorization header |
Output Result (output_result)
| Parameter | Type | Description |
|---|
file_id | string | Generated stitched image file ID |
download_url | string | Download path for the generated image |
Success Example
{
"code": 200,
"msg": "success",
"data": {
"task_id": "537489015178249",
"status": "completed",
"progress": 100,
"output_result": {
"file_id": "537489015178250",
"download_url": "/download/a1/output.jpg"
},
"create_time": "2026-04-05T08:00:00Z",
"update_time": "2026-04-05T08:00:05Z"
}
}
Error Codes
| Error Code | HTTP Status | Description | Resolution |
|---|
6013 | 400 | Missing file_ids | Pass the file_ids field |
6004 | 404 | File not found | Verify each value in file_ids |
6017 | 400 | A file in file_ids is not a recognizable image (for example, a web page saved as .jpg, or a file whose header is cut off). The whole request is rejected; no task is created and nothing is charged | Check each image, re-export the faulty one as JPEG / PNG and upload it again |
6502 | 401 | Authentication failed | Check the Authorization header |
6202 | 402 | Insufficient balance | Recharge in the Dashboard |
6021 | — | One of the images has incomplete or damaged data (typically truncated by an interrupted download or upload). The whole task fails and the error message names which image it is (during execution: the task fails and credits are refunded; see error_code in the task result) | Re-export that image or use the original, then resubmit |