Smart Collage / Cover
Generate collage or cover layouts from multiple images and title text. Suitable for social content production and cover generation.
Example Outputs



Create Task
Basic Information
| Item | Value |
|---|---|
| Request Method | POST |
| Request Path | /task/image_classic_template |
| Content-Type | application/json |
| Authentication | Raw API key in the Authorization header |
Request Body
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file_ids | array | Yes | - | Array of image file IDs |
main_title | string | For full / text | - | Main title text; see Title Characters below. Can be omitted when mode is image |
sub_title | string | No | "" | Subtitle text; same characters as main_title |
mode | string | No | "full" | Generation mode: full (cover = collage + title), image (collage only), or text (title layer only) |
aspect | string | No | "3:4" | Aspect ratio, such as "1:1", "3:4", "4:3", "9:16", or "16:9" |
quality | string | No | "1080p" | Output quality |
output_pic_count | number | No | 0 | Number of candidate sets, up to 20; 0 picks it from the image count (1 image → 1 set, 2 → 5, 6 or more → 10) |
output_text_count | number | No | 1 | Number of text-image outputs, up to 20 |
If any image can't be read, the whole task fails; the bad image is never skipped to build the layout from 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).
Title Characters
Titles (main_title, sub_title) can contain Chinese (Simplified and Traditional), Japanese, Korean, Thai, Latin letters (including accented letters such as Vietnamese, French or German), Cyrillic (such as Russian, Ukrainian, Belarusian, Bulgarian or Serbian), digits and common punctuation. Long titles are automatically set smaller to fit.
Characters the cover fonts can't draw, such as emoji, Arabic or extended Cyrillic letters (for example Kazakh), return 6046 at creation: no task is created and nothing is charged. Titles aren't checked when mode is image.
Request Example
curl -X POST https://api.ai-mcn.tv:10000/task/image_classic_template \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"file_ids": ["537489015178246", "537489015178247"],
"main_title": "Highlights",
"sub_title": "2026 Review",
"mode": "full",
"aspect": "3:4",
"output_text_count": 3
}'
Success Example
{
"code": 200,
"msg": "success",
"data": {
"task_id": "537489015178248",
"task_type": "image_classic_template",
"status": "queued"
}
}
Query Task Result
Basic Information
| Item | Value |
|---|---|
| Request Method | GET |
| Request Path | /task/image_classic_template/{task_id} |
| Authentication | Raw API key in the Authorization header |
Output Result (output_result)
| Parameter | Type | Description |
|---|---|---|
render_file_download_url_list | array | Cover (collage + title) download URLs, JPG; empty when mode is image |
render_file_id_list | array | Cover file IDs, in the same order |
pic_file_download_url_list | array | Plain collage download URLs, JPG |
pic_file_id_list | array | Plain collage file IDs |
text_file_download_url_list | array | Transparent title layer download URLs, PNG, for laying out yourself; empty when mode is image |
text_file_id_list | array | Title layer file IDs |
The cover, collage and title layer at the same index belong to the same candidate.
Success Example
{
"code": 200,
"msg": "success",
"data": {
"task_id": "537489015178248",
"status": "completed",
"progress": 100,
"output_result": {
"render_file_download_url_list": ["https://api.ai-mcn.tv:9000/cloud/file/1e/537489015178249.jpg"],
"render_file_id_list": ["537489015178249"],
"pic_file_download_url_list": ["https://api.ai-mcn.tv:9000/cloud/file/7a/537489015178250.jpg"],
"pic_file_id_list": ["537489015178250"],
"text_file_download_url_list": ["https://api.ai-mcn.tv:9000/cloud/file/7b/537489015178251.png"],
"text_file_id_list": ["537489015178251"]
},
"create_time": "2026-04-05T08:00:00Z",
"update_time": "2026-04-05T08:00:15Z"
}
}
Error Codes
| Error Code | HTTP Status | Description | Resolution |
|---|---|---|---|
6013 | 400 | Missing file_ids, or missing main_title when mode is full / text | Add the required fields |
6046 | 400 | The title has characters the cover fonts can't draw, such as emoji | Remove them and try again; nothing is charged |
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 |