@imgly/plugin-ai-image-generation-web 0.2.12 → 0.2.14

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +266 -0
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/fal-ai/index.mjs +8 -8
  5. package/dist/fal-ai/index.mjs.map +3 -3
  6. package/dist/index.mjs +1 -1
  7. package/dist/index.mjs.map +2 -2
  8. package/dist/open-ai/index.mjs.map +2 -2
  9. package/dist/runware/Flux2Dev.image2image.d.ts +32 -0
  10. package/dist/runware/Flux2Dev.text2image.d.ts +33 -0
  11. package/dist/runware/Flux2Flex.image2image.d.ts +34 -0
  12. package/dist/runware/Flux2Flex.text2image.d.ts +34 -0
  13. package/dist/runware/Flux2Pro.image2image.d.ts +31 -0
  14. package/dist/runware/Flux2Pro.text2image.d.ts +31 -0
  15. package/dist/runware/GptImage1.image2image.d.ts +31 -0
  16. package/dist/runware/GptImage1.text2image.d.ts +28 -0
  17. package/dist/runware/GptImage1Mini.image2image.d.ts +31 -0
  18. package/dist/runware/GptImage1Mini.text2image.d.ts +28 -0
  19. package/dist/runware/NanoBanana2Pro.image2image.d.ts +31 -0
  20. package/dist/runware/NanoBanana2Pro.text2image.d.ts +29 -0
  21. package/dist/runware/Seedream4.image2image.d.ts +30 -0
  22. package/dist/runware/Seedream4.text2image.d.ts +29 -0
  23. package/dist/runware/Seedream45.image2image.d.ts +32 -0
  24. package/dist/runware/Seedream45.text2image.d.ts +30 -0
  25. package/dist/runware/createImageProvider.d.ts +128 -0
  26. package/dist/runware/createRunwareClient.d.ts +56 -0
  27. package/dist/runware/index.d.ts +52 -0
  28. package/dist/runware/index.mjs +142 -0
  29. package/dist/runware/index.mjs.map +7 -0
  30. package/dist/runware/types.d.ts +18 -0
  31. package/dist/runware/utils.d.ts +45 -0
  32. package/package.json +27 -22
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.2.14] - 2025-12-15
6
+
7
+ ## [0.2.13] - 2025-12-15
8
+
9
+ ### New Features
10
+
11
+ - [all] **Runware Partner Integration**: Added Runware as a new AI provider service, offering access to multiple image and video generation models through a unified API. Runware provides a single endpoint for accessing various AI models with consistent configuration.
12
+ - **Image Generation**: FLUX.2 [dev], FLUX.2 [pro], FLUX.2 [flex], Seedream 4.0, Seedream 4.5, Nano Banana 2 Pro, GPT Image 1, GPT Image 1 Mini (all with text-to-image and image-to-image variants)
13
+ - **Video Generation**: Google Veo 3.1, Veo 3.1 Fast, OpenAI Sora 2, Sora 2 Pro (all with text-to-video and image-to-video variants)
14
+
5
15
  ## [0.2.12] - 2025-11-21
6
16
 
7
17
  ## [0.2.11] - 2025-11-21
package/README.md CHANGED
@@ -35,6 +35,8 @@ import ImageGeneration from '@imgly/plugin-ai-image-generation-web';
35
35
  import FalAiImage from '@imgly/plugin-ai-image-generation-web/fal-ai';
36
36
  // For OpenAI providers
37
37
  import OpenAiImage from '@imgly/plugin-ai-image-generation-web/open-ai';
38
+ // For Runware providers
39
+ import RunwareImage from '@imgly/plugin-ai-image-generation-web/runware';
38
40
 
39
41
  // Initialize CreativeEditor SDK
