@mynthio/sdk 0.0.55 → 0.0.56
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/README.md +15 -0
- package/dist/index.js +76 -1
- package/dist/video-generation-result.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -647,6 +647,8 @@ Current model IDs include:
|
|
|
647
647
|
- `bytedance/seedream-5.0-lite`
|
|
648
648
|
- `bytedance/seedream-pro`
|
|
649
649
|
- `bytedance/seedream-v5-flash`
|
|
650
|
+
- `bytedance/seedream-5.5`
|
|
651
|
+
- `bytedance/seedream`
|
|
650
652
|
- `black-forest-labs/flux.1-dev`
|
|
651
653
|
- `black-forest-labs/flux-1-schnell`
|
|
652
654
|
- `black-forest-labs/flux.2-dev`
|
|
@@ -655,6 +657,10 @@ Current model IDs include:
|
|
|
655
657
|
- `black-forest-labs/flux.2-max`
|
|
656
658
|
- `black-forest-labs/flux.2-klein-4b`
|
|
657
659
|
- `black-forest-labs/flux-3`
|
|
660
|
+
- `bria/fibo-edit-2.0`
|
|
661
|
+
- `bria/fibo-edit`
|
|
662
|
+
- `bria/fibo-generate-2.0`
|
|
663
|
+
- `bria/fibo-generate`
|
|
658
664
|
- `goofy-ai/prefect-pony-xl-lora`
|
|
659
665
|
- `google/gemini-3.1-flash-lite-image`
|
|
660
666
|
- `google/gemini-3.1-flash-image`
|
|
@@ -663,14 +669,23 @@ Current model IDs include:
|
|
|
663
669
|
- `imagineart/imagineart-1.5-pro`
|
|
664
670
|
- `imagineart/imagineart-2.0`
|
|
665
671
|
- `ideogram/ideogram-4.5`
|
|
672
|
+
- `ideogram/ideogram-4.6`
|
|
673
|
+
- `ideogram/ideogram`
|
|
674
|
+
- `klingai/kling-image-4.0`
|
|
675
|
+
- `klingai/kling-image`
|
|
666
676
|
- `john6666/bismuth-illustrious-mix`
|
|
667
677
|
- `maxfeifei8/one-obsession`
|
|
668
678
|
- `krea/krea-2-turbo`
|
|
669
679
|
- `krea/krea-2-medium`
|
|
670
680
|
- `krea/krea-2-large`
|
|
681
|
+
- `krea/krea-3`
|
|
682
|
+
- `krea/krea`
|
|
671
683
|
- `luma/uni-1`
|
|
672
684
|
- `luma/uni-1-max`
|
|
673
685
|
- `meta/muse-image`
|
|
686
|
+
- `minimax/h3-image`
|
|
687
|
+
- `minimax/h3-image-highspeed`
|
|
688
|
+
- `openmoss-team/moss-image`
|
|
674
689
|
- `openai/gpt-image-2`
|
|
675
690
|
- `purplesmartai/pony-diffusion-v6-xl`
|
|
676
691
|
- `recraft/recraft-v4`
|
package/dist/index.js
CHANGED
|
@@ -74,6 +74,16 @@ const AVAILABLE_MODELS = [
|
|
|
74
74
|
label: "Seedream 5.0 Flash",
|
|
75
75
|
capabilities: ["inputs"]
|
|
76
76
|
},
|
|
77
|
+
{
|
|
78
|
+
id: "bytedance/seedream-5.5",
|
|
79
|
+
label: "Seedream 5.5",
|
|
80
|
+
capabilities: ["inputs"]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "bytedance/seedream",
|
|
84
|
+
label: "Seedream",
|
|
85
|
+
capabilities: ["inputs"]
|
|
86
|
+
},
|
|
77
87
|
{
|
|
78
88
|
id: "black-forest-labs/flux.1-dev",
|
|
79
89
|
label: "FLUX.1 Dev",
|
|
@@ -139,6 +149,26 @@ const AVAILABLE_MODELS = [
|
|
|
139
149
|
label: "FIBO Generate 1.5",
|
|
140
150
|
capabilities: []
|
|
141
151
|
},
|
|
152
|
+
{
|
|
153
|
+
id: "bria/fibo-edit-2.0",
|
|
154
|
+
label: "FIBO Edit 2.0",
|
|
155
|
+
capabilities: ["inputs"]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: "bria/fibo-edit",
|
|
159
|
+
label: "FIBO Edit",
|
|
160
|
+
capabilities: ["inputs"]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: "bria/fibo-generate-2.0",
|
|
164
|
+
label: "FIBO Generate 2.0",
|
|
165
|
+
capabilities: []
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: "bria/fibo-generate",
|
|
169
|
+
label: "FIBO Generate",
|
|
170
|
+
capabilities: []
|
|
171
|
+
},
|
|
142
172
|
{
|
|
143
173
|
id: "circlestone-labs/anima",
|
|
144
174
|
label: "Anima",
|
|
@@ -169,6 +199,16 @@ const AVAILABLE_MODELS = [
|
|
|
169
199
|
label: "Kling IMAGE O3",
|
|
170
200
|
capabilities: ["inputs", "4k"]
|
|
171
201
|
},
|
|
202
|
+
{
|
|
203
|
+
id: "klingai/kling-image-4.0",
|
|
204
|
+
label: "Kling IMAGE 4.0",
|
|
205
|
+
capabilities: ["inputs", "4k"]
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
id: "klingai/kling-image",
|
|
209
|
+
label: "Kling IMAGE",
|
|
210
|
+
capabilities: ["inputs", "4k"]
|
|
211
|
+
},
|
|
172
212
|
{
|
|
173
213
|
id: "krea/krea-2-turbo",
|
|
174
214
|
label: "Krea 2 Turbo",
|
|
@@ -184,6 +224,16 @@ const AVAILABLE_MODELS = [
|
|
|
184
224
|
label: "Krea 2 Large",
|
|
185
225
|
capabilities: ["inputs"]
|
|
186
226
|
},
|
|
227
|
+
{
|
|
228
|
+
id: "krea/krea-3",
|
|
229
|
+
label: "Krea 3",
|
|
230
|
+
capabilities: ["inputs", "4k"]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
id: "krea/krea",
|
|
234
|
+
label: "Krea",
|
|
235
|
+
capabilities: ["inputs", "4k"]
|
|
236
|
+
},
|
|
187
237
|
{
|
|
188
238
|
id: "luma/uni-1",
|
|
189
239
|
label: "Luma UNI-1",
|
|
@@ -214,6 +264,21 @@ const AVAILABLE_MODELS = [
|
|
|
214
264
|
label: "MiniMax H3",
|
|
215
265
|
capabilities: ["inputs"]
|
|
216
266
|
},
|
|
267
|
+
{
|
|
268
|
+
id: "minimax/h3-image",
|
|
269
|
+
label: "MiniMax H3 Image",
|
|
270
|
+
capabilities: ["inputs", "4k"]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
id: "minimax/h3-image-highspeed",
|
|
274
|
+
label: "MiniMax H3 Image Highspeed",
|
|
275
|
+
capabilities: ["inputs", "4k"]
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
id: "openmoss-team/moss-image",
|
|
279
|
+
label: "MOSS-Image",
|
|
280
|
+
capabilities: []
|
|
281
|
+
},
|
|
217
282
|
{
|
|
218
283
|
id: "purplesmartai/pony-diffusion-v6-xl",
|
|
219
284
|
label: "Pony Diffusion V6 XL",
|
|
@@ -284,6 +349,16 @@ const AVAILABLE_MODELS = [
|
|
|
284
349
|
label: "Ideogram 4.5",
|
|
285
350
|
capabilities: ["inputs"]
|
|
286
351
|
},
|
|
352
|
+
{
|
|
353
|
+
id: "ideogram/ideogram-4.6",
|
|
354
|
+
label: "Ideogram 4.6",
|
|
355
|
+
capabilities: ["inputs"]
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
id: "ideogram/ideogram",
|
|
359
|
+
label: "Ideogram",
|
|
360
|
+
capabilities: ["inputs"]
|
|
361
|
+
},
|
|
287
362
|
{
|
|
288
363
|
id: "openai/gpt-image-2",
|
|
289
364
|
label: "GPT Image 2",
|
|
@@ -483,7 +558,7 @@ var MynthAPIError = class extends Error {
|
|
|
483
558
|
* Sent as `X-Mynth-Client` on creates so Mynth can count SDK traffic. The API
|
|
484
559
|
* only records it, never checks it. The build inlines the package version.
|
|
485
560
|
*/
|
|
486
|
-
const SDK_CLIENT = `sdk/0.0.
|
|
561
|
+
const SDK_CLIENT = `sdk/0.0.56`;
|
|
487
562
|
/**
|
|
488
563
|
* Waits before each retry of a create that failed in transit or with a 5xx.
|
|
489
564
|
* The retry sends the same `Idempotency-Key`, so Mynth returns the task the
|
|
@@ -187,7 +187,7 @@ declare namespace MynthSDKTypes {
|
|
|
187
187
|
};
|
|
188
188
|
type Model = ImageModel | VideoModel;
|
|
189
189
|
type ModelsListResponse = ApiResponse<Model[]>;
|
|
190
|
-
type ImageGenerationModelId = "alibaba/qwen-image-2.0" | "alibaba/qwen-image-2.0-pro" | "alibaba/qwen-image-2.1-pro" | "alibaba/qwen-image-2.1-turbo" | "alibaba/qwen-image-3.0" | "alibaba/qwen-image-3.0-pro" | "bytedance/seedream-5.0-lite" | "bytedance/seedream-pro" | "bytedance/seedream-v5-flash" | "black-forest-labs/flux.1-dev" | "black-forest-labs/flux-1-schnell" | "black-forest-labs/flux.2-dev" | "black-forest-labs/flux.2-pro" | "black-forest-labs/flux.2-flex" | "black-forest-labs/flux.2-max" | "black-forest-labs/flux.2-klein-4b" | "black-forest-labs/flux-3" | "black-forest-labs/flux-3-klein" | "bria/fibo-edit-1.5" | "bria/fibo-generate-1.5" | "circlestone-labs/anima" | "goofy-ai/prefect-pony-xl-lora" | "google/gemini-3.1-flash-lite-image" | "google/gemini-3.1-flash-image" | "google/gemini-3-pro-image-preview" | "google/gemini-nano-banana-2.1" | "imagineart/imagineart-1.5-pro" | "imagineart/imagineart-2.0" | "ideogram/ideogram-4.5" | "klingai/kling-image-3.0" | "klingai/kling-image-o3" | "krea/krea-2-turbo" | "krea/krea-2-medium" | "krea/krea-2-large" | "luma/uni-1" | "luma/uni-1-max" | "meta/muse-image" | "microsoft/mai-image-2.6" | "microsoft/mai-image-2.6-flash" | "minimax/h3" | "openai/gpt-image-2" | "openai/gpt-image-2.5-flare" | "openai/gpt-image-2.5-sunburst" | "openai/gpt-image-2.6-flare" | "openai/gpt-image-2.6-sunburst" | "openai/gpt-image-flare" | "openai/gpt-image-sunburst" | "tongyi-mai/z-image" | "tongyi-mai/z-image-turbo" | "john6666/bismuth-illustrious-mix" | "maxfeifei8/one-obsession" | "purplesmartai/pony-diffusion-v6-xl" | "recraft/recraft-v4" | "recraft/recraft-v4.1-flash" | "recraft/recraft-v4-pro" | "reve/reve" | "reve/reve-remix" | "sourceful/riverflow-2.0-pro" | "wan/wan2.6-image" | "wan/wan2.7-image" | "wan/wan2.7-image-pro" | "xai/grok-imagine-image" | "xai/grok-imagine-image-2.0" | "xai/grok-imagine-image-quality";
|
|
190
|
+
type ImageGenerationModelId = "alibaba/qwen-image-2.0" | "alibaba/qwen-image-2.0-pro" | "alibaba/qwen-image-2.1-pro" | "alibaba/qwen-image-2.1-turbo" | "alibaba/qwen-image-3.0" | "alibaba/qwen-image-3.0-pro" | "bytedance/seedream-5.0-lite" | "bytedance/seedream-pro" | "bytedance/seedream-v5-flash" | "bytedance/seedream-5.5" | "bytedance/seedream" | "black-forest-labs/flux.1-dev" | "black-forest-labs/flux-1-schnell" | "black-forest-labs/flux.2-dev" | "black-forest-labs/flux.2-pro" | "black-forest-labs/flux.2-flex" | "black-forest-labs/flux.2-max" | "black-forest-labs/flux.2-klein-4b" | "black-forest-labs/flux-3" | "black-forest-labs/flux-3-klein" | "bria/fibo-edit-1.5" | "bria/fibo-generate-1.5" | "bria/fibo-edit-2.0" | "bria/fibo-edit" | "bria/fibo-generate-2.0" | "bria/fibo-generate" | "circlestone-labs/anima" | "goofy-ai/prefect-pony-xl-lora" | "google/gemini-3.1-flash-lite-image" | "google/gemini-3.1-flash-image" | "google/gemini-3-pro-image-preview" | "google/gemini-nano-banana-2.1" | "imagineart/imagineart-1.5-pro" | "imagineart/imagineart-2.0" | "ideogram/ideogram-4.5" | "ideogram/ideogram-4.6" | "ideogram/ideogram" | "klingai/kling-image-3.0" | "klingai/kling-image-o3" | "klingai/kling-image-4.0" | "klingai/kling-image" | "krea/krea-2-turbo" | "krea/krea-2-medium" | "krea/krea-2-large" | "krea/krea-3" | "krea/krea" | "luma/uni-1" | "luma/uni-1-max" | "meta/muse-image" | "microsoft/mai-image-2.6" | "microsoft/mai-image-2.6-flash" | "minimax/h3" | "minimax/h3-image" | "minimax/h3-image-highspeed" | "openmoss-team/moss-image" | "openai/gpt-image-2" | "openai/gpt-image-2.5-flare" | "openai/gpt-image-2.5-sunburst" | "openai/gpt-image-2.6-flare" | "openai/gpt-image-2.6-sunburst" | "openai/gpt-image-flare" | "openai/gpt-image-sunburst" | "tongyi-mai/z-image" | "tongyi-mai/z-image-turbo" | "john6666/bismuth-illustrious-mix" | "maxfeifei8/one-obsession" | "purplesmartai/pony-diffusion-v6-xl" | "recraft/recraft-v4" | "recraft/recraft-v4.1-flash" | "recraft/recraft-v4-pro" | "reve/reve" | "reve/reve-remix" | "sourceful/riverflow-2.0-pro" | "wan/wan2.6-image" | "wan/wan2.7-image" | "wan/wan2.7-image-pro" | "xai/grok-imagine-image" | "xai/grok-imagine-image-2.0" | "xai/grok-imagine-image-quality";
|
|
191
191
|
type ImageGenerationModel = ImageGenerationModelId | "auto";
|
|
192
192
|
type GenerateImageOptionsIn = {
|
|
193
193
|
prompt: string;
|