惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
人人都是产品经理
人人都是产品经理
博客园_首页
爱范儿
爱范儿
博客园 - 叶小钗
aimingoo的专栏
aimingoo的专栏
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
Blog — PlanetScale
Blog — PlanetScale
博客园 - 【当耐特】
Y
Y Combinator Blog
量子位
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Blog of Author Tim Ferriss
月光博客
月光博客
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
feat: add Fal Krea image model schemas (#87845) · opencla...
steipete · 2026-05-29 · via Recent Commits to openclaw:main

@@ -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` |

85868687

The same `image_generate` tool handles text-to-image and reference-image

8788

editing. 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.

8891

Provider-supported output hints such as `quality`, `outputFormat`, and

8992

`background` are forwarded when available and reported as ignored when a

9093

provider 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>

180189

Not all providers support all parameters. When a fallback provider supports a

@@ -253,16 +262,17 @@ from each attempt.

253262

### Image editing

254263255264

OpenAI, 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

```

261271262272

OpenAI, 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">

353403

MiniMax 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>