You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Request one task to be processed by the Runware API. [See the documentation](https://docs.runware.ai/en/image-inference/api-reference).",
8
+
version: "0.0.1",
9
+
type: "action",
10
+
props: {
11
+
app,
12
+
taskType: {
13
+
propDefinition: [
14
+
app,
15
+
"taskType",
16
+
],
17
+
},
18
+
outputType: {
19
+
propDefinition: [
20
+
app,
21
+
"outputType",
22
+
],
23
+
},
24
+
outputFormat: {
25
+
propDefinition: [
26
+
app,
27
+
"outputFormat",
28
+
],
29
+
},
30
+
uploadEndpoint: {
31
+
propDefinition: [
32
+
app,
33
+
"uploadEndpoint",
34
+
],
35
+
},
36
+
checkNSFW: {
37
+
propDefinition: [
38
+
app,
39
+
"checkNSFW",
40
+
],
41
+
},
42
+
includeCost: {
43
+
propDefinition: [
44
+
app,
45
+
"includeCost",
46
+
],
47
+
},
48
+
positivePrompt: {
49
+
propDefinition: [
50
+
app,
51
+
"positivePrompt",
52
+
],
53
+
},
54
+
negativePrompt: {
55
+
propDefinition: [
56
+
app,
57
+
"negativePrompt",
58
+
],
59
+
},
60
+
seedImage: {
61
+
propDefinition: [
62
+
app,
63
+
"seedImage",
64
+
],
65
+
},
66
+
maskImage: {
67
+
propDefinition: [
68
+
app,
69
+
"maskImage",
70
+
],
71
+
},
72
+
strength: {
73
+
propDefinition: [
74
+
app,
75
+
"strength",
76
+
],
77
+
},
78
+
height: {
79
+
propDefinition: [
80
+
app,
81
+
"height",
82
+
],
83
+
},
84
+
width: {
85
+
propDefinition: [
86
+
app,
87
+
"width",
88
+
],
89
+
},
90
+
model: {
91
+
propDefinition: [
92
+
app,
93
+
"model",
94
+
],
95
+
},
96
+
steps: {
97
+
propDefinition: [
98
+
app,
99
+
"steps",
100
+
],
101
+
},
102
+
scheduler: {
103
+
propDefinition: [
104
+
app,
105
+
"scheduler",
106
+
],
107
+
},
108
+
seed: {
109
+
propDefinition: [
110
+
app,
111
+
"seed",
112
+
],
113
+
},
114
+
numberResults: {
115
+
propDefinition: [
116
+
app,
117
+
"numberResults",
118
+
],
119
+
},
120
+
},
121
+
asyncrun({ $ }){
122
+
const{
123
+
app,
124
+
taskType,
125
+
outputType,
126
+
outputFormat,
127
+
uploadEndpoint,
128
+
checkNSFW,
129
+
includeCost,
130
+
positivePrompt,
131
+
negativePrompt,
132
+
seedImage,
133
+
maskImage,
134
+
strength,
135
+
height,
136
+
width,
137
+
model,
138
+
steps,
139
+
scheduler,
140
+
seed,
141
+
numberResults,
142
+
}=this;
143
+
144
+
constresponse=awaitapp.post({
145
+
$,
146
+
data: [
147
+
{
148
+
taskUUID: uuid(),
149
+
taskType,
150
+
outputType,
151
+
outputFormat,
152
+
uploadEndpoint,
153
+
checkNSFW,
154
+
includeCost,
155
+
positivePrompt,
156
+
negativePrompt,
157
+
seedImage,
158
+
maskImage,
159
+
strength,
160
+
height,
161
+
width,
162
+
model,
163
+
steps,
164
+
scheduler,
165
+
seed: seed
166
+
? parseInt(seed)
167
+
: undefined,
168
+
numberResults,
169
+
},
170
+
],
171
+
});
172
+
173
+
$.export("$summary",`Successfully requested task with UUID \`${response.data[0].taskUUID}\`.`);
0 commit comments