You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Flag | Type | Required | Example | Description |
237
237
| --- | --- | --- | --- | --- |
238
238
|`--prompt`|`string`| yes |`"A red bicycle in a studio"`| The prompt describing the desired image content. |
239
-
|`--model`|`string`| no |`google/nano-banana-2`| The AI model to use for image generation. Defaults to google/nano-banana-2. Backend-supported models include gpt-image-2 and Google Nano Banana variants. |
239
+
|`--model`|`string`| no |`google/nano-banana-2`| The AI model to use for image generation. Defaults to google/nano-banana-2. Backend-supported models include openai/gpt-image-2 and Google Nano Banana variants. |
240
240
|`--format`|`string`| no |`jpg`| Format of the generated image. |
241
241
|`--seed`|`number`| no | — | Seed for the random number generator. |
242
242
|`--aspect-ratio`|`string`| no | — | Aspect ratio of the generated image. |
| Flag | Type | Required | Example | Description |
105
105
| --- | --- | --- | --- | --- |
106
106
|`--prompt`|`string`| yes |`"A red bicycle in a studio"`| The prompt describing the desired image content. |
107
-
|`--model`|`string`| no |`google/nano-banana-2`| The AI model to use for image generation. Defaults to google/nano-banana-2. Backend-supported models include gpt-image-2 and Google Nano Banana variants. |
107
+
|`--model`|`string`| no |`google/nano-banana-2`| The AI model to use for image generation. Defaults to google/nano-banana-2. Backend-supported models include openai/gpt-image-2 and Google Nano Banana variants. |
108
108
|`--format`|`string`| no |`jpg`| Format of the generated image. |
109
109
|`--seed`|`number`| no | — | Seed for the random number generator. |
110
110
|`--aspect-ratio`|`string`| no | — | Aspect ratio of the generated image. |
Copy file name to clipboardExpand all lines: packages/node/src/alphalib/types/robots/image-generate.ts
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ Best practice:
85
85
.string()
86
86
.optional()
87
87
.describe(
88
-
'The AI model to use. Defaults to google/nano-banana. Supported models include flux-1.1-pro-ultra, flux-schnell, recraft-v3, google/nano-banana, google/nano-banana-2, google/nano-banana-pro, gpt-image-2, and stability-ai/stable-diffusion-inpainting.',
88
+
'The AI model to use. Defaults to google/nano-banana. Supported models include flux-1.1-pro-ultra, flux-schnell, recraft-v3, google/nano-banana, google/nano-banana-2, google/nano-banana-pro, openai/gpt-image-2, and stability-ai/stable-diffusion-inpainting. The legacy alias gpt-image-2 is also accepted for backwards compatibility.',
89
89
),
90
90
prompt: z
91
91
.string()
@@ -96,7 +96,7 @@ Best practice:
96
96
.enum(['jpeg','jpg','png','gif','webp','svg'])
97
97
.optional()
98
98
.describe(
99
-
'Output format. Defaults depend on model: png for Google models and gpt-image-2, svg for recraft-v3, jpeg for others. Google models currently return PNG only.',
99
+
'Output format. Defaults depend on model: png for Google models and openai/gpt-image-2, svg for recraft-v3, jpeg for others. Google models currently return PNG only.',
100
100
),
101
101
seed: z.number().optional().describe('Seed for the random number generator.'),
102
102
aspect_ratio: z
@@ -108,11 +108,15 @@ Best practice:
108
108
height: z
109
109
.number()
110
110
.optional()
111
-
.describe('Requested output height in pixels (mainly used by Google image models and gpt-image-2).'),
111
+
.describe(
112
+
'Requested output height in pixels (mainly used by Google image models and openai/gpt-image-2).',
113
+
),
112
114
width: z
113
115
.number()
114
116
.optional()
115
-
.describe('Requested output width in pixels (mainly used by Google image models and gpt-image-2).'),
117
+
.describe(
118
+
'Requested output width in pixels (mainly used by Google image models and openai/gpt-image-2).',
119
+
),
116
120
style: z.string().optional().describe('Style of the generated image.'),
description: `The AI model to use for image generation. Defaults to ${defaultImageGenerateModel}. Backend-supported models include gpt-image-2 and Google Nano Banana variants.`,
24
+
description: `The AI model to use for image generation. Defaults to ${defaultImageGenerateModel}. Backend-supported models include openai/gpt-image-2 and Google Nano Banana variants.`,
'transloadit image generate --model gpt-image-2 --width 1024 --height 1024 --prompt "A ceramic coffee mug on a white sweep" --output output.png',
98
+
'transloadit image generate --model openai/gpt-image-2 --width 1024 --height 1024 --prompt "A ceramic coffee mug on a white sweep" --output output.png',
| Flag | Type | Required | Example | Description |
237
237
| --- | --- | --- | --- | --- |
238
238
|`--prompt`|`string`| yes |`"A red bicycle in a studio"`| The prompt describing the desired image content. |
239
-
|`--model`|`string`| no |`google/nano-banana-2`| The AI model to use for image generation. Defaults to google/nano-banana-2. Backend-supported models include gpt-image-2 and Google Nano Banana variants. |
239
+
|`--model`|`string`| no |`google/nano-banana-2`| The AI model to use for image generation. Defaults to google/nano-banana-2. Backend-supported models include openai/gpt-image-2 and Google Nano Banana variants. |
240
240
|`--format`|`string`| no |`jpg`| Format of the generated image. |
241
241
|`--seed`|`number`| no | — | Seed for the random number generator. |
242
242
|`--aspect-ratio`|`string`| no | — | Aspect ratio of the generated image. |
0 commit comments