randydev commited on
Commit
b37c4d7
·
verified ·
1 Parent(s): a908b3e

Update plugins/fluxai.js

Browse files
Files changed (1) hide show
  1. plugins/fluxai.js +21 -1
plugins/fluxai.js CHANGED
@@ -83,17 +83,21 @@ FluxRoutes.get('/api/v1/flux/black-forest-labs/flux-1-schnell', authenticateApiK
83
  * application/json:
84
  * schema:
85
  * type: object
 
 
86
  * properties:
87
  * query:
88
  * type: string
89
  * description: The input query for image generation.
 
90
  * parameters:
91
  * - in: header
92
  * name: x-api-key
93
  * required: true
94
- * description: API key for authentication
95
  * schema:
96
  * type: string
 
97
  * responses:
98
  * 200:
99
  * description: A successfully processed image.
@@ -104,8 +108,24 @@ FluxRoutes.get('/api/v1/flux/black-forest-labs/flux-1-schnell', authenticateApiK
104
  * format: binary
105
  * 400:
106
  * description: Missing query parameter.
 
 
 
 
 
 
 
 
107
  * 500:
108
  * description: Internal server error.
 
 
 
 
 
 
 
 
109
  */
110
  FluxRoutes.post("/api/v1/flux/fluxai-ai", authenticateApiKey, apiLimiter, async (req, res) => {
111
  try {
 
83
  * application/json:
84
  * schema:
85
  * type: object
86
+ * required:
87
+ * - query
88
  * properties:
89
  * query:
90
  * type: string
91
  * description: The input query for image generation.
92
+ * example: "A beautiful sunset over the mountains"
93
  * parameters:
94
  * - in: header
95
  * name: x-api-key
96
  * required: true
97
+ * description: API key for authentication.
98
  * schema:
99
  * type: string
100
+ * example: "your-api-key-here"
101
  * responses:
102
  * 200:
103
  * description: A successfully processed image.
 
108
  * format: binary
109
  * 400:
110
  * description: Missing query parameter.
111
+ * content:
112
+ * application/json:
113
+ * schema:
114
+ * type: object
115
+ * properties:
116
+ * error:
117
+ * type: string
118
+ * example: "Query parameter is missing"
119
  * 500:
120
  * description: Internal server error.
121
+ * content:
122
+ * application/json:
123
+ * schema:
124
+ * type: object
125
+ * properties:
126
+ * error:
127
+ * type: string
128
+ * example: "Internal server error"
129
  */
130
  FluxRoutes.post("/api/v1/flux/fluxai-ai", authenticateApiKey, apiLimiter, async (req, res) => {
131
  try {