From 3fc49512af6ebce3386a16fb439e2d17b2c8c38b Mon Sep 17 00:00:00 2001 From: Vinlic Date: Wed, 27 Mar 2024 10:49:32 +0800 Subject: [PATCH] update README --- README.md | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 27d10d8..1e30668 100644 --- a/README.md +++ b/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" + } + ] +} +``` + ### 文档解读 正在开发...