Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinlic committed Mar 27, 2024
1 parent 05d106f commit 3fc4951
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ pm2 stop qwen-free-api
header 需要设置 Authorization 头部:

```
Authorization: Bearer [refresh_token]
Authorization: Bearer [login_tongyi_ticket]
```

请求数据:
Expand Down Expand Up @@ -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"
}
]
}
```

### 文档解读

正在开发...
Expand Down

0 comments on commit 3fc4951

Please sign in to comment.