@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
@@ -0,0 +1,32 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for FLUX.2 [dev] image-to-image
6
+ */
7
+ export type Flux2DevImage2ImageInput = {
8
+ prompt: string;
9
+ image_url?: string;
10
+ image_urls?: string[];
11
+ };
12
+ /**
13
+ * FLUX.2 [dev] Image-to-Image - Transform images using FLUX.2 [dev]
14
+ *
15
+ * AIR: runware:400@1
16
+ *
17
+ * Features:
18
+ * - Full architectural control for developers
19
+ * - Flexible sampling behavior and guidance strategies
20
+ * - Image transformation with text prompts
21
+ * - Up to 4 reference images
22
+ *
23
+ * Specifications:
24
+ * - Resolution: 512-2048 pixels (multiples of 16)
25
+ * - CFG Scale: 1-20 (default: 4)
26
+ * - Steps: 1-50
27
+ * - Prompt: 1-10,000 characters
28
+ */
29
+ export declare function Flux2DevImage2Image(config: RunwareProviderConfiguration): (context: {
30
+ cesdk: CreativeEditorSDK;
31
+ }) => Promise<Provider<'image', Flux2DevImage2ImageInput, ImageOutput>>;
32
+ export default Flux2DevImage2Image;
@@ -0,0 +1,33 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for FLUX.2 [dev]
6
+ *
7
+ * Uses standard aspect ratios with icons available.
8
+ */
9
+ export type Flux2DevInput = {
10
+ prompt: string;
11
+ aspect_ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4';
12
+ };
13
+ /**
14
+ * FLUX.2 [dev] - Open weights release from Black Forest Labs
15
+ *
16
+ * AIR: runware:400@1
17
+ *
18
+ * Features:
19
+ * - Full architectural control for developers
20
+ * - Flexible sampling behavior and guidance strategies
21
+ * - Text-to-image and reference-to-image support
22
+ * - Up to 4 reference images
23
+ *
24
+ * Specifications:
25
+ * - Resolution: 512-2048 pixels (multiples of 16)
26
+ * - CFG Scale: 1-20 (default: 4)
27
+ * - Steps: 1-50
28
+ * - Prompt: 1-10,000 characters
29
+ */
30
+ export declare function Flux2Dev(config: RunwareProviderConfiguration): (context: {
31
+ cesdk: CreativeEditorSDK;
32
+ }) => Promise<Provider<'image', Flux2DevInput, ImageOutput>>;
33
+ export default Flux2Dev;
@@ -0,0 +1,34 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for FLUX.2 [flex] image-to-image
6
+ */
7
+ export type Flux2FlexImage2ImageInput = {
8
+ prompt: string;
9
+ image_url?: string;
10
+ image_urls?: string[];
11
+ };
12
+ /**
13
+ * FLUX.2 [flex] Image-to-Image - Transform images using FLUX.2 [flex]
14
+ *
15
+ * AIR: bfl:6@1
16
+ *
17
+ * Features:
18
+ * - Flexible model from Black Forest Labs
19
+ * - Image transformation with text prompts
20
+ * - Up to 10 reference images
21
+ * - Strongest text rendering accuracy in the FLUX family
22
+ * - Excellent typography and branded design support
23
+ *
24
+ * Specifications:
25
+ * - Resolution: 256-1920 pixels (multiples of 16)
26
+ * - Max output: 4 megapixels
27
+ * - Prompt: 1-3,000 characters
28
+ * - CFG Scale: 1-20 (default: 2.5)
29
+ * - Steps: 1-50
30
+ */
31
+ export declare function Flux2FlexImage2Image(config: RunwareProviderConfiguration): (context: {
32
+ cesdk: CreativeEditorSDK;
33
+ }) => Promise<Provider<'image', Flux2FlexImage2ImageInput, ImageOutput>>;
34
+ export default Flux2FlexImage2Image;
@@ -0,0 +1,34 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for FLUX.2 [flex]
6
+ *
7
+ * Uses standard aspect ratios with icons available.
8
+ */
9
+ export type Flux2FlexInput = {
10
+ prompt: string;
11
+ aspect_ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4';
12
+ };
13
+ /**
14
+ * FLUX.2 [flex] - Flexible model from Black Forest Labs
15
+ *
16
+ * AIR: bfl:6@1
17
+ *
18
+ * Features:
19
+ * - Text-to-image and reference-to-image support
20
+ * - Up to 10 reference images
21
+ * - Strongest text rendering accuracy in the FLUX family
22
+ * - Excellent typography and branded design support
23
+ *
24
+ * Specifications:
25
+ * - Resolution: 256-1920 pixels (multiples of 16)
26
+ * - Max output: 4 megapixels
27
+ * - Prompt: 1-3,000 characters
28
+ * - CFG Scale: 1-20 (default: 2.5)
29
+ * - Steps: 1-50
30
+ */
31
+ export declare function Flux2Flex(config: RunwareProviderConfiguration): (context: {
32
+ cesdk: CreativeEditorSDK;
33
+ }) => Promise<Provider<'image', Flux2FlexInput, ImageOutput>>;
34
+ export default Flux2Flex;
@@ -0,0 +1,31 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for FLUX.2 [pro] image-to-image
6
+ */
7
+ export type Flux2ProImage2ImageInput = {
8
+ prompt: string;
9
+ image_url?: string;
10
+ image_urls?: string[];
11
+ };
12
+ /**
13
+ * FLUX.2 [pro] Image-to-Image - Transform images using FLUX.2 [pro]
14
+ *
15
+ * AIR: bfl:5@1
16
+ *
17
+ * Features:
18
+ * - Professional model from Black Forest Labs
19
+ * - Image transformation with text prompts
20
+ * - Up to 9 reference images
21
+ * - Prompt upsampling support
22
+ *
23
+ * Specifications:
24
+ * - Resolution: 256-1920 pixels (multiples of 16)
25
+ * - Max output: 4 megapixels
26
+ * - Prompt: 1-3,000 characters
27
+ */
28
+ export declare function Flux2ProImage2Image(config: RunwareProviderConfiguration): (context: {
29
+ cesdk: CreativeEditorSDK;
30
+ }) => Promise<Provider<'image', Flux2ProImage2ImageInput, ImageOutput>>;
31
+ export default Flux2ProImage2Image;
@@ -0,0 +1,31 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for FLUX.2 [pro]
6
+ *
7
+ * Uses standard aspect ratios with icons available.
8
+ */
9
+ export type Flux2ProInput = {
10
+ prompt: string;
11
+ aspect_ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4';
12
+ };
13
+ /**
14
+ * FLUX.2 [pro] - Professional model from Black Forest Labs
15
+ *
16
+ * AIR: bfl:5@1
17
+ *
18
+ * Features:
19
+ * - Text-to-image and reference-to-image support
20
+ * - Up to 9 reference images
21
+ * - Prompt upsampling support
22
+ *
23
+ * Specifications:
24
+ * - Resolution: 256-1920 pixels (multiples of 16)
25
+ * - Max output: 4 megapixels
26
+ * - Prompt: 1-3,000 characters
27
+ */
28
+ export declare function Flux2Pro(config: RunwareProviderConfiguration): (context: {
29
+ cesdk: CreativeEditorSDK;
30
+ }) => Promise<Provider<'image', Flux2ProInput, ImageOutput>>;
31
+ export default Flux2Pro;
@@ -0,0 +1,31 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for GPT Image 1 image-to-image
6
+ */
7
+ export type GptImage1Image2ImageInput = {
8
+ prompt: string;
9
+ image_url?: string;
10
+ image_urls?: string[];
11
+ format?: '1024x1024' | '1536x1024' | '1024x1536';
12
+ };
13
+ /**
14
+ * GPT Image 1 Image-to-Image - Transform images using OpenAI's GPT Image 1
15
+ *
16
+ * AIR: openai:1@1
17
+ *
18
+ * Features:
19
+ * - High-fidelity image editing with GPT-4o architecture
20
+ * - Instruction-based image transformation
21
+ * - Superior text rendering and prompt following
22
+ * - Up to 16 reference images supported
23
+ *
24
+ * Specifications:
25
+ * - Prompt: up to 32,000 characters
26
+ * - Output dimensions: 1024×1024, 1536×1024, 1024×1536
27
+ */
28
+ export declare function GptImage1Image2Image(config: RunwareProviderConfiguration): (context: {
29
+ cesdk: CreativeEditorSDK;
30
+ }) => Promise<Provider<'image', GptImage1Image2ImageInput, ImageOutput>>;
31
+ export default GptImage1Image2Image;
@@ -0,0 +1,28 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for GPT Image 1 text-to-image
6
+ */
7
+ export type GptImage1Input = {
8
+ prompt: string;
9
+ format?: '1024x1024' | '1536x1024' | '1024x1536';
10
+ };
11
+ /**
12
+ * GPT Image 1 - OpenAI's advanced AI image generation model
13
+ *
14
+ * AIR: openai:1@1
15
+ *
16
+ * Features:
17
+ * - High-fidelity image generation with GPT-4o architecture
18
+ * - Enhanced prompt following and superior text rendering
19
+ * - Advanced multimodal capabilities
20
+ *
21
+ * Specifications:
22
+ * - Prompt: up to 32,000 characters
23
+ * - Dimensions: 1024×1024, 1536×1024, 1024×1536
24
+ */
25
+ export declare function GptImage1(config: RunwareProviderConfiguration): (context: {
26
+ cesdk: CreativeEditorSDK;
27
+ }) => Promise<Provider<'image', GptImage1Input, ImageOutput>>;
28
+ export default GptImage1;
@@ -0,0 +1,31 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for GPT Image 1 Mini image-to-image
6
+ */
7
+ export type GptImage1MiniImage2ImageInput = {
8
+ prompt: string;
9
+ image_url?: string;
10
+ image_urls?: string[];
11
+ format?: '1024x1024' | '1536x1024' | '1024x1536';
12
+ };
13
+ /**
14
+ * GPT Image 1 Mini Image-to-Image - Transform images using OpenAI's GPT Image 1 Mini
15
+ *
16
+ * AIR: openai:1@2
17
+ *
18
+ * Features:
19
+ * - ~80% cost savings compared to GPT Image 1
20
+ * - Fast generation times
21
+ * - Instruction-based image transformation
22
+ * - Up to 16 reference images supported
23
+ *
24
+ * Specifications:
25
+ * - Prompt: up to 32,000 characters
26
+ * - Output dimensions: 1024×1024, 1536×1024, 1024×1536
27
+ */
28
+ export declare function GptImage1MiniImage2Image(config: RunwareProviderConfiguration): (context: {
29
+ cesdk: CreativeEditorSDK;
30
+ }) => Promise<Provider<'image', GptImage1MiniImage2ImageInput, ImageOutput>>;
31
+ export default GptImage1MiniImage2Image;
@@ -0,0 +1,28 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for GPT Image 1 Mini text-to-image
6
+ */
7
+ export type GptImage1MiniInput = {
8
+ prompt: string;
9
+ format?: '1024x1024' | '1536x1024' | '1024x1536';
10
+ };
11
+ /**
12
+ * GPT Image 1 Mini - OpenAI's cost-efficient AI image generation model
13
+ *
14
+ * AIR: openai:1@2
15
+ *
16
+ * Features:
17
+ * - ~80% cost savings compared to GPT Image 1
18
+ * - Fast generation times
19
+ * - Same multimodal capabilities as GPT Image 1
20
+ *
21
+ * Specifications:
22
+ * - Prompt: up to 32,000 characters
23
+ * - Dimensions: 1024×1024, 1536×1024, 1024×1536
24
+ */
25
+ export declare function GptImage1Mini(config: RunwareProviderConfiguration): (context: {
26
+ cesdk: CreativeEditorSDK;
27
+ }) => Promise<Provider<'image', GptImage1MiniInput, ImageOutput>>;
28
+ export default GptImage1Mini;
@@ -0,0 +1,31 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for Nano Banana 2 Pro image-to-image
6
+ */
7
+ export type NanoBanana2ProImage2ImageInput = {
8
+ prompt: string;
9
+ image_url?: string;
10
+ image_urls?: string[];
11
+ };
12
+ /**
13
+ * Nano Banana 2 Pro Image-to-Image - Transform images using Google's Gemini 3 Pro
14
+ *
15
+ * AIR: google:4@2
16
+ *
17
+ * Features:
18
+ * - Professional-grade controls
19
+ * - Enhanced reasoning capabilities
20
+ * - Style and lighting transfer
21
+ * - Up to 14 reference images
22
+ *
23
+ * Specifications:
24
+ * - Resolution: 1K, 2K, and 4K options
25
+ * - Prompt: 3-45,000 characters
26
+ * - Input image: 300-2048 pixels, max 20MB
27
+ */
28
+ export declare function NanoBanana2ProImage2Image(config: RunwareProviderConfiguration): (context: {
29
+ cesdk: CreativeEditorSDK;
30
+ }) => Promise<Provider<'image', NanoBanana2ProImage2ImageInput, ImageOutput>>;
31
+ export default NanoBanana2ProImage2Image;
@@ -0,0 +1,29 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for Nano Banana 2 Pro text-to-image
6
+ */
7
+ export type NanoBanana2ProInput = {
8
+ prompt: string;
9
+ aspect_ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4';
10
+ };
11
+ /**
12
+ * Nano Banana 2 Pro (Gemini 3 Pro) - Google's advanced AI image generation model
13
+ *
14
+ * AIR: google:4@2
15
+ *
16
+ * Features:
17
+ * - Professional-grade controls
18
+ * - Enhanced reasoning capabilities
19
+ * - Supports 1K, 2K, and 4K resolutions
20
+ * - Invisible SynthID digital watermark
21
+ *
22
+ * Specifications:
23
+ * - Prompt: 3-45,000 characters
24
+ * - Up to 14 reference images (I2I mode)
25
+ */
26
+ export declare function NanoBanana2Pro(config: RunwareProviderConfiguration): (context: {
27
+ cesdk: CreativeEditorSDK;
28
+ }) => Promise<Provider<'image', NanoBanana2ProInput, ImageOutput>>;
29
+ export default NanoBanana2Pro;
@@ -0,0 +1,30 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for Seedream 4.0 image-to-image
6
+ */
7
+ export type Seedream4Image2ImageInput = {
8
+ prompt: string;
9
+ image_url?: string;
10
+ image_urls?: string[];
11
+ };
12
+ /**
13
+ * Seedream 4.0 Image-to-Image - Transform images using ByteDance's Seedream 4.0
14
+ *
15
+ * AIR: bytedance:5@0
16
+ *
17
+ * Features:
18
+ * - Character consistency across outputs
19
+ * - Text-guided image editing
20
+ * - Up to 14 reference images
21
+ *
22
+ * Specifications:
23
+ * - Resolution: 1K, 2K, and 4K options
24
+ * - Prompt: 1-2,000 characters
25
+ * - Dimensions must be divisible by 64
26
+ */
27
+ export declare function Seedream4Image2Image(config: RunwareProviderConfiguration): (context: {
28
+ cesdk: CreativeEditorSDK;
29
+ }) => Promise<Provider<'image', Seedream4Image2ImageInput, ImageOutput>>;
30
+ export default Seedream4Image2Image;
@@ -0,0 +1,29 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for Seedream 4.0 text-to-image
6
+ */
7
+ export type Seedream4Input = {
8
+ prompt: string;
9
+ aspect_ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4';
10
+ };
11
+ /**
12
+ * Seedream 4.0 - ByteDance's multimodal AI image generation model
13
+ *
14
+ * AIR: bytedance:5@0
15
+ *
16
+ * Features:
17
+ * - Ultra-fast 2K/4K rendering
18
+ * - Character consistency across outputs
19
+ * - Sequential image generation for storyboards
20
+ *
21
+ * Specifications:
22
+ * - Resolution: 1K, 2K, and 4K options
23
+ * - Prompt: 1-2,000 characters
24
+ * - Up to 14 reference images (I2I mode)
25
+ */
26
+ export declare function Seedream4(config: RunwareProviderConfiguration): (context: {
27
+ cesdk: CreativeEditorSDK;
28
+ }) => Promise<Provider<'image', Seedream4Input, ImageOutput>>;
29
+ export default Seedream4;
@@ -0,0 +1,32 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for Seedream 4.5 image-to-image
6
+ */
7
+ export type Seedream45Image2ImageInput = {
8
+ prompt: string;
9
+ image_url?: string;
10
+ image_urls?: string[];
11
+ };
12
+ /**
13
+ * Seedream 4.5 Image-to-Image - Transform images using ByteDance's Seedream 4.5
14
+ *
15
+ * AIR: bytedance:seedream@4.5
16
+ *
17
+ * Features:
18
+ * - Improved facial detail rendering
19
+ * - Enhanced text generation quality
20
+ * - Multi-image fusion capabilities
21
+ * - Up to 14 reference images
22
+ *
23
+ * Specifications:
24
+ * - Resolution: 2K and 4K options (uses 2K by default)
25
+ * - Prompt: 1-2,000 characters
26
+ * - Min 3,686,400 pixels, max 16,777,216 pixels
27
+ * - Uses resolution parameter to auto-match input image aspect ratio
28
+ */
29
+ export declare function Seedream45Image2Image(config: RunwareProviderConfiguration): (context: {
30
+ cesdk: CreativeEditorSDK;
31
+ }) => Promise<Provider<'image', Seedream45Image2ImageInput, ImageOutput>>;
32
+ export default Seedream45Image2Image;
@@ -0,0 +1,30 @@
1
+ import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import { RunwareProviderConfiguration } from './types';
4
+ /**
5
+ * Input interface for Seedream 4.5 text-to-image
6
+ */
7
+ export type Seedream45Input = {
8
+ prompt: string;
9
+ aspect_ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4';
10
+ };
11
+ /**
12
+ * Seedream 4.5 - ByteDance's production-focused AI image generation model
13
+ *
14
+ * AIR: bytedance:seedream@4.5
15
+ *
16
+ * Features:
17
+ * - Improved facial detail rendering
18
+ * - Enhanced text generation quality
19
+ * - Multi-image fusion capabilities
20
+ * - 2K/4K resolution support
21
+ *
22
+ * Specifications:
23
+ * - Resolution: 2K and 4K options
24
+ * - Prompt: 1-2,000 characters
25
+ * - Up to 14 reference images (I2I mode)
26
+ */
27
+ export declare function Seedream45(config: RunwareProviderConfiguration): (context: {
28
+ cesdk: CreativeEditorSDK;
29
+ }) => Promise<Provider<'image', Seedream45Input, ImageOutput>>;
30
+ export default Seedream45;
@@ -0,0 +1,128 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ import type CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ import type { CreativeEngine } from '@cesdk/cesdk-js';
4
+ import { ImageOutput, RenderCustomProperty, GetBlockInput, Provider, Middleware } from '@imgly/plugin-ai-generation-web';
5
+ import { DimensionConstraints } from './utils';
6
+ import { ImageQuickActionSupportMap } from '../types';
7
+ /**
8
+ * Configuration for Runware image providers.
9
+ */
10
+ type ImageProviderConfiguration = {
11
+ /**
12
+ * HTTP endpoint URL for the Runware proxy. The proxy handles API key injection.
13
+ */
14
+ proxyUrl: string;
15
+ /**
16
+ * Enable debug logging for provider creation and API calls.
17
+ */
18
+ debug?: boolean;
19
+ /**
20
+ * Middleware functions to process inputs/outputs.
21
+ */
22
+ middlewares?: Middleware<any, any>[];
23
+ /**
24
+ * @deprecated Use `middlewares` instead.
25
+ */
26
+ middleware?: Middleware<any, any>[];
27
+ /**
28
+ * Override provider's default history asset source.
29
+ */
30
+ history?: false | '@imgly/local' | '@imgly/indexedDB' | (string & {});
31
+ /**
32
+ * Configure supported quick actions.
33
+ */
34
+ supportedQuickActions?: {
35
+ [quickActionId: string]: Partial<ImageQuickActionSupportMap<any>[string]> | false | null;
36
+ };
37
+ };
38
+ /**
39
+ * Options for creating a Runware image provider.
40
+ */
41
+ interface CreateProviderOptions<I extends Record<string, any>> {
42
+ /**
43
+ * Runware model identifier (AIR format, e.g., 'bfl:5@1').
44
+ */
45
+ modelId: string;
46
+ /**
47
+ * Unique provider identifier for registration.
48
+ */
49
+ providerId: string;
50
+ /**
51
+ * Human-readable provider name displayed in the UI.
52
+ */
53
+ name: string;
54
+ /**
55
+ * OpenAPI schema document describing the input parameters.
56
+ */
57
+ schema: OpenAPIV3.Document;
58
+ /**
59
+ * JSON reference to the input schema (e.g., '#/components/schemas/Input').
60
+ */
61
+ inputReference: string;
62
+ /**
63
+ * User flow mode for the provider panel.
64
+ */
65
+ useFlow?: 'placeholder' | 'generation-only';
66
+ /**
67
+ * Initialization callback when the provider is registered.
68
+ */
69
+ initialize?: (context: {
70
+ cesdk?: CreativeEditorSDK;
71
+ engine: CreativeEngine;
72
+ }) => void;
73
+ /**
74
+ * Custom property renderers for the input panel.
75
+ */
76
+ renderCustomProperty?: RenderCustomProperty;
77
+ /**
78
+ * Quick actions this provider supports.
79
+ */
80
+ supportedQuickActions?: ImageQuickActionSupportMap<I>;
81
+ /**
82
+ * Get block dimensions from input parameters.
83
+ */
84
+ getBlockInput?: GetBlockInput<'image', I>;
85
+ /**
86
+ * Extract image dimensions from input parameters.
87
+ */
88
+ getImageSize?: (input: I) => {
89
+ width: number;
90
+ height: number;
91
+ };
92
+ /**
93
+ * Transform input parameters to Runware API format.
94
+ */
95
+ mapInput: (input: I) => Record<string, any>;
96
+ /**
97
+ * Provider-specific middleware functions.
98
+ */
99
+ middleware?: Middleware<I, ImageOutput>[];
100
+ /**
101
+ * Custom headers to include in API requests.
102
+ */
103
+ headers?: Record<string, string>;
104
+ /**
105
+ * CE.SDK instance for image URL conversion.
106
+ */
107
+ cesdk?: CreativeEditorSDK;
108
+ /**
109
+ * Model-specific dimension constraints for image-to-image.
110
+ * Required for I2I providers to properly constrain output dimensions.
111
+ */
112
+ dimensionConstraints?: DimensionConstraints;
113
+ /**
114
+ * Skip automatic dimension injection for image-to-image.
115
+ * When true, the API will auto-detect dimensions from the reference image.
116
+ */
117
+ skipAutoDimensions?: boolean;
118
+ }
119
+ /**
120
+ * Creates a Runware image provider from schema. This should work out of the box
121
+ * but may be rough around the edges and should/can be further customized.
122
+ */
123
+ declare function createImageProvider<I extends Record<string, any> & {
124
+ image_url?: string;
125
+ image_urls?: string[];
126
+ }>(options: CreateProviderOptions<I>, config: ImageProviderConfiguration): Provider<'image', I, ImageOutput>;
127
+ export default createImageProvider;
128
+ export type { ImageProviderConfiguration as RunwareProviderConfiguration };