@apteva/integrations 0.15.11 → 0.15.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http-executor.d.ts.map +1 -1
- package/dist/http-executor.js +82 -0
- package/dist/http-executor.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/apps/fal-ai.json +278 -290
- package/src/apps/kling-ai.json +197 -161
- package/src/apps/leadbyte.json +16 -54
- package/src/apps/replicate.json +315 -61
- package/src/apps/runway.json +386 -0
- package/src/apps/stability-ai.json +356 -0
- package/src/apps/twitter-api.json +5 -20
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slug": "stability-ai",
|
|
3
|
+
"name": "Stability AI",
|
|
4
|
+
"description": "Stability AI API for Stable Image generation, editing, upscaling, control, account, and balance. Uses the v2beta Stable Image endpoints and returns JSON responses when output_format is set.",
|
|
5
|
+
"logo": "https://www.google.com/s2/favicons?domain=stability.ai&sz=128",
|
|
6
|
+
"categories": ["ai", "image-generation", "image-editing", "upscale", "stable-diffusion"],
|
|
7
|
+
"base_url": "https://api.stability.ai",
|
|
8
|
+
"auth": {
|
|
9
|
+
"types": ["bearer"],
|
|
10
|
+
"headers": {
|
|
11
|
+
"Authorization": "Bearer {{token}}",
|
|
12
|
+
"Accept": "application/json"
|
|
13
|
+
},
|
|
14
|
+
"credential_fields": [
|
|
15
|
+
{
|
|
16
|
+
"name": "token",
|
|
17
|
+
"label": "API Key",
|
|
18
|
+
"type": "password",
|
|
19
|
+
"description": "Stability AI API key from https://platform.stability.ai/account/keys."
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"health_check": {
|
|
24
|
+
"tool": "get_balance"
|
|
25
|
+
},
|
|
26
|
+
"tools": [
|
|
27
|
+
{
|
|
28
|
+
"name": "get_account",
|
|
29
|
+
"description": "Get Stability account information for the authenticated API key.",
|
|
30
|
+
"method": "GET",
|
|
31
|
+
"path": "/v1/user/account",
|
|
32
|
+
"input_schema": { "type": "object", "properties": {} }
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "get_balance",
|
|
36
|
+
"description": "Get Stability credit balance.",
|
|
37
|
+
"method": "GET",
|
|
38
|
+
"path": "/v1/user/balance",
|
|
39
|
+
"input_schema": { "type": "object", "properties": {} }
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "generate_core",
|
|
43
|
+
"description": "Generate an image with Stable Image Core.",
|
|
44
|
+
"method": "POST",
|
|
45
|
+
"path": "/v2beta/stable-image/generate/core",
|
|
46
|
+
"timeout_ms": 180000,
|
|
47
|
+
"multipart_form": {
|
|
48
|
+
"field_names": ["prompt", "negative_prompt", "aspect_ratio", "seed", "style_preset", "output_format"]
|
|
49
|
+
},
|
|
50
|
+
"input_schema": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"prompt": { "type": "string", "description": "Prompt describing the desired image." },
|
|
54
|
+
"negative_prompt": { "type": "string", "description": "Things to avoid." },
|
|
55
|
+
"aspect_ratio": { "type": "string", "enum": ["16:9", "1:1", "21:9", "2:3", "3:2", "4:5", "5:4", "9:16", "9:21"] },
|
|
56
|
+
"seed": { "type": "integer", "minimum": 0, "maximum": 4294967294 },
|
|
57
|
+
"style_preset": { "type": "string", "description": "Optional style preset such as photographic, cinematic, anime, digital-art, comic-book, or 3d-model." },
|
|
58
|
+
"output_format": { "type": "string", "enum": ["png", "jpeg", "webp"], "default": "png" }
|
|
59
|
+
},
|
|
60
|
+
"required": ["prompt"]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "generate_ultra",
|
|
65
|
+
"description": "Generate a high-quality image with Stable Image Ultra.",
|
|
66
|
+
"method": "POST",
|
|
67
|
+
"path": "/v2beta/stable-image/generate/ultra",
|
|
68
|
+
"timeout_ms": 180000,
|
|
69
|
+
"multipart_form": {
|
|
70
|
+
"field_names": ["prompt", "negative_prompt", "aspect_ratio", "seed", "output_format"]
|
|
71
|
+
},
|
|
72
|
+
"input_schema": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"properties": {
|
|
75
|
+
"prompt": { "type": "string" },
|
|
76
|
+
"negative_prompt": { "type": "string" },
|
|
77
|
+
"aspect_ratio": { "type": "string", "enum": ["16:9", "1:1", "21:9", "2:3", "3:2", "4:5", "5:4", "9:16", "9:21"] },
|
|
78
|
+
"seed": { "type": "integer", "minimum": 0, "maximum": 4294967294 },
|
|
79
|
+
"output_format": { "type": "string", "enum": ["png", "jpeg", "webp"], "default": "png" }
|
|
80
|
+
},
|
|
81
|
+
"required": ["prompt"]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "generate_sd3",
|
|
86
|
+
"description": "Generate an image with Stable Diffusion 3/3.5 models.",
|
|
87
|
+
"method": "POST",
|
|
88
|
+
"path": "/v2beta/stable-image/generate/sd3",
|
|
89
|
+
"timeout_ms": 180000,
|
|
90
|
+
"multipart_form": {
|
|
91
|
+
"field_names": ["prompt", "negative_prompt", "aspect_ratio", "seed", "model", "mode", "strength", "output_format"],
|
|
92
|
+
"file_fields": { "image": "image" }
|
|
93
|
+
},
|
|
94
|
+
"input_schema": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": {
|
|
97
|
+
"prompt": { "type": "string" },
|
|
98
|
+
"negative_prompt": { "type": "string" },
|
|
99
|
+
"aspect_ratio": { "type": "string", "enum": ["16:9", "1:1", "21:9", "2:3", "3:2", "4:5", "5:4", "9:16", "9:21"] },
|
|
100
|
+
"seed": { "type": "integer", "minimum": 0, "maximum": 4294967294 },
|
|
101
|
+
"model": { "type": "string", "description": "SD3 model id, e.g. sd3.5-large, sd3.5-large-turbo, sd3.5-medium, sd3-large, sd3-medium." },
|
|
102
|
+
"mode": { "type": "string", "enum": ["text-to-image", "image-to-image"], "description": "Use image-to-image when image is provided." },
|
|
103
|
+
"image": { "type": "string", "description": "Optional image file path/blob for image-to-image mode." },
|
|
104
|
+
"strength": { "type": "number", "minimum": 0, "maximum": 1, "description": "How strongly the prompt transforms the image in image-to-image mode." },
|
|
105
|
+
"output_format": { "type": "string", "enum": ["png", "jpeg"], "default": "png" }
|
|
106
|
+
},
|
|
107
|
+
"required": ["prompt"]
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "erase",
|
|
112
|
+
"description": "Erase masked areas from an image.",
|
|
113
|
+
"method": "POST",
|
|
114
|
+
"path": "/v2beta/stable-image/edit/erase",
|
|
115
|
+
"timeout_ms": 180000,
|
|
116
|
+
"multipart_form": {
|
|
117
|
+
"field_names": ["output_format"],
|
|
118
|
+
"file_fields": { "image": "image", "mask": "mask" }
|
|
119
|
+
},
|
|
120
|
+
"input_schema": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"properties": {
|
|
123
|
+
"image": { "type": "string", "description": "Source image file path/blob." },
|
|
124
|
+
"mask": { "type": "string", "description": "Mask image file path/blob." },
|
|
125
|
+
"output_format": { "type": "string", "enum": ["png", "jpeg", "webp"], "default": "png" }
|
|
126
|
+
},
|
|
127
|
+
"required": ["image"]
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "inpaint",
|
|
132
|
+
"description": "Inpaint masked areas using a prompt.",
|
|
133
|
+
"method": "POST",
|
|
134
|
+
"path": "/v2beta/stable-image/edit/inpaint",
|
|
135
|
+
"timeout_ms": 180000,
|
|
136
|
+
"multipart_form": {
|
|
137
|
+
"field_names": ["prompt", "negative_prompt", "seed", "output_format"],
|
|
138
|
+
"file_fields": { "image": "image", "mask": "mask" }
|
|
139
|
+
},
|
|
140
|
+
"input_schema": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"properties": {
|
|
143
|
+
"image": { "type": "string", "description": "Source image file path/blob." },
|
|
144
|
+
"mask": { "type": "string", "description": "Mask image file path/blob." },
|
|
145
|
+
"prompt": { "type": "string" },
|
|
146
|
+
"negative_prompt": { "type": "string" },
|
|
147
|
+
"seed": { "type": "integer", "minimum": 0, "maximum": 4294967294 },
|
|
148
|
+
"output_format": { "type": "string", "enum": ["png", "jpeg", "webp"], "default": "png" }
|
|
149
|
+
},
|
|
150
|
+
"required": ["image", "prompt"]
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "outpaint",
|
|
155
|
+
"description": "Extend an image canvas outward.",
|
|
156
|
+
"method": "POST",
|
|
157
|
+
"path": "/v2beta/stable-image/edit/outpaint",
|
|
158
|
+
"timeout_ms": 180000,
|
|
159
|
+
"multipart_form": {
|
|
160
|
+
"field_names": ["prompt", "left", "right", "up", "down", "creativity", "seed", "output_format"],
|
|
161
|
+
"file_fields": { "image": "image" }
|
|
162
|
+
},
|
|
163
|
+
"input_schema": {
|
|
164
|
+
"type": "object",
|
|
165
|
+
"properties": {
|
|
166
|
+
"image": { "type": "string", "description": "Source image file path/blob." },
|
|
167
|
+
"prompt": { "type": "string" },
|
|
168
|
+
"left": { "type": "integer", "minimum": 0 },
|
|
169
|
+
"right": { "type": "integer", "minimum": 0 },
|
|
170
|
+
"up": { "type": "integer", "minimum": 0 },
|
|
171
|
+
"down": { "type": "integer", "minimum": 0 },
|
|
172
|
+
"creativity": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
173
|
+
"seed": { "type": "integer", "minimum": 0, "maximum": 4294967294 },
|
|
174
|
+
"output_format": { "type": "string", "enum": ["png", "jpeg", "webp"], "default": "png" }
|
|
175
|
+
},
|
|
176
|
+
"required": ["image"]
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "search_and_replace",
|
|
181
|
+
"description": "Replace a searched subject in an image using a prompt.",
|
|
182
|
+
"method": "POST",
|
|
183
|
+
"path": "/v2beta/stable-image/edit/search-and-replace",
|
|
184
|
+
"timeout_ms": 180000,
|
|
185
|
+
"multipart_form": {
|
|
186
|
+
"field_names": ["prompt", "search_prompt", "negative_prompt", "seed", "output_format"],
|
|
187
|
+
"file_fields": { "image": "image" }
|
|
188
|
+
},
|
|
189
|
+
"input_schema": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"properties": {
|
|
192
|
+
"image": { "type": "string", "description": "Source image file path/blob." },
|
|
193
|
+
"prompt": { "type": "string", "description": "Replacement prompt." },
|
|
194
|
+
"search_prompt": { "type": "string", "description": "Subject to find and replace." },
|
|
195
|
+
"negative_prompt": { "type": "string" },
|
|
196
|
+
"seed": { "type": "integer", "minimum": 0, "maximum": 4294967294 },
|
|
197
|
+
"output_format": { "type": "string", "enum": ["png", "jpeg", "webp"], "default": "png" }
|
|
198
|
+
},
|
|
199
|
+
"required": ["image", "prompt", "search_prompt"]
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "remove_background",
|
|
204
|
+
"description": "Remove the background from an image.",
|
|
205
|
+
"method": "POST",
|
|
206
|
+
"path": "/v2beta/stable-image/edit/remove-background",
|
|
207
|
+
"timeout_ms": 180000,
|
|
208
|
+
"multipart_form": {
|
|
209
|
+
"field_names": ["output_format"],
|
|
210
|
+
"file_fields": { "image": "image" }
|
|
211
|
+
},
|
|
212
|
+
"input_schema": {
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"image": { "type": "string", "description": "Source image file path/blob." },
|
|
216
|
+
"output_format": { "type": "string", "enum": ["png", "webp"], "default": "png" }
|
|
217
|
+
},
|
|
218
|
+
"required": ["image"]
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"name": "upscale_fast",
|
|
223
|
+
"description": "Fast upscale an image.",
|
|
224
|
+
"method": "POST",
|
|
225
|
+
"path": "/v2beta/stable-image/upscale/fast",
|
|
226
|
+
"timeout_ms": 180000,
|
|
227
|
+
"multipart_form": {
|
|
228
|
+
"field_names": ["output_format"],
|
|
229
|
+
"file_fields": { "image": "image" }
|
|
230
|
+
},
|
|
231
|
+
"input_schema": {
|
|
232
|
+
"type": "object",
|
|
233
|
+
"properties": {
|
|
234
|
+
"image": { "type": "string", "description": "Source image file path/blob." },
|
|
235
|
+
"output_format": { "type": "string", "enum": ["png", "jpeg", "webp"], "default": "png" }
|
|
236
|
+
},
|
|
237
|
+
"required": ["image"]
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "upscale_conservative",
|
|
242
|
+
"description": "Conservative creative upscale guided by a prompt.",
|
|
243
|
+
"method": "POST",
|
|
244
|
+
"path": "/v2beta/stable-image/upscale/conservative",
|
|
245
|
+
"timeout_ms": 180000,
|
|
246
|
+
"multipart_form": {
|
|
247
|
+
"field_names": ["prompt", "negative_prompt", "creativity", "seed", "output_format"],
|
|
248
|
+
"file_fields": { "image": "image" }
|
|
249
|
+
},
|
|
250
|
+
"input_schema": {
|
|
251
|
+
"type": "object",
|
|
252
|
+
"properties": {
|
|
253
|
+
"image": { "type": "string", "description": "Source image file path/blob." },
|
|
254
|
+
"prompt": { "type": "string" },
|
|
255
|
+
"negative_prompt": { "type": "string" },
|
|
256
|
+
"creativity": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
257
|
+
"seed": { "type": "integer", "minimum": 0, "maximum": 4294967294 },
|
|
258
|
+
"output_format": { "type": "string", "enum": ["png", "jpeg", "webp"], "default": "png" }
|
|
259
|
+
},
|
|
260
|
+
"required": ["image", "prompt"]
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "upscale_creative",
|
|
265
|
+
"description": "Creative upscale guided by a prompt.",
|
|
266
|
+
"method": "POST",
|
|
267
|
+
"path": "/v2beta/stable-image/upscale/creative",
|
|
268
|
+
"timeout_ms": 180000,
|
|
269
|
+
"multipart_form": {
|
|
270
|
+
"field_names": ["prompt", "negative_prompt", "creativity", "seed", "output_format"],
|
|
271
|
+
"file_fields": { "image": "image" }
|
|
272
|
+
},
|
|
273
|
+
"input_schema": {
|
|
274
|
+
"type": "object",
|
|
275
|
+
"properties": {
|
|
276
|
+
"image": { "type": "string", "description": "Source image file path/blob." },
|
|
277
|
+
"prompt": { "type": "string" },
|
|
278
|
+
"negative_prompt": { "type": "string" },
|
|
279
|
+
"creativity": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
280
|
+
"seed": { "type": "integer", "minimum": 0, "maximum": 4294967294 },
|
|
281
|
+
"output_format": { "type": "string", "enum": ["png", "jpeg", "webp"], "default": "png" }
|
|
282
|
+
},
|
|
283
|
+
"required": ["image", "prompt"]
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "control_sketch",
|
|
288
|
+
"description": "Generate an image from a sketch/control image and prompt.",
|
|
289
|
+
"method": "POST",
|
|
290
|
+
"path": "/v2beta/stable-image/control/sketch",
|
|
291
|
+
"timeout_ms": 180000,
|
|
292
|
+
"multipart_form": {
|
|
293
|
+
"field_names": ["prompt", "negative_prompt", "control_strength", "seed", "output_format"],
|
|
294
|
+
"file_fields": { "image": "image" }
|
|
295
|
+
},
|
|
296
|
+
"input_schema": {
|
|
297
|
+
"type": "object",
|
|
298
|
+
"properties": {
|
|
299
|
+
"image": { "type": "string", "description": "Sketch/control image file path/blob." },
|
|
300
|
+
"prompt": { "type": "string" },
|
|
301
|
+
"negative_prompt": { "type": "string" },
|
|
302
|
+
"control_strength": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
303
|
+
"seed": { "type": "integer", "minimum": 0, "maximum": 4294967294 },
|
|
304
|
+
"output_format": { "type": "string", "enum": ["png", "jpeg", "webp"], "default": "png" }
|
|
305
|
+
},
|
|
306
|
+
"required": ["image", "prompt"]
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "control_structure",
|
|
311
|
+
"description": "Generate an image preserving the structure of a control image.",
|
|
312
|
+
"method": "POST",
|
|
313
|
+
"path": "/v2beta/stable-image/control/structure",
|
|
314
|
+
"timeout_ms": 180000,
|
|
315
|
+
"multipart_form": {
|
|
316
|
+
"field_names": ["prompt", "negative_prompt", "control_strength", "seed", "output_format"],
|
|
317
|
+
"file_fields": { "image": "image" }
|
|
318
|
+
},
|
|
319
|
+
"input_schema": {
|
|
320
|
+
"type": "object",
|
|
321
|
+
"properties": {
|
|
322
|
+
"image": { "type": "string", "description": "Structure/control image file path/blob." },
|
|
323
|
+
"prompt": { "type": "string" },
|
|
324
|
+
"negative_prompt": { "type": "string" },
|
|
325
|
+
"control_strength": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
326
|
+
"seed": { "type": "integer", "minimum": 0, "maximum": 4294967294 },
|
|
327
|
+
"output_format": { "type": "string", "enum": ["png", "jpeg", "webp"], "default": "png" }
|
|
328
|
+
},
|
|
329
|
+
"required": ["image", "prompt"]
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "control_style",
|
|
334
|
+
"description": "Generate an image using the style of a reference image.",
|
|
335
|
+
"method": "POST",
|
|
336
|
+
"path": "/v2beta/stable-image/control/style",
|
|
337
|
+
"timeout_ms": 180000,
|
|
338
|
+
"multipart_form": {
|
|
339
|
+
"field_names": ["prompt", "negative_prompt", "fidelity", "seed", "output_format"],
|
|
340
|
+
"file_fields": { "image": "image" }
|
|
341
|
+
},
|
|
342
|
+
"input_schema": {
|
|
343
|
+
"type": "object",
|
|
344
|
+
"properties": {
|
|
345
|
+
"image": { "type": "string", "description": "Style reference image file path/blob." },
|
|
346
|
+
"prompt": { "type": "string" },
|
|
347
|
+
"negative_prompt": { "type": "string" },
|
|
348
|
+
"fidelity": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
349
|
+
"seed": { "type": "integer", "minimum": 0, "maximum": 4294967294 },
|
|
350
|
+
"output_format": { "type": "string", "enum": ["png", "jpeg", "webp"], "default": "png" }
|
|
351
|
+
},
|
|
352
|
+
"required": ["image", "prompt"]
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
]
|
|
356
|
+
}
|
|
@@ -38,33 +38,18 @@
|
|
|
38
38
|
}
|
|
39
39
|
],
|
|
40
40
|
"oauth2": {
|
|
41
|
-
"authorize_url": "https://
|
|
42
|
-
"token_url": "https://api.
|
|
41
|
+
"authorize_url": "https://x.com/i/oauth2/authorize",
|
|
42
|
+
"token_url": "https://api.x.com/2/oauth2/token",
|
|
43
43
|
"scopes": [
|
|
44
44
|
"tweet.read",
|
|
45
45
|
"tweet.write",
|
|
46
|
-
"tweet.moderate.write",
|
|
47
46
|
"users.read",
|
|
48
|
-
"follows.read",
|
|
49
|
-
"follows.write",
|
|
50
47
|
"offline.access",
|
|
51
|
-
"
|
|
52
|
-
"mute.read",
|
|
53
|
-
"mute.write",
|
|
54
|
-
"like.read",
|
|
55
|
-
"like.write",
|
|
56
|
-
"list.read",
|
|
57
|
-
"list.write",
|
|
58
|
-
"block.read",
|
|
59
|
-
"block.write",
|
|
60
|
-
"bookmark.read",
|
|
61
|
-
"bookmark.write",
|
|
62
|
-
"media.write",
|
|
63
|
-
"dm.read",
|
|
64
|
-
"dm.write"
|
|
48
|
+
"media.write"
|
|
65
49
|
],
|
|
66
50
|
"client_id_required": true,
|
|
67
|
-
"pkce": true
|
|
51
|
+
"pkce": true,
|
|
52
|
+
"token_auth_basic_only": true
|
|
68
53
|
}
|
|
69
54
|
},
|
|
70
55
|
"tools": [
|