MewXAI星月熊-开放API
  1. AI艺术二维码
MewXAI星月熊-开放API
  • MewXAI开放API使用手册
  • 开放API
    • 图片融合
      • 生成图片融合示例
      • 生成图片融合
    • AI艺术二维码
      • 艺术二维码调用示例
      • 生成图片
        POST
    • AI艺术字(艺术、光影、隐藏文字)
      • AI艺术字调用示例
      • 生成创意文字
    • MJ
      • 作图示例
      • MJ作图
      • MJ动作(废弃)
    • MX绘画
      • 开放API通用接口
        • 校验接口
        • 计算点数
      • 生成类接口
        • MX
          • 生成示例(必看)
          • 生成图片接口MX
          • 模型列表
          • 融合模型列表
        • Cute
          • 生成示例(必看)
          • 生成图片接口Cute
          • 融合模型列表
    • 回调示例
      POST
    • 查询详情
      GET
    • 余额查询
      GET
    • 获取模版列表
      GET
    • 获取模型列表
      GET
  • 放大
    • 高清放大接口
      POST
  1. AI艺术二维码

艺术二维码调用示例

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
上一页
生成图片融合
下一页
生成图片
Built with