AI艺术字调用示例
,系
0.调用关系
1.注意事项
1.平台不提供图片和数据存储服务(需要自己转存服务)
2.需要自己对关键词进行审核(违反法律法规由应用方负责)
3.需要对生成图片进行审核(违反法律法规由应用方负责)
2.点数消耗规则
光影文字1点/艺术字1点/隐藏文字1点
3.参数说明
3.1 prompt参数说明
--iw (取值范围 0 - 1, 保留两位小数) 示例: --iw 0.45 值越小艺术性越强,但是可扫码率会降低
--seed (取值范围1 - 999999999 ) 示例: --seed 123 用来固定画面,seed 与其他参数都相同时,就会生成一模一样的图片
--type (艺术字使用,渲染模型) 示例: --type 1
3.2 类型枚举
textart 艺术字
texthidden 隐藏文字
textshadow 光影文字
3.3 模型枚举
使用模型列表接口获取
3.4 模版枚举
使用模版列表接口获取
3.5 比例
[{"value":3,"label":"9:16"},{"value":5,"label":"3:4"},{"value":1,"label":"1:1"},{"value":6,"label":"4:3"},{"value":4,"label":"16:9"}]
9:16即宽比高为9比16
3.6渲染模型枚举
[{"value":1,"name":"概念","previewImg":"https://cdn.mewx.art/images/static/qr-template-preview/c4e09c34-8d90-4f90-9f70-c980fbb638d8.jpeg","tips":"更高的想象力"},{"value":5,"name":"软边缘","previewImg":"https://cdn.mewx.art/images/static/qr-template-preview/53ae478f-d5a1-48e8-95ed-8479048dc98a.jpeg","tips":"加强边缘细节"},{"value":3,"name":"深度","previewImg":"https://cdn.mewx.art/images/static/qr-template-preview/9f1571ae-0935-4ab5-be17-c37b28c8ebb2.jpeg","tips":"更注重空间关系"},{"value":4,"name":"精确","previewImg":"https://cdn.mewx.art/images/static/qr-template-preview/f81c2f44-cd2e-4036-80b3-74c12c4dc365.jpeg","tips":"精确保留轮廓,发挥较少的想象力"},{"value":2,"name":"轮廓","previewImg":"https://cdn.mewx.art/images/static/qr-template-preview/a0b98b6e-be5c-410f-93a0-dc0f2b902e51.jpeg","tips":"保留轮廓的同时发挥一定想象力"}]
4.调用示例
1.光影文字 - 使用模版
curl --location --request POST 'https://open-qr.mewx.art/api/v1/images/shadow/generate' \
--header 'Authorization: {你的token}' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "--iw 0.8",
"text_image": "{base64}",
"template_id": 17,
"ratio": 3,
"type": "textshadow",
"callback_url": "xxxx"
}'
2.光影文字 - 自定义prompt调用
curl --location --request POST 'https://open-qr.mewx.art/api/v1/images/shadow/generate' \
--header 'Authorization: {你的token}' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "a girl --iw 0.8",
"text_image": "{base64}",
"model": "71",
"ratio": 3,
"type": "textshadow",
"callback_url": "xxxx"
}'
3.艺术字调用 - 使用模版
curl --location --request POST 'https://open-qr.mewx.art/api/v1/images/shadow/generate' \
--header 'Authorization: Bearer mx-FCFFCogCqlD78riSWLVlRGeG5eLv0tb1Tm2UZP2yLhfpEd97' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "--iw 0.8",
"text_image": "",
"template_id": 80,
"ratio": 1,
"type": "textart",
"callback_url": "http://127.0.0.1:2222"
}'
修改于 2024-12-26 15:09:32