update README

This commit is contained in:
Vinlic 2024-03-27 10:49:32 +08:00
parent 05d106f956
commit 3fc49512af

View File

@ -185,7 +185,7 @@ pm2 stop qwen-free-api
header 需要设置 Authorization 头部: header 需要设置 Authorization 头部:
``` ```
Authorization: Bearer [refresh_token] Authorization: Bearer [login_tongyi_ticket]
``` ```
请求数据: 请求数据:
@ -229,6 +229,39 @@ Authorization: Bearer [refresh_token]
} }
``` ```
### AI绘图
对话补全接口与openai的 [images-create-api](https://platform.openai.com/docs/api-reference/images/create) 兼容。
**POST /v1/images/generations**
header 需要设置 Authorization 头部:
```
Authorization: Bearer [login_tongyi_ticket]
```
请求数据:
```json
{
// 可以乱填
"model": "wanxiang",
"prompt": "一只可爱的猫"
}
```
响应数据:
```json
{
"created": 1711507734,
"data": [
{
"url": "https://wanx.alicdn.com/wanx/1111111111/text_to_image/7248e85cfda6491aae59c54e7e679b17_0.png"
}
]
}
```
### 文档解读 ### 文档解读
正在开发... 正在开发...