From 64d56d40e09dff863c2bd6c12b39b484b34c6e89 Mon Sep 17 00:00:00 2001 From: "openclaw-docs-sync[bot]" Date: Thu, 23 Apr 2026 20:36:50 +0000 Subject: [PATCH] chore(sync): mirror docs from openclaw/openclaw@c84a2f52443ada5ca921ca9a646051f6a2d8ea15 --- .openclaw-sync/source.json | 4 ++-- docs/providers/openai.md | 11 +++++++++++ docs/tools/image-generation.md | 19 ++++++++++--------- 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index 5f4476192..9b285096d 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "7ce36b4d12c426d8f41bd63ed308a0adc035c063", - "syncedAt": "2026-04-23T20:32:12.043Z" + "sha": "c84a2f52443ada5ca921ca9a646051f6a2d8ea15", + "syncedAt": "2026-04-23T20:35:18.492Z" } diff --git a/docs/providers/openai.md b/docs/providers/openai.md index 8fcfec2d1..d438220cc 100644 --- a/docs/providers/openai.md +++ b/docs/providers/openai.md @@ -210,12 +210,23 @@ See [Image Generation](/tools/image-generation) for shared tool parameters, prov editing. `gpt-image-1` remains usable as an explicit model override, but new OpenAI image workflows should use `openai/gpt-image-2`. +The `openai-codex` provider also exposes `gpt-image-2` for image generation and +reference-image editing through OpenAI Codex OAuth. Use +`openai-codex/gpt-image-2` when the agent is signed in with Codex OAuth but does +not have an `OPENAI_API_KEY`. + Generate: ``` /tool image_generate model=openai/gpt-image-2 prompt="A polished launch poster for OpenClaw on macOS" size=3840x2160 count=1 ``` +Generate with Codex OAuth: + +``` +/tool image_generate model=openai-codex/gpt-image-2 prompt="A polished launch poster for OpenClaw on macOS" size=3840x2160 count=1 +``` + Edit: ``` diff --git a/docs/tools/image-generation.md b/docs/tools/image-generation.md index 21c54c570..f679bed66 100644 --- a/docs/tools/image-generation.md +++ b/docs/tools/image-generation.md @@ -36,15 +36,16 @@ The agent calls `image_generate` automatically. No tool allow-listing needed — ## Supported providers -| Provider | Default model | Edit support | API key | -| -------- | -------------------------------- | ---------------------------------- | ----------------------------------------------------- | -| OpenAI | `gpt-image-2` | Yes (up to 5 images) | `OPENAI_API_KEY` | -| Google | `gemini-3.1-flash-image-preview` | Yes | `GEMINI_API_KEY` or `GOOGLE_API_KEY` | -| fal | `fal-ai/flux/dev` | Yes | `FAL_KEY` | -| MiniMax | `image-01` | Yes (subject reference) | `MINIMAX_API_KEY` or MiniMax OAuth (`minimax-portal`) | -| ComfyUI | `workflow` | Yes (1 image, workflow-configured) | `COMFY_API_KEY` or `COMFY_CLOUD_API_KEY` for cloud | -| Vydra | `grok-imagine` | No | `VYDRA_API_KEY` | -| xAI | `grok-imagine-image` | Yes (up to 5 images) | `XAI_API_KEY` | +| Provider | Default model | Edit support | API key | +| ------------ | -------------------------------- | ---------------------------------- | ----------------------------------------------------- | +| OpenAI | `gpt-image-2` | Yes (up to 4 images) | `OPENAI_API_KEY` | +| OpenAI Codex | `gpt-image-2` | Yes (up to 4 images) | OpenAI Codex OAuth | +| Google | `gemini-3.1-flash-image-preview` | Yes | `GEMINI_API_KEY` or `GOOGLE_API_KEY` | +| fal | `fal-ai/flux/dev` | Yes | `FAL_KEY` | +| MiniMax | `image-01` | Yes (subject reference) | `MINIMAX_API_KEY` or MiniMax OAuth (`minimax-portal`) | +| ComfyUI | `workflow` | Yes (1 image, workflow-configured) | `COMFY_API_KEY` or `COMFY_CLOUD_API_KEY` for cloud | +| Vydra | `grok-imagine` | No | `VYDRA_API_KEY` | +| xAI | `grok-imagine-image` | Yes (up to 5 images) | `XAI_API_KEY` | Use `action: "list"` to inspect available providers and models at runtime: