


























@@ -79,12 +79,15 @@ internal image endpoints remain blocked by default.
7979| OpenAI image generation with Codex subscription auth | `openai/gpt-image-2` | OpenAI Codex OAuth |
8080| OpenAI transparent-background PNG/WebP | `openai/gpt-image-1.5` | `OPENAI_API_KEY` or OpenAI Codex OAuth |
8181| DeepInfra image generation | `deepinfra/black-forest-labs/FLUX-1-schnell` | `DEEPINFRA_API_KEY` |
82+| fal Krea 2 expressive/style-directed generation | `fal/krea/v2/medium/text-to-image` | `FAL_KEY` |
8283| OpenRouter image generation | `openrouter/google/gemini-3.1-flash-image-preview` | `OPENROUTER_API_KEY` |
8384| LiteLLM image generation | `litellm/gpt-image-2` | `LITELLM_API_KEY` |
8485| Google Gemini image generation | `google/gemini-3.1-flash-image-preview` | `GEMINI_API_KEY` or `GOOGLE_API_KEY` |
85868687The same `image_generate` tool handles text-to-image and reference-image
8788editing. Use `image` for one reference or `images` for multiple references.
89+For Krea 2 models on fal, those references are sent as style references
90+instead of edit inputs.
8891Provider-supported output hints such as `quality`, `outputFormat`, and
8992`background` are forwarded when available and reported as ignored when a
9093provider does not support them. Bundled transparent-background support is
@@ -121,13 +124,13 @@ current session:
121124122125## Provider capabilities
123126124-| Capability | ComfyUI | DeepInfra | fal | Google | MiniMax | OpenAI | Vydra | xAI |
125-| --------------------- | ------------------ | --------- | ------------------------- | -------------- | --------------------- | -------------- | ----- | -------------- |
126-| Generate (max count) | Workflow-defined | 4 | 4 | 4 | 9 | 4 | 1 | 4 |
127-| Edit / reference | 1 image (workflow) | 1 image | Flux: 1; GPT: 10; NB2: 14 | Up to 5 images | 1 image (subject ref) | Up to 5 images | - | Up to 5 images |
128-| Size control | - | ✓ | ✓ | ✓ | - | Up to 4K | - | - |
129-| Aspect ratio | - | - | ✓ | ✓ | ✓ | - | - | ✓ |
130-| Resolution (1K/2K/4K) | - | - | ✓ | ✓ | - | - | - | 1K, 2K |
127+| Capability | ComfyUI | DeepInfra | fal | Google | MiniMax | OpenAI | Vydra | xAI |
128+| --------------------- | ------------------ | --------- | ---------------------------------------------- | -------------- | --------------------- | -------------- | ----- | -------------- |
129+| Generate (max count) | Workflow-defined | 4 | 4 | 4 | 9 | 4 | 1 | 4 |
130+| Edit / reference | 1 image (workflow) | 1 image | Flux: 1; GPT: 10; Krea style refs: 10; NB2: 14 | Up to 5 images | 1 image (subject ref) | Up to 5 images | - | Up to 5 images |
131+| Size control | - | ✓ | ✓ | ✓ | - | Up to 4K | - | - |
132+| Aspect ratio | - | - | ✓ | ✓ | ✓ | - | - | ✓ |
133+| Resolution (1K/2K/4K) | - | - | ✓ | ✓ | - | - | - | 1K, 2K |
131134132135## Tool parameters
133136@@ -146,13 +149,16 @@ current session:
146149 Single reference image path or URL for edit mode.
147150</ParamField>
148151<ParamField path="images" type="string[]">
149- Multiple reference images for edit mode (up to 5 on supporting providers).
152+ Multiple reference images for edit mode or style-reference models (up to 10
153+ through the shared tool; provider-specific limits still apply).
150154</ParamField>
151155<ParamField path="size" type="string">
152156 Size hint: `1024x1024`, `1536x1024`, `1024x1536`, `2048x2048`, `3840x2160`.
153157</ParamField>
154158<ParamField path="aspectRatio" type="string">
155- Aspect ratio: `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, `21:9`.
159+ Aspect ratio: `1:1`, `2:3`, `3:2`, `2.35:1`, `3:4`, `4:3`, `4:5`,
160+`5:4`, `9:16`, `16:9`, `21:9`, `4:1`, `1:4`, `8:1`, `1:8`. Providers
161+ validate their model-specific subset.
156162</ParamField>
157163<ParamField path="resolution" type='"1K" | "2K" | "4K"'>Resolution hint.</ParamField>
158164<ParamField path="quality" type='"low" | "medium" | "high" | "auto"'>
@@ -175,6 +181,9 @@ current session:
175181<ParamField path="openai" type="object">
176182 OpenAI-only hints: `background`, `moderation`, `outputCompression`, and `user`.
177183</ParamField>
184+<ParamField path="fal.creativity" type='"raw" | "low" | "medium" | "high"'>
185+ fal Krea 2 creativity control. Defaults to `medium`.
186+</ParamField>
178187179188<Note>
180189Not all providers support all parameters. When a fallback provider supports a
@@ -253,16 +262,17 @@ from each attempt.
253262### Image editing
254263255264OpenAI, OpenRouter, Google, DeepInfra, fal, MiniMax, ComfyUI, and xAI support editing
256-reference images. Pass a reference image path or URL:
265+reference images. Krea 2 models on fal use the same `image` / `images` fields
266+as style references instead of edit inputs. Pass a reference image path or URL:
257267258268```text
259269"Generate a watercolor version of this photo" + image: "/path/to/photo.jpg"
260270```
261271262272OpenAI, OpenRouter, Google, and xAI support up to 5 reference images via the
263273`images` parameter. fal supports 1 reference image for Flux image-to-image, up
264-to 10 for GPT Image 2 edits, and up to 14 for Nano Banana 2 edits. MiniMax and
265-ComfyUI support 1.
274+to 10 for GPT Image 2 edits, up to 10 style references for Krea 2, and up to
275+14 for Nano Banana 2 edits. MiniMax and ComfyUI support 1.
266276267277## Provider deep dives
268278@@ -348,6 +358,46 @@ ComfyUI support 1.
348358`google/gemini-3-pro-image-preview`, and `openai/gpt-5.4-image-2`. Use
349359`action: "list"` to see what your configured plugin exposes.
350360361+ </Accordion>
362+ <Accordion title="fal Krea 2">
363+Krea 2 models on fal use fal's native Krea schema instead of the generic
364+`image_size` schema used by Flux. OpenClaw sends:
365+366+- `aspect_ratio` for aspect-ratio hints
367+- `creativity`, defaulting to `medium`
368+- `image_style_references` when `image` or `images` are supplied
369+370+Select Krea 2 Medium for faster expressive illustration and Krea 2 Large
371+for slower, more detailed photoreal and textured looks:
372+373+```json5
374+{
375+ agents: {
376+ defaults: {
377+ imageGenerationModel: {
378+ primary: "fal/krea/v2/medium/text-to-image",
379+ },
380+ },
381+ },
382+}
383+```
384+385+Krea 2 currently returns one image per request. Prefer `aspectRatio` for
386+Krea; OpenClaw maps `size` to the closest supported Krea aspect ratio and
387+rejects `resolution` for Krea rather than dropping it. Use `fal.creativity`
388+when you want a native Krea creativity level:
389+390+```json
391+{
392+ "model": "fal/krea/v2/medium/text-to-image",
393+ "prompt": "A cyber zine portrait with risograph texture",
394+ "aspectRatio": "9:16",
395+ "fal": {
396+ "creativity": "high"
397+ }
398+}
399+```
400+351401 </Accordion>
352402 <Accordion title="MiniMax dual-auth">
353403MiniMax image generation is available through both bundled MiniMax
@@ -413,6 +463,11 @@ openclaw infer image generate \
413463 <Tab title="Edit (multiple references)">
414464```text
415465/tool image_generate action=generate model=openai/gpt-image-2 prompt="Combine the character identity from the first image with the color palette from the second" images='["/path/to/character.png","/path/to/palette.jpg"]' size=1536x1024
466+```
467+ </Tab>
468+ <Tab title="Krea style references">
469+```text
470+/tool image_generate action=generate model=fal/krea/v2/medium/text-to-image prompt="An expressive editorial portrait using this color palette and print texture" images='["/path/to/palette.png","/path/to/texture.jpg"]' aspectRatio=9:16 fal='{"creativity":"high"}'
416471```
417472 </Tab>
418473</Tabs>
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。