40
42
  CreativeEditorSDK.create(domElement, {
@@ -886,6 +888,191 @@ cesdk.i18n.setTranslations({
886
888
  });
887
889
  ```
888
890
 
891
+ ### Runware Providers
892
+
893
+ Runware provides access to multiple AI models through a unified API. These providers require a Runware proxy URL for authentication.
894
+
895
+ #### 14. Flux2Dev (Text-to-Image & Image-to-Image)
896
+
897
+ Black Forest Labs' FLUX.2 [dev] model with full architectural control:
898
+
899
+ ```typescript
900
+ // Text-to-Image
901
+ text2image: RunwareImage.Flux2Dev.Text2Image({
902
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
903
+ })
904
+
905
+ // Image-to-Image
906
+ image2image: RunwareImage.Flux2Dev.Image2Image({
907
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
908
+ })
909
+ ```
910
+
911
+ Key features:
912
+ - Open weights release with full architectural control
913
+ - Flexible sampling behavior and guidance strategies
914
+ - Resolution: 512-2048 pixels (multiples of 16)
915
+ - Up to 4 reference images for I2I
916
+ - Aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4
917
+
918
+ #### 15. Flux2Pro (Text-to-Image & Image-to-Image)
919
+
920
+ Black Forest Labs' FLUX.2 [pro] model with enhanced capabilities:
921
+
922
+ ```typescript
923
+ // Text-to-Image
924
+ text2image: RunwareImage.Flux2Pro.Text2Image({
925
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
926
+ })
927
+
928
+ // Image-to-Image
929
+ image2image: RunwareImage.Flux2Pro.Image2Image({
930
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
931
+ })
932
+ ```
933
+
934
+ Key features:
935
+ - Professional-grade image generation
936
+ - Resolution: 256-1920 pixels (multiples of 16)
937
+ - Up to 9 reference images for I2I
938
+ - Enhanced quality and detail
939
+ - Aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4
940
+
941
+ #### 16. Flux2Flex (Text-to-Image & Image-to-Image)
942
+
943
+ Black Forest Labs' FLUX.2 [flex] model optimized for flexibility:
944
+
945
+ ```typescript
946
+ // Text-to-Image
947
+ text2image: RunwareImage.Flux2Flex.Text2Image({
948
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
949
+ })
950
+
951
+ // Image-to-Image
952
+ image2image: RunwareImage.Flux2Flex.Image2Image({
953
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
954
+ })
955
+ ```
956
+
957
+ Key features:
958
+ - Flexible generation with fast inference
959
+ - Resolution: 256-1920 pixels (multiples of 16)
960
+ - Up to 10 reference images for I2I
961
+ - Aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4
962
+
963
+ #### 17. Seedream4 (Text-to-Image & Image-to-Image)
964
+
965
+ ByteDance's Seedream 4.0 model for high-quality generation:
966
+
967
+ ```typescript
968
+ // Text-to-Image
969
+ text2image: RunwareImage.Seedream4.Text2Image({
970
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
971
+ })
972
+
973
+ // Image-to-Image
974
+ image2image: RunwareImage.Seedream4.Image2Image({
975
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
976
+ })
977
+ ```
978
+
979
+ Key features:
980
+ - ByteDance's latest generation model
981
+ - High-quality photorealistic output
982
+ - Up to 14 reference images for I2I with character/subject consistency
983
+ - Aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4
984
+
985
+ #### 18. NanoBanana2Pro (Text-to-Image & Image-to-Image)
986
+
987
+ Google's Gemini 3 Pro based model for fast, high-quality generation:
988
+
989
+ ```typescript
990
+ // Text-to-Image
991
+ text2image: RunwareImage.NanoBanana2Pro.Text2Image({
992
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
993
+ })
994
+
995
+ // Image-to-Image
996
+ image2image: RunwareImage.NanoBanana2Pro.Image2Image({
997
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
998
+ })
999
+ ```
1000
+
1001
+ Key features:
1002
+ - Powered by Gemini 3 Pro
1003
+ - Fast generation with high quality
1004
+ - Up to 14 reference images for style/lighting transfer
1005
+ - Aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4
1006
+
1007
+ #### 19. GptImage1 (Text-to-Image & Image-to-Image) via Runware
1008
+
1009
+ OpenAI's GPT Image 1 model accessed through Runware:
1010
+
1011
+ ```typescript
1012
+ // Text-to-Image
1013
+ text2image: RunwareImage.GptImage1.Text2Image({
1014
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
1015
+ })
1016
+
1017
+ // Image-to-Image
1018
+ image2image: RunwareImage.GptImage1.Image2Image({
1019
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
1020
+ })
1021
+ ```
1022
+
1023
+ Key features:
1024
+ - OpenAI's latest image generation model
1025
+ - High-quality image generation and editing
1026
+ - Fixed resolutions: 1024×1024, 1536×1024, 1024×1536
1027
+ - Instruction-based editing for I2I
1028
+
1029
+ #### 20. Seedream45 (Text-to-Image & Image-to-Image) via Runware
1030
+
1031
+ ByteDance's Seedream 4.5 model with improved facial detail and text generation:
1032
+
1033
+ ```typescript
1034
+ // Text-to-Image
1035
+ text2image: RunwareImage.Seedream45.Text2Image({
1036
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
1037
+ })
1038
+
1039
+ // Image-to-Image
1040
+ image2image: RunwareImage.Seedream45.Image2Image({
1041
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
1042
+ })
1043
+ ```
1044
+
1045
+ Key features:
1046
+ - Improved facial detail rendering over Seedream 4.0
1047
+ - Enhanced text generation quality
1048
+ - Multi-image fusion capabilities
1049
+ - 2K resolution output (minimum 3.7M pixels)
1050
+ - Aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4
1051
+ - Up to 14 reference images for I2I
1052
+
1053
+ #### 21. GptImage1Mini (Text-to-Image & Image-to-Image) via Runware
1054
+
1055
+ OpenAI's cost-efficient GPT Image 1 Mini model accessed through Runware:
1056
+
1057
+ ```typescript
1058
+ // Text-to-Image
1059
+ text2image: RunwareImage.GptImage1Mini.Text2Image({
1060
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
1061
+ })
1062
+
1063
+ // Image-to-Image
1064
+ image2image: RunwareImage.GptImage1Mini.Image2Image({
1065
+ proxyUrl: 'http://your-runware-proxy.com/api/proxy'
1066
+ })
1067
+ ```
1068
+
1069
+ Key features:
1070
+ - ~80% cost savings compared to GPT Image 1
1071
+ - Fast generation times
1072
+ - Same capabilities as GPT Image 1
1073
+ - Fixed resolutions: 1024×1024, 1536×1024, 1024×1536
1074
+ - Instruction-based editing for I2I
1075
+
889
1076
  ### Customizing Labels and Translations
890
1077
 
891
1078
  You can customize all labels and text in the AI image generation interface using the translation system. This allows you to provide better labels for your users in any language.
@@ -1392,6 +1579,61 @@ FalAiImage.SeedreamV4Edit(config: {
1392
1579
  })
1393
1580
  ```
1394
1581
 
1582
+ ### Runware Providers
1583
+
1584
+ All Runware providers use the following configuration:
1585
+
1586
+ ```typescript
1587
+ interface RunwareProviderConfiguration {
1588
+ proxyUrl: string; // HTTP endpoint URL for the Runware proxy
1589
+ debug?: boolean; // Enable debug logging
1590
+ middlewares?: any[]; // Optional middleware functions
1591
+ history?: false | '@imgly/local' | '@imgly/indexedDB' | (string & {});
1592
+ }
1593
+ ```
1594
+
1595
+ #### Flux2Dev.Text2Image / Flux2Dev.Image2Image
1596
+
1597
+ ```typescript
1598
+ RunwareImage.Flux2Dev.Text2Image(config: RunwareProviderConfiguration)
1599
+ RunwareImage.Flux2Dev.Image2Image(config: RunwareProviderConfiguration)
1600
+ ```
1601
+
1602
+ #### Flux2Pro.Text2Image / Flux2Pro.Image2Image
1603
+
1604
+ ```typescript
1605
+ RunwareImage.Flux2Pro.Text2Image(config: RunwareProviderConfiguration)
1606
+ RunwareImage.Flux2Pro.Image2Image(config: RunwareProviderConfiguration)
1607
+ ```
1608
+
1609
+ #### Flux2Flex.Text2Image / Flux2Flex.Image2Image
1610
+
1611
+ ```typescript
1612
+ RunwareImage.Flux2Flex.Text2Image(config: RunwareProviderConfiguration)
1613
+ RunwareImage.Flux2Flex.Image2Image(config: RunwareProviderConfiguration)
1614
+ ```
1615
+
1616
+ #### Seedream4.Text2Image / Seedream4.Image2Image
1617
+
1618
+ ```typescript
1619
+ RunwareImage.Seedream4.Text2Image(config: RunwareProviderConfiguration)
1620
+ RunwareImage.Seedream4.Image2Image(config: RunwareProviderConfiguration)
1621
+ ```
1622
+
1623
+ #### NanoBanana2Pro.Text2Image / NanoBanana2Pro.Image2Image
1624
+
1625
+ ```typescript
1626
+ RunwareImage.NanoBanana2Pro.Text2Image(config: RunwareProviderConfiguration)
1627
+ RunwareImage.NanoBanana2Pro.Image2Image(config: RunwareProviderConfiguration)
1628
+ ```
1629
+
1630
+ #### GptImage1.Text2Image / GptImage1.Image2Image (Runware)
1631
+
1632
+ ```typescript
1633
+ RunwareImage.GptImage1.Text2Image(config: RunwareProviderConfiguration)
1634
+ RunwareImage.GptImage1.Image2Image(config: RunwareProviderConfiguration)
1635
+ ```
1636
+
1395
1637
  ## UI Integration
1396
1638
 
1397
1639
  The plugin automatically registers the following UI components:
@@ -1492,6 +1734,18 @@ const myImageProvider = {
1492
1734
  - NanoBananaProEdit: `ly.img.ai.fal-ai/nano-banana-pro/edit`
1493
1735
  - SeedreamV4: `ly.img.ai.fal-ai/bytedance/seedream/v4/text-to-image`
1494
1736
  - SeedreamV4Edit: `ly.img.ai.fal-ai/bytedance/seedream/v4/edit`
1737
+ - Runware Flux2Dev.Text2Image: `ly.img.ai.runware/bfl/flux-2-dev`
1738
+ - Runware Flux2Dev.Image2Image: `ly.img.ai.runware/bfl/flux-2-dev/image2image`
1739
+ - Runware Flux2Pro.Text2Image: `ly.img.ai.runware/bfl/flux-2-pro`
1740
+ - Runware Flux2Pro.Image2Image: `ly.img.ai.runware/bfl/flux-2-pro/image2image`
1741
+ - Runware Flux2Flex.Text2Image: `ly.img.ai.runware/bfl/flux-2-flex`
1742
+ - Runware Flux2Flex.Image2Image: `ly.img.ai.runware/bfl/flux-2-flex/image2image`
1743
+ - Runware Seedream4.Text2Image: `ly.img.ai.runware/bytedance/seedream-4`
1744
+ - Runware Seedream4.Image2Image: `ly.img.ai.runware/bytedance/seedream-4/image2image`
1745
+ - Runware NanoBanana2Pro.Text2Image: `ly.img.ai.runware/google/nano-banana-2-pro`
1746
+ - Runware NanoBanana2Pro.Image2Image: `ly.img.ai.runware/google/nano-banana-2-pro/image2image`
1747
+ - Runware GptImage1.Text2Image: `ly.img.ai.runware/openai/gpt-image-1`
1748
+ - Runware GptImage1.Image2Image: `ly.img.ai.runware/openai/gpt-image-1/image2image`
1495
1749
 
1496
1750
  ### Asset History
1497
1751
 
@@ -1513,6 +1767,18 @@ Generated images are automatically stored in asset sources with the following ID
1513
1767
  - NanoBananaProEdit: `fal-ai/nano-banana-pro/edit.history`
1514
1768
  - SeedreamV4: `fal-ai/bytedance/seedream/v4/text-to-image.history`
1515
1769
  - SeedreamV4Edit: `fal-ai/bytedance/seedream/v4/edit.history`
1770
+ - Runware Flux2Dev.Text2Image: `runware/bfl/flux-2-dev.history`
1771
+ - Runware Flux2Dev.Image2Image: `runware/bfl/flux-2-dev/image2image.history`
1772
+ - Runware Flux2Pro.Text2Image: `runware/bfl/flux-2-pro.history`
1773
+ - Runware Flux2Pro.Image2Image: `runware/bfl/flux-2-pro/image2image.history`
1774
+ - Runware Flux2Flex.Text2Image: `runware/bfl/flux-2-flex.history`
1775
+ - Runware Flux2Flex.Image2Image: `runware/bfl/flux-2-flex/image2image.history`
1776
+ - Runware Seedream4.Text2Image: `runware/bytedance/seedream-4.history`
1777
+ - Runware Seedream4.Image2Image: `runware/bytedance/seedream-4/image2image.history`
1778
+ - Runware NanoBanana2Pro.Text2Image: `runware/google/nano-banana-2-pro.history`
1779
+ - Runware NanoBanana2Pro.Image2Image: `runware/google/nano-banana-2-pro/image2image.history`
1780
+ - Runware GptImage1.Text2Image: `runware/openai/gpt-image-1.history`
1781
+ - Runware GptImage1.Image2Image: `runware/openai/gpt-image-1/image2image.history`
1516
1782
 
1517
1783
  ### Dock Integration
1518
1784