mirror of
https://github.com/LLM-Red-Team/qwen-free-api.git
synced 2024-12-23 02:49:20 +08:00
update README
This commit is contained in:
parent
05d106f956
commit
3fc49512af
35
README.md
35
README.md
@ -185,7 +185,7 @@ pm2 stop qwen-free-api
|
||||
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"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### 文档解读
|
||||
|
||||
正在开发...
|
||||
|
Loading…
Reference in New Issue
Block a user