Smart Collage / Cover

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

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_titlestringYes-Main title text
sub_titlestringNo""Subtitle text
modestringNo"full"Generation mode: full, image, or text
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 pure-image outputs, up to 20
output_text_countnumberNo1Number of text-image outputs, up to 20

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
filesarrayGenerated cover file list
files[].file_idstringGenerated file ID
files[].download_urlstringDownload path for the generated file

Success Example

{
  "code": 200,
  "msg": "success",
  "data": {
    "task_id": "537489015178248",
    "status": "completed",
    "progress": 100,
    "output_result": {
      "files": [
        {
          "file_id": "537489015178249",
          "download_url": "/download/a1/cover_1.jpg"
        },
        {
          "file_id": "537489015178250",
          "download_url": "/download/a1/cover_2.jpg"
        }
      ]
    },
    "create_time": "2026-04-05T08:00:00Z",
    "update_time": "2026-04-05T08:00:15Z"
  }
}

Error Codes

Error CodeHTTP StatusDescriptionResolution
6013400Missing file_ids or main_titleAdd the required fields
6004404File not foundVerify each value in file_ids
6502401Authentication failedCheck the Authorization header
6202402Insufficient balanceRecharge in the Dashboard