1.请求地址: https://lytcreate.com/api/paint/
2.请求方式: POST
3.body格式:json
4.body请求体:使用说明
{
"token": "个人中心获取 -- 非openai的key",
"question": "绘画描述"
}
说明:
token获取方式:访问首页(https://lytcreate.com),注册后登陆,访问后台,进入个人信息查看 token
5.响应体格式:json,图片大小 512*512 px
6.响应体:
{
"code": 200/403/405,
"question": "绘画描述",
"answer": "生成图片的url",
"message": "响应提示信息",
"api_num": 999(剩余可请求次数)
}
7.请求实例(python)
import requests
url = "https://lytcreate.com/api/paint/"
body = {
"token": "xxxxxxxxx-token",
"question": "蓝蓝的天上白云飘"
}
res = requests.post(url, json=body)
print(json.loads(res.content))
有任何疑问请加入QQ交流群:733690997