
Image Merge
API Overview
Our self-deployed open-source solution
API Console
Log in to explore more features! Click to Log In
API Reference (1)
| API Description | API Endpoint | Request Method | Stability | Parameter Description |
|---|---|---|---|---|
Image_Merge | POST | Stable | View Details | |
Document Details Merge Images Request Parameters Header ParametersAuthorizationstringRequired Example Value: Bearer {{YOUR_API_KEY}}Request Body application/jsonimagesarray[string]Required Image link array, must contain at least one image link Example Value: [
"https://file.302ai.cn/gpt/imgs/20250728/compressed_7845edf3b9374d0b946d16f58c677091.jpeg",
"https://file.302ai.cn/gpt/imgs/20250728/compressed_cf0196b13aca415897180899c308f53e.jpeg"
]frame_borderanyOfOptional Border size, unit: pixels (px) >= 0Default Value: 0frame_border_colorsanyOfOptional Border color array. Takes effect when frame_border is greater than zero. If the length of this array does not match the length of the image URL array, it will be automatically filled randomly. Example Value: [
"#DC3545",
"#007BFF"
]Example Value: [
"#DC3545",
"#007BFF"
]image_labelsanyOfOptional Number of image label texts. Takes effect when frame_border is greater than zero. If the length of this array is inconsistent with the length of the image URL array, it will be automatically filled randomly. Example Value: [
"image1",
"image2"
]Example Value: [
"image1",
"image2"
]image_labels_bg_coloranyOfOptional Label background color, hexadecimal (default red #DC3545), effective when frame_border is greater than zero Default Value: #DC3545image_labels_text_coloranyOfOptional Label text color, hexadecimal (default white #FFFFFF), effective when frame_border is greater than zero Default Value: #FFFFFFimage_labels_font_sizeanyOfOptional Label font size (default 20px), effective when frame_border is greater than zero Default Value: 20orientationanyOfOptional Image arrangement direction, horizontal or vertical Enum Value: horizontalverticalDefault Value: horizontalresize_strategyanyOfOptional Scaling strategies; reduce_larger: scale down larger images | magnify_smaller: enlarge smaller images; crop_larger: crop larger images Enum Value: reduce_largermagnify_smallercrop_largerDefault Value: reduce_largerkeep_aspect_ratioanyOfOptional Whether to maintain the aspect ratio of the image Default Value: truealignmentanyOfOptional Image alignment options: start | center | end Enum Value: startcenterendDefault Value: centeroutput_formatanyOfOptional Output image formats: png | jpg | webp; when webp is selected, if the final dimensions exceed the webp limit (16383×16383), it will automatically convert to png format. Enum Value: pngjpgwebpDefault Value: webpoutput_qualityanyOfOptional Output image quality, 1-100, default is 90. Only effective for jpg and webp formats. >= 1 <= 100Default Value: 90 | ||||
API Pricing
| Model | Description | 302.AI Price |
|---|
Image_Merge | Image_Merge |
|