Source: 获取模板 · Category: Interface — AI Image Generation (接口-AI生图) · Updated 2026-09-22 16:32:06
English Translation
Get Templates
Select an available template — obtain the template number and its corresponding effect.
What to prepare before starting?
Prepare your merchant ID, merchant secret key, and the image-generation callback URL. AI uses merchant credentials, not the printer-device key.
AI tasks are asynchronous: after the task ID is returned, wait for the callback to receive the synthesized image, then submit a print task separately. A successful image generation does not automatically complete printing.
Next: Generate the merchant signature →
Queries the basic information of AI templates in the service provider's template library, used by agents to transform and create original images with AI technology. After calling, the platform returns the model ID, English name, style name, points consumed, image URL, and the associated style-type array, providing the necessary parameters such as
template_id(corresponding toid) for creating an AI task later.
Interface Information
| Item | Value |
|---|---|
| Endpoint | http://www.colorpark.cn/api/ai/template |
| Method | POST |
Request Parameters
| Parameter | Example Value | Required | Description |
|---|---|---|---|
partner_id |
2025000001 |
Yes | Merchant ID provided by the Open Platform (view in the Open Platform: Merchant Management → My Merchant → Number) |
once |
8305 |
Yes | Random value used when generating the encrypted signature |
time |
1646790335 |
Yes | Timestamp used when generating the encrypted signature |
sign |
9ce3ce7a3fccaf3d7715bd7e9bb1dc1c |
Yes | Signature string obtained from the "Generate Merchant Signature" interface |
Response Result
Note: The source table header repeats "参数名 参数名"; normalized below as Parameter / Example Value / Description.
| Parameter | Example Value | Description |
|---|---|---|
code |
0 |
Result status code — 0 on success, 1 on failure |
msg |
请求成功 (Request successful) |
Result description, e.g. "Request successful" |
data |
— | Object containing the template details (fields below) |
data.id |
6 |
Model ID |
data.dict_id |
61 |
60-AI server |
data.model_name |
qwen-image-edit-plus |
Model English name |
data.type |
pic |
Style type corresponding to the model |
data.name |
国风古画 (Traditional Chinese Painting) |
Style name corresponding to the model |
data.points |
5 |
Points consumed |
data.image |
/colorcloud/ai-template/903e97e1592a9a64554b52836e1c81abf9ed18ce.jpg |
Image URL |
data.oss_image |
https://rfccrm.oss-cn-shenzhen.aliyuncs.com/colorcloud/ai-template/903e97e1592a9a64554b52836e1c81abf9ed18ce.jpg |
Server-stored image link |
data.style_index |
[] |
Associated style types of the model, returned as an array (see mapping below) |
data.model_name_alias |
景点打卡 (Scenic Check-in) |
Model remark |
style_index array mapping:
| Index | Style Name |
|---|---|
| 0 | Retro Comic (复古漫画) |
| 1 | 3D Fairy Tale (3D 童话) |
| 2 | Anime / 2D (二次元) |
| 3 | Fresh & Light (小清新) |
| 4 | Future Tech (未来科技) |
| 5 | Traditional Ink Style (国画古风) |
| 6 | General's Battles (将军百战) |
| 7 | Vibrant Cartoon (炫彩卡通) |
| 8 | Elegant Chinese Style (清雅国风) |
| 9 | New Year Greeting (喜迎新年) |
| 14 | Chinese Gongbi (国风工笔) |
| 15 | Happy New Year (恭贺新禧) |
| 30 | Fairy Tale World (童话世界) |
| 31 | Clay World (黏土世界) |
| 32 | Pixel World (像素世界) |
| 33 | Adventure World (冒险世界) |
| 34 | Japanese Anime World (日漫世界) |
| 35 | 3D World (3D 世界) |
| 36 | Anime World (二次元世界) |
| 37 | Hand-drawn World (手绘世界) |
| 38 | Crayon World (蜡笔世界) |
| 39 | Fridge Magnet World (冰箱贴世界) |
| 40 | Badge World (吧唧世界) |
If you encounter unsolvable issues while debugging the device, contact the cloud-printing representative for troubleshooting. Contact details: Tel: 137-5177-4454 [WeChat same number] Email: info@ColorPark.cn