@@ -14,28 +14,19 @@ public class ActiveMediaModels : IGet, IReturn<StringsResponse> {}
14
14
[ Description ( "Transcribe audio content to text" ) ]
15
15
public class SpeechToText : IGeneration , IReturn < GenerationResponse >
16
16
{
17
- [ ApiMember ( Description = "The audio stream containing the speech to be transcribed" , ParameterType = "body" ) ]
17
+ [ ApiMember ( Description = "The audio stream containing the speech to be transcribed" ) ]
18
18
[ Description ( "The audio stream containing the speech to be transcribed" ) ]
19
19
[ Required ]
20
20
[ Input ( Type = "file" ) ]
21
21
public Stream Speech { get ; set ; }
22
22
23
- [ ApiMember ( Description = "Optional client-provided identifier for the request" , ParameterType = "query" ) ]
23
+ [ ApiMember ( Description = "Optional client-provided identifier for the request" ) ]
24
24
[ Description ( "Optional client-provided identifier for the request" ) ]
25
25
public string ? RefId { get ; set ; }
26
26
27
- [ ApiMember ( Description = "Optional queue or topic to reply to" , ParameterType = "query" ) ]
28
- [ Description ( "Optional queue or topic to reply to" ) ]
29
- public string ? ReplyTo { get ; set ; }
30
-
31
- [ ApiMember ( Description = "Tag to identify the request" , ParameterType = "query" ) ]
27
+ [ ApiMember ( Description = "Tag to identify the request" ) ]
32
28
[ Description ( "Tag to identify the request" ) ]
33
29
public string ? Tag { get ; set ; }
34
-
35
- [ ApiMember ( Description = "Optional state to associate with the request" , ParameterType = "query" ) ]
36
- [ Description ( "Optional state to associate with the request" ) ]
37
- [ Input ( Type = "hidden" ) ]
38
- public string ? State { get ; set ; }
39
30
}
40
31
41
32
[ ValidateApiKey ]
@@ -44,32 +35,23 @@ public class SpeechToText : IGeneration, IReturn<GenerationResponse>
44
35
[ Description ( "Generate speech audio from text input" ) ]
45
36
public class TextToSpeech : IGeneration , IReturn < GenerationResponse >
46
37
{
47
- [ ApiMember ( Description = "The text to be converted to speech" , ParameterType = "body" ) ]
38
+ [ ApiMember ( Description = "The text to be converted to speech" ) ]
48
39
[ Description ( "The text to be converted to speech" ) ]
49
40
[ Required ]
50
41
public string Text { get ; set ; }
51
42
52
- [ ApiMember ( Description = "Optional seed for reproducible results in speech generation" , ParameterType = "query" ) ]
43
+ [ ApiMember ( Description = "Optional seed for reproducible results in speech generation" ) ]
53
44
[ Description ( "Optional seed for reproducible results in speech generation" ) ]
54
45
[ Range ( 0 , int . MaxValue ) ]
55
46
public int ? Seed { get ; set ; }
56
47
57
- [ ApiMember ( Description = "Optional client-provided identifier for the request" , ParameterType = "query" ) ]
48
+ [ ApiMember ( Description = "Optional client-provided identifier for the request" ) ]
58
49
[ Description ( "Optional client-provided identifier for the request" ) ]
59
50
public string ? RefId { get ; set ; }
60
51
61
- [ ApiMember ( Description = "Optional queue or topic to reply to" , ParameterType = "query" ) ]
62
- [ Description ( "Optional queue or topic to reply to" ) ]
63
- public string ? ReplyTo { get ; set ; }
64
-
65
- [ ApiMember ( Description = "Tag to identify the request" , ParameterType = "query" ) ]
52
+ [ ApiMember ( Description = "Tag to identify the request" ) ]
66
53
[ Description ( "Tag to identify the request" ) ]
67
54
public string ? Tag { get ; set ; }
68
-
69
- [ ApiMember ( Description = "Optional state to associate with the request" , ParameterType = "query" ) ]
70
- [ Description ( "Optional state to associate with the request" ) ]
71
- [ Input ( Type = "hidden" ) ]
72
- public string ? State { get ; set ; }
73
55
}
74
56
75
57
[ ValidateApiKey ]
@@ -78,57 +60,48 @@ public class TextToSpeech : IGeneration, IReturn<GenerationResponse>
78
60
[ Description ( "Create an image based on a text prompt" ) ]
79
61
public class TextToImage : IGeneration , IReturn < GenerationResponse >
80
62
{
81
- [ ApiMember ( Description = "The main prompt describing the desired image" , ParameterType = "body" ) ]
63
+ [ ApiMember ( Description = "The main prompt describing the desired image" ) ]
82
64
[ Description ( "The main prompt describing the desired image" ) ]
83
65
[ ValidateNotEmpty ]
84
66
[ Input ( Type = "textarea" ) ]
85
67
public string PositivePrompt { get ; set ; }
86
68
87
- [ ApiMember ( Description = "Optional prompt specifying what should not be in the image" , ParameterType = "body" ) ]
69
+ [ ApiMember ( Description = "Optional prompt specifying what should not be in the image" ) ]
88
70
[ Description ( "Optional prompt specifying what should not be in the image" ) ]
89
71
[ Input ( Type = "textarea" ) ]
90
72
public string ? NegativePrompt { get ; set ; }
91
73
92
- [ ApiMember ( Description = "Desired width of the generated image" , ParameterType = "query" ) ]
74
+ [ ApiMember ( Description = "Desired width of the generated image" ) ]
93
75
[ Description ( "Desired width of the generated image" ) ]
94
76
[ Range ( 64 , 2048 ) ]
95
77
public int ? Width { get ; set ; }
96
78
97
- [ ApiMember ( Description = "Desired height of the generated image" , ParameterType = "query" ) ]
79
+ [ ApiMember ( Description = "Desired height of the generated image" ) ]
98
80
[ Description ( "Desired height of the generated image" ) ]
99
81
[ Range ( 64 , 2048 ) ]
100
82
public int ? Height { get ; set ; }
101
83
102
- [ ApiMember ( Description = "Number of images to generate in a single batch" , ParameterType = "query" ) ]
84
+ [ ApiMember ( Description = "Number of images to generate in a single batch" ) ]
103
85
[ Description ( "Number of images to generate in a single batch" ) ]
104
86
[ Range ( 1 , 10 ) ]
105
87
public int ? BatchSize { get ; set ; }
106
88
107
- [ ApiMember ( Description = "The AI model to use for image generation" , ParameterType = "query" ) ]
89
+ [ ApiMember ( Description = "The AI model to use for image generation" ) ]
108
90
[ Description ( "The AI model to use for image generation" ) ]
109
91
public string ? Model { get ; set ; }
110
92
111
- [ ApiMember ( Description = "Optional seed for reproducible results" , ParameterType = "query" ) ]
93
+ [ ApiMember ( Description = "Optional seed for reproducible results" ) ]
112
94
[ Description ( "Optional seed for reproducible results" ) ]
113
95
[ Range ( 0 , int . MaxValue ) ]
114
96
public int ? Seed { get ; set ; }
115
97
116
- [ ApiMember ( Description = "Optional client-provided identifier for the request" , ParameterType = "query" ) ]
98
+ [ ApiMember ( Description = "Optional client-provided identifier for the request" ) ]
117
99
[ Description ( "Optional client-provided identifier for the request" ) ]
118
100
public string ? RefId { get ; set ; }
119
101
120
- [ ApiMember ( Description = "Optional queue or topic to reply to" , ParameterType = "query" ) ]
121
- [ Description ( "Optional queue or topic to reply to" ) ]
122
- public string ? ReplyTo { get ; set ; }
123
-
124
- [ ApiMember ( Description = "Tag to identify the request" , ParameterType = "query" ) ]
102
+ [ ApiMember ( Description = "Tag to identify the request" ) ]
125
103
[ Description ( "Tag to identify the request" ) ]
126
104
public string ? Tag { get ; set ; }
127
-
128
- [ ApiMember ( Description = "Optional state to associate with the request" , ParameterType = "query" ) ]
129
- [ Description ( "Optional state to associate with the request" ) ]
130
- [ Input ( Type = "hidden" ) ]
131
- public string ? State { get ; set ; }
132
105
}
133
106
134
107
[ ValidateApiKey ]
@@ -137,54 +110,45 @@ public class TextToImage : IGeneration, IReturn<GenerationResponse>
137
110
[ Description ( "Create a new image based on an existing image and a text prompt" ) ]
138
111
public class ImageToImage : IGeneration , IReturn < GenerationResponse >
139
112
{
140
- [ ApiMember ( Description = "The image to use as input" , ParameterType = "body" ) ]
113
+ [ ApiMember ( Description = "The image to use as input" ) ]
141
114
[ Description ( "The image to use as input" ) ]
142
115
[ Required ]
143
116
[ Input ( Type = "file" ) ]
144
117
public Stream Image { get ; set ; }
145
118
146
- [ ApiMember ( Description = "Prompt describing the desired output" , ParameterType = "body" ) ]
119
+ [ ApiMember ( Description = "Prompt describing the desired output" ) ]
147
120
[ Description ( "Prompt describing the desired output" ) ]
148
121
[ ValidateNotEmpty ]
149
122
[ Input ( Type = "textarea" ) ]
150
123
public string PositivePrompt { get ; set ; }
151
124
152
- [ ApiMember ( Description = "Negative prompt describing what should not be in the image" , ParameterType = "body" ) ]
125
+ [ ApiMember ( Description = "Negative prompt describing what should not be in the image" ) ]
153
126
[ Description ( "Negative prompt describing what should not be in the image" ) ]
154
127
[ Input ( Type = "textarea" ) ]
155
128
public string ? NegativePrompt { get ; set ; }
156
129
157
- [ ApiMember ( Description = "Optional specific amount of denoise to apply" , ParameterType = "query" ) ]
130
+ [ ApiMember ( Description = "Optional specific amount of denoise to apply" ) ]
158
131
[ Description ( "Optional specific amount of denoise to apply" ) ]
159
132
[ Range ( 0 , 1 ) ]
160
133
public float ? Denoise { get ; set ; }
161
134
162
- [ ApiMember ( Description = "Number of images to generate in a single batch" , ParameterType = "query" ) ]
135
+ [ ApiMember ( Description = "Number of images to generate in a single batch" ) ]
163
136
[ Description ( "Number of images to generate in a single batch" ) ]
164
137
[ Range ( 1 , 10 ) ]
165
138
public int ? BatchSize { get ; set ; }
166
139
167
- [ ApiMember ( Description = "Optional seed for reproducible results in image generation" , ParameterType = "query" ) ]
140
+ [ ApiMember ( Description = "Optional seed for reproducible results in image generation" ) ]
168
141
[ Description ( "Optional seed for reproducible results in image generation" ) ]
169
142
[ Range ( 0 , int . MaxValue ) ]
170
143
public int ? Seed { get ; set ; }
171
144
172
- [ ApiMember ( Description = "Optional client-provided identifier for the request" , ParameterType = "query" ) ]
145
+ [ ApiMember ( Description = "Optional client-provided identifier for the request" ) ]
173
146
[ Description ( "Optional client-provided identifier for the request" ) ]
174
147
public string ? RefId { get ; set ; }
175
148
176
- [ ApiMember ( Description = "Optional queue or topic to reply to" , ParameterType = "query" ) ]
177
- [ Description ( "Optional queue or topic to reply to" ) ]
178
- public string ? ReplyTo { get ; set ; }
179
-
180
- [ ApiMember ( Description = "Tag to identify the request" , ParameterType = "query" ) ]
149
+ [ ApiMember ( Description = "Tag to identify the request" ) ]
181
150
[ Description ( "Tag to identify the request" ) ]
182
151
public string ? Tag { get ; set ; }
183
-
184
- [ ApiMember ( Description = "Optional state to associate with the request" , ParameterType = "query" ) ]
185
- [ Description ( "Optional state to associate with the request" ) ]
186
- [ Input ( Type = "hidden" ) ]
187
- public string ? State { get ; set ; }
188
152
}
189
153
190
154
[ ValidateApiKey ]
@@ -193,33 +157,24 @@ public class ImageToImage : IGeneration, IReturn<GenerationResponse>
193
157
[ Description ( "Increase the resolution and quality of an input image" ) ]
194
158
public class ImageUpscale : IGeneration , IReturn < GenerationResponse >
195
159
{
196
- [ ApiMember ( Description = "The image to upscale" , ParameterType = "body" ) ]
160
+ [ ApiMember ( Description = "The image to upscale" ) ]
197
161
[ Description ( "The image to upscale" ) ]
198
162
[ Required ]
199
163
[ Input ( Type = "file" ) ]
200
164
public Stream Image { get ; set ; }
201
165
202
- [ ApiMember ( Description = "Optional seed for reproducible results in image generation" , ParameterType = "query" ) ]
166
+ [ ApiMember ( Description = "Optional seed for reproducible results in image generation" ) ]
203
167
[ Description ( "Optional seed for reproducible results in image generation" ) ]
204
168
[ Range ( 0 , int . MaxValue ) ]
205
169
public int ? Seed { get ; set ; }
206
170
207
- [ ApiMember ( Description = "Optional client-provided identifier for the request" , ParameterType = "query" ) ]
171
+ [ ApiMember ( Description = "Optional client-provided identifier for the request" ) ]
208
172
[ Description ( "Optional client-provided identifier for the request" ) ]
209
173
public string ? RefId { get ; set ; }
210
174
211
- [ ApiMember ( Description = "Optional queue or topic to reply to" , ParameterType = "query" ) ]
212
- [ Description ( "Optional queue or topic to reply to" ) ]
213
- public string ? ReplyTo { get ; set ; }
214
-
215
- [ ApiMember ( Description = "Tag to identify the request" , ParameterType = "query" ) ]
175
+ [ ApiMember ( Description = "Tag to identify the request" ) ]
216
176
[ Description ( "Tag to identify the request" ) ]
217
177
public string ? Tag { get ; set ; }
218
-
219
- [ ApiMember ( Description = "Optional state to associate with the request" , ParameterType = "query" ) ]
220
- [ Description ( "Optional state to associate with the request" ) ]
221
- [ Input ( Type = "hidden" ) ]
222
- public string ? State { get ; set ; }
223
178
}
224
179
225
180
[ ValidateApiKey ]
@@ -228,55 +183,46 @@ public class ImageUpscale : IGeneration, IReturn<GenerationResponse>
228
183
[ Description ( "Create a new image by applying a mask to an existing image and generating content for the masked area" ) ]
229
184
public class ImageWithMask : IGeneration , IReturn < GenerationResponse >
230
185
{
231
- [ ApiMember ( Description = "Prompt describing the desired output in the masked area" , ParameterType = "body" ) ]
186
+ [ ApiMember ( Description = "Prompt describing the desired output in the masked area" ) ]
232
187
[ Description ( "Prompt describing the desired output in the masked area" ) ]
233
188
[ ValidateNotEmpty ]
234
189
[ Input ( Type = "textarea" ) ]
235
190
public string PositivePrompt { get ; set ; }
236
191
237
- [ ApiMember ( Description = "Negative prompt describing what should not be in the masked area" , ParameterType = "body" ) ]
192
+ [ ApiMember ( Description = "Negative prompt describing what should not be in the masked area" ) ]
238
193
[ Description ( "Negative prompt describing what should not be in the masked area" ) ]
239
194
[ Input ( Type = "textarea" ) ]
240
195
public string ? NegativePrompt { get ; set ; }
241
196
242
- [ ApiMember ( Description = "The image to use as input" , ParameterType = "body" ) ]
197
+ [ ApiMember ( Description = "The image to use as input" ) ]
243
198
[ Description ( "The image to use as input" ) ]
244
199
[ Required ]
245
200
[ Input ( Type = "file" ) ]
246
201
public Stream Image { get ; set ; }
247
202
248
- [ ApiMember ( Description = "The mask to use as input" , ParameterType = "body" ) ]
203
+ [ ApiMember ( Description = "The mask to use as input" ) ]
249
204
[ Description ( "The mask to use as input" ) ]
250
205
[ Required ]
251
206
[ Input ( Type = "file" ) ]
252
207
public Stream Mask { get ; set ; }
253
208
254
- [ ApiMember ( Description = "Optional specific amount of denoise to apply" , ParameterType = "query" ) ]
209
+ [ ApiMember ( Description = "Optional specific amount of denoise to apply" ) ]
255
210
[ Description ( "Optional specific amount of denoise to apply" ) ]
256
211
[ Range ( 0 , 1 ) ]
257
212
public float ? Denoise { get ; set ; }
258
213
259
- [ ApiMember ( Description = "Optional seed for reproducible results in image generation" , ParameterType = "query" ) ]
214
+ [ ApiMember ( Description = "Optional seed for reproducible results in image generation" ) ]
260
215
[ Description ( "Optional seed for reproducible results in image generation" ) ]
261
216
[ Range ( 0 , int . MaxValue ) ]
262
217
public int ? Seed { get ; set ; }
263
218
264
- [ ApiMember ( Description = "Optional client-provided identifier for the request" , ParameterType = "query" ) ]
219
+ [ ApiMember ( Description = "Optional client-provided identifier for the request" ) ]
265
220
[ Description ( "Optional client-provided identifier for the request" ) ]
266
221
public string ? RefId { get ; set ; }
267
222
268
- [ ApiMember ( Description = "Optional queue or topic to reply to" , ParameterType = "query" ) ]
269
- [ Description ( "Optional queue or topic to reply to" ) ]
270
- public string ? ReplyTo { get ; set ; }
271
-
272
- [ ApiMember ( Description = "Tag to identify the request" , ParameterType = "query" ) ]
223
+ [ ApiMember ( Description = "Tag to identify the request" ) ]
273
224
[ Description ( "Tag to identify the request" ) ]
274
225
public string ? Tag { get ; set ; }
275
-
276
- [ ApiMember ( Description = "Optional state to associate with the request" , ParameterType = "query" ) ]
277
- [ Description ( "Optional state to associate with the request" ) ]
278
- [ Input ( Type = "hidden" ) ]
279
- public string ? State { get ; set ; }
280
226
}
281
227
282
228
[ ValidateApiKey ]
@@ -285,28 +231,19 @@ public class ImageWithMask : IGeneration, IReturn<GenerationResponse>
285
231
[ Description ( "Extract text content from an image" ) ]
286
232
public class ImageToText : IGeneration , IReturn < GenerationResponse >
287
233
{
288
- [ ApiMember ( Description = "The image to convert to text" , ParameterType = "body" ) ]
234
+ [ ApiMember ( Description = "The image to convert to text" ) ]
289
235
[ Description ( "The image to convert to text" ) ]
290
236
[ Required ]
291
237
[ Input ( Type = "file" ) ]
292
238
public Stream Image { get ; set ; }
293
239
294
- [ ApiMember ( Description = "Optional client-provided identifier for the request" , ParameterType = "query" ) ]
240
+ [ ApiMember ( Description = "Optional client-provided identifier for the request" ) ]
295
241
[ Description ( "Optional client-provided identifier for the request" ) ]
296
242
public string ? RefId { get ; set ; }
297
243
298
- [ ApiMember ( Description = "Optional queue or topic to reply to" , ParameterType = "query" ) ]
299
- [ Description ( "Optional queue or topic to reply to" ) ]
300
- public string ? ReplyTo { get ; set ; }
301
-
302
- [ ApiMember ( Description = "Tag to identify the request" , ParameterType = "query" ) ]
244
+ [ ApiMember ( Description = "Tag to identify the request" ) ]
303
245
[ Description ( "Tag to identify the request" ) ]
304
246
public string ? Tag { get ; set ; }
305
-
306
- [ ApiMember ( Description = "Optional state to associate with the request" , ParameterType = "query" ) ]
307
- [ Description ( "Optional state to associate with the request" ) ]
308
- [ Input ( Type = "hidden" ) ]
309
- public string ? State { get ; set ; }
310
247
}
311
248
312
249
[ Description ( "Response object for generation requests" ) ]
@@ -328,8 +265,5 @@ public class GenerationResponse
328
265
public interface IGeneration
329
266
{
330
267
string ? RefId { get ; set ; }
331
- string ? ReplyTo { get ; set ; }
332
- string ? State { get ; set ; }
333
-
334
268
string ? Tag { get ; set ; }
335
269
}
0 commit comments