@mynthio/sdk 0.0.55 → 0.0.57

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 CHANGED
@@ -249,6 +249,16 @@ await mynth.image.generate({
249
249
  });
250
250
  ```
251
251
 
252
+ `magic_prompt` also takes `{ creativity }`, which sets how far the rewrite can go beyond what you wrote. `"none"` refines faithfully without inventing scenes, which is what `true` does. `"balanced"` adds grounded variety, and `"high"` explores wider creative angles. Requests with input images always use `"none"`, and a creative rewrite that fails falls back to the faithful one.
253
+
254
+ ```ts
255
+ await mynth.image.generate({
256
+ model: "black-forest-labs/flux-1-schnell",
257
+ prompt: "A flower",
258
+ magic_prompt: { creativity: "high" },
259
+ });
260
+ ```
261
+
252
262
  ## Size Options
253
263
 
254
264
  `size` supports:
@@ -647,6 +657,8 @@ Current model IDs include:
647
657
  - `bytedance/seedream-5.0-lite`
648
658
  - `bytedance/seedream-pro`
649
659
  - `bytedance/seedream-v5-flash`
660
+ - `bytedance/seedream-5.5`
661
+ - `bytedance/seedream`
650
662
  - `black-forest-labs/flux.1-dev`
651
663
  - `black-forest-labs/flux-1-schnell`
652
664
  - `black-forest-labs/flux.2-dev`
@@ -655,6 +667,10 @@ Current model IDs include:
655
667
  - `black-forest-labs/flux.2-max`
656
668
  - `black-forest-labs/flux.2-klein-4b`
657
669
  - `black-forest-labs/flux-3`
670
+ - `bria/fibo-edit-2.0`
671
+ - `bria/fibo-edit`
672
+ - `bria/fibo-generate-2.0`
673
+ - `bria/fibo-generate`
658
674
  - `goofy-ai/prefect-pony-xl-lora`
659
675
  - `google/gemini-3.1-flash-lite-image`
660
676
  - `google/gemini-3.1-flash-image`
@@ -663,14 +679,23 @@ Current model IDs include:
663
679
  - `imagineart/imagineart-1.5-pro`
664
680
  - `imagineart/imagineart-2.0`
665
681
  - `ideogram/ideogram-4.5`
682
+ - `ideogram/ideogram-4.6`
683
+ - `ideogram/ideogram`
684
+ - `klingai/kling-image-4.0`
685
+ - `klingai/kling-image`
666
686
  - `john6666/bismuth-illustrious-mix`
667
687
  - `maxfeifei8/one-obsession`
668
688
  - `krea/krea-2-turbo`
669
689
  - `krea/krea-2-medium`
670
690
  - `krea/krea-2-large`
691
+ - `krea/krea-3`
692
+ - `krea/krea`
671
693
  - `luma/uni-1`
672
694
  - `luma/uni-1-max`
673
695
  - `meta/muse-image`
696
+ - `minimax/h3-image`
697
+ - `minimax/h3-image-highspeed`
698
+ - `openmoss-team/moss-image`
674
699
  - `openai/gpt-image-2`
675
700
  - `purplesmartai/pony-diffusion-v6-xl`
676
701
  - `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.55`;
561
+ const SDK_CLIENT = `sdk/0.0.57`;
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;
@@ -255,10 +255,15 @@ declare namespace MynthSDKTypes {
255
255
  };
256
256
  };
257
257
  type ImageGenerationRequestSize = ImageGenerationRequestSizePreset | ImageGenerationRequestSizeAspectRatio | ImageGenerationRequestSizeAuto | "auto";
258
+ type ImageGenerationRequestMagicPromptCreativity = "none" | "balanced" | "high";
259
+ type ImageGenerationRequestMagicPromptStructured = {
260
+ creativity?: ImageGenerationRequestMagicPromptCreativity;
261
+ };
262
+ type ImageGenerationRequestMagicPrompt = boolean | ImageGenerationRequestMagicPromptStructured;
258
263
  type ImageGenerationRequest = {
259
264
  prompt: ImageGenerationRequestPrompt;
260
265
  negative_prompt?: string;
261
- magic_prompt?: boolean;
266
+ magic_prompt?: ImageGenerationRequestMagicPrompt;
262
267
  model?: ImageGenerationModel;
263
268
  size?: ImageGenerationRequestSize;
264
269
  count?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mynthio/sdk",
3
- "version": "0.0.55",
3
+ "version": "0.0.57",
4
4
  "description": "Official Mynth SDK for image generation and analysis",
5
5
  "keywords": [
6
6
  "ai",