Smart Collage / Cover

Generate collage or cover layouts from multiple images and title text. Suitable for social content production and cover generation.

Prefer not to code? Upload files and process them in Gitruck Toolbox. Just sign in; results match this API.Open Cover & Thumbnail Maker →

Example Outputs

Smart collage or cover example 1Smart collage or cover example 2Smart collage or cover example 3

Create Task

Basic Information

ItemValue
Request MethodPOST
Request Path/task/image_classic_template
Content-Typeapplication/json
AuthenticationRaw API key in the Authorization header

Request Body

ParameterTypeRequiredDefaultDescription
file_idsarrayYes-Array of image file IDs
main_titlestringFor full / text-Main title text; see Title Characters below. Can be omitted when mode is image
sub_titlestringNo""Subtitle text; same characters as main_title
modestringNo"full"Generation mode: full (cover = collage + title), image (collage only), or text (title layer only)
aspectstringNo"3:4"Aspect ratio, such as "1:1", "3:4", "4:3", "9:16", or "16:9"
qualitystringNo"1080p"Output quality
output_pic_countnumberNo0Number 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_countnumberNo1Number 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

ItemValue
Request MethodGET
Request Path/task/image_classic_template/{task_id}
AuthenticationRaw API key in the Authorization header

Output Result (output_result)

ParameterTypeDescription
render_file_download_url_listarrayCover (collage + title) download URLs, JPG; empty when mode is image
render_file_id_listarrayCover file IDs, in the same order
pic_file_download_url_listarrayPlain collage download URLs, JPG
pic_file_id_listarrayPlain collage file IDs
text_file_download_url_listarrayTransparent title layer download URLs, PNG, for laying out yourself; empty when mode is image
text_file_id_listarrayTitle 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 CodeHTTP StatusDescriptionResolution
6013400Missing file_ids, or missing main_title when mode is full / textAdd the required fields
6046400The title has characters the cover fonts can't draw, such as emojiRemove them and try again; nothing is charged
6004404File not foundVerify each value in file_ids
6017400A 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 chargedCheck each image, re-export the faulty one as JPEG / PNG and upload it again
6502401Authentication failedCheck the Authorization header
6202402Insufficient balanceRecharge 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