艺术二维码调用示例
0.调用关系
1.所有参数说明
--v (取值枚举 2 1.1 1) 示例:--v 2 --v 1.1
--iw (取值范围 0 - 1, 保留两位小数) 示例: --iw 0.45
--seed (取值范围1 - 999999999 ) 示例: --seed 123
--shape (码眼选择范围) ["square", "circle", "plus", "box", "octagon", "random", "tiny-plus"], 示例 --shape random ,默认为 random
--ar(尺寸选择) 范围 ["1:1", "9:16", "16:9", "3:4","4:3"] 示例 --ar 1:1 ,默认为 1:1
组合规则:
{关键词} --xx xx
示例:
一朵花 --v 2
2.点数消耗规则
v3是5点
v2是5点
v1.1是1点
v1是1点
3.模型枚举
[{"name":"卡通插画","value":"67"},{"name":"糖果头像","value":"51"},{"name":"水墨画","value":"69"},{"name":"美漫","value":"70"},{"name":"彩漫4","value":"74"}]
4.调用示例
1.自定义调用- 普通示例
curl --location --request POST 'https://open-qr.mewx.art/api/v1/images/generate' \
--header 'Authorization: Bearer {你的token}' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "a flower --v 1",
"model": "51",
"qr_content": "https://qr.mewx.art",
"callback_url": "http://127.0.0.1:1234"
}'
2.自定义调用 - 不同版本
curl --location --request POST 'https://open-qr.mewx.art/api/v1/images/generate' \
--header 'Authorization: Bearer {你的token}' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "a flower --v 3",
"model": "51",
"qr_content": "https://qr.mewx.art",
"callback_url": "http://127.0.0.1:1234"
}'
3.自定义调用 -二维码强度
curl --location --request POST 'https://open-qr.mewx.art/api/v1/images/generate' \
--header 'Authorization: Bearer {你的token}' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "a flower, --iw 0.4",
"model": "51",
"qr_content": "https://qr.mewx.art",
"callback_url": "http://xxxxx/api/v1/callback"
}'
4.模版调用 - 普通示例
curl --location --request POST 'https://open-qr.mewx.art/api/v1/images/generate' \
--header 'Authorization: Bearer {你的token}' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "",
"template_id": 7,
"qr_content": "https://qr.mewx.art",
"callback_url": "http://xxxxx/api/v1/callback"
}'
5.模版调用 - 二维码强度
curl --location --request POST 'https://open-qr.mewx.art/api/v1/images/generate' \
--header 'Authorization: Bearer {你的token}' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "--iw 0.4",
"template_id": 7,
"qr_content": "https://qr.mewx.art",
"callback_url": "http://xxxxx/api/v1/callback"
}'
6.自定义调用 - 上传图片
curl --location --request POST 'https://open-qr.mewx.art/api/v1/images/generate' \
--header 'Authorization: Bearer {你的token}' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "a flower --v 2",
"model": "51",
"qr_image": "{base64编码}",
"callback_url": "http://xxxxx/api/v1/callback"
}'
7.不同码眼调用
curl --location --request POST 'https://open-qr.mewx.art/api/v1/images/generate' \
--header 'Authorization: Bearer {你的token}' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "a flower --v 2 --shape octagon",
"model": "51",
"qr_content": "https://qr.mewx.art",
"callback_url": "http://xxxxx/api/v1/callback"
}'
8.不同版本
curl --location --request POST 'https://open-qr.mewx.art/api/v1/images/generate' \
--header 'Authorization: Bearer {你的token}' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "",
"template_id": 7,
"qr_content": "https://qr.mewx.art",
"callback_url": "http://xxxxx/api/v1/callback"
}
修改于 2024-01-10 15:22:42