diff --git a/README.md b/README.md index 2f7eafb..93bdd12 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ This project stores [Plugins](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web ## Plugins +- [Dalle3](./plugins/dalle) - [WolframAlpha plugin](./plugins/wolframalpha) - [ArxivSearch](./plugins/arxivsearch) - [DuckDuckGoLiteSearch](./plugins/duckduckgolite) diff --git a/plugins/dalle/README.md b/plugins/dalle/README.md new file mode 100644 index 0000000..5affd76 --- /dev/null +++ b/plugins/dalle/README.md @@ -0,0 +1,25 @@ +# Dalle3 + +> openai's dall-e image generator. + +## Schema +[openapi.json](./openapi.json) + +## Servers + +`https://api.openai.com` + +## Operations + +1. Dalle3; + +## Authentication + +type: bearer +location: header + +## Preview + +![Preview](./preview.png) + + diff --git a/plugins/dalle/openapi.json b/plugins/dalle/openapi.json new file mode 100644 index 0000000..f7c5cda --- /dev/null +++ b/plugins/dalle/openapi.json @@ -0,0 +1,58 @@ +{ + "openapi": "3.1.0", + "info": { + "title": "Dalle3", + "version": "1.0.0" + }, + "servers": [ + { + "url": "https://api.openai.com" + } + ], + "paths": { + "/v1/images/generations": { + "post": { + "operationId": "Dalle3", + "x-openai-isConsequential": false, + "summary": "openai's dall-e image generator.", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["model", "n", "prompt", "size", "quality", "style"], + "properties": { + "model": { + "type": "string", + "description": "model name, required and value is `dall-e-3`." + }, + "n": { + "type": "number", + "description": "value is `1`" + }, + "prompt": { + "type": "string", + "description": "A text description of the desired image(s). input must be a english prompt." + }, + "size": { + "type": "string", + "description": "images size, can be `1024x1024`, `1024x1792`, `1792x1024`. default value is `1024x1024`" + }, + "quality": { + "type": "string", + "description": "images quality, can be `standard`, `hd`. default value is `hd`" + }, + "style": { + "type": "string", + "description": "images style, can be `vivid`, `natural`. default value is `vivid`" + } + } + } + } + } + } + } + } + } +} diff --git a/plugins/dalle/preview.png b/plugins/dalle/preview.png new file mode 100644 index 0000000..bcdda6b Binary files /dev/null and b/plugins/dalle/preview.png differ