openclaw/docs
Chris Zhang c3bfd328ad
feat(litellm): add image generation provider (#70246)
* feat(litellm): add image generation provider

Registers litellm as an image-generation provider so model refs like
litellm/gpt-image-2 route through the LiteLLM proxy, and
agents.defaults.imageGenerationModel.fallbacks entries of the form
litellm/... resolve without "No image-generation provider registered
for litellm" errors.

Implementation uses the OpenAI-compatible /images/generations and
/images/edits endpoints that LiteLLM proxies for. BaseUrl resolves from
models.providers.litellm.baseUrl (default http://localhost:4000). Private
network is auto-allowed when baseUrl is a loopback/RFC1918 address, which
covers the common self-hosted LiteLLM proxy case without needing
OPENCLAW_PROVIDER_ALLOW_PRIVATE_NETWORK. Public baseUrls keep normal SSRF
defaults.

Default model is gpt-image-2 (matching upstream 4.21+ OpenAI default).
Advertises the same 2K/4K sizes OpenAI now exposes, plus legacy
256/512/1024 for dall-e-3. Supports both generate and edit.

Local patch. LiteLLM has no upstream image-generation support yet; revisit
if upstream adds one.

* ci: rerun after upstream main hot-fix

* fix(litellm): harden image generation provider

---------

Co-authored-by: Chris Zhang <chris@ChrisdeMac-mini.local>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-04-25 19:06:51 +01:00
..
.generated fix(opencode-go): route DeepSeek V4 through OpenAI transport 2026-04-25 18:58:08 +01:00
.i18n Refresh the Codex runtime docs 2026-04-24 20:30:33 -07:00
assets
automation docs(cron): clarify isolated session context 2026-04-25 06:37:18 +01:00
channels fix(whatsapp): send voice note text separately 2026-04-25 18:55:03 +01:00
cli fix(plugins): deprecate registry disable break glass 2026-04-25 10:35:36 -07:00
concepts docs: clarify pi-ai generic failover (#71647) 2026-04-25 18:22:06 +01:00
debug docs: add Related sections to remaining platform, reference template, and misc pages 2026-04-23 20:40:15 -07:00
diagnostics docs: add Related sections to remaining platform, reference template, and misc pages 2026-04-23 20:40:15 -07:00
gateway fix(browser): honor remote CDP open timeouts 2026-04-25 18:52:57 +01:00
help docs: update OpenAI GPT-5.5 API guidance 2026-04-25 18:14:10 +01:00
images
install docs: cover new contextInjection 'never' mode and Nix daemon PATH support 2026-04-24 23:19:06 -07:00
nodes feat(media): add voice conversion and speech plugins 2026-04-25 12:12:33 +01:00
plan docs: drop parenthetical H1s across gateway, channels, providers, concepts, and reference pages 2026-04-24 10:49:23 -07:00
platforms feat(gateway): auto-approve trusted CIDR node pairing (#61004) (thanks @sahilsatralkar) 2026-04-25 06:40:25 +01:00
plugins fix(opencode-go): route DeepSeek V4 through OpenAI transport 2026-04-25 18:58:08 +01:00
providers feat(litellm): add image generation provider (#70246) 2026-04-25 19:06:51 +01:00
refactor feat(codex): run context-engine lifecycle in app-server harness (#70809) 2026-04-24 05:06:45 +01:00
reference fix(agents): prevent Bedrock replay death loop on empty assistant content (#71627) 2026-04-25 19:04:40 +01:00
security docs: add Related sections to remaining platform, reference template, and misc pages 2026-04-23 20:40:15 -07:00
snippets/plugin-publish
start docs: update OpenAI GPT-5.5 API guidance 2026-04-25 18:14:10 +01:00
superpowers/specs Add tweakcn custom theme import 2026-04-24 20:36:45 -05:00
tools feat(litellm): add image generation provider (#70246) 2026-04-25 19:06:51 +01:00
web docs(control-ui): note assistant avatar uploads stay browser-local 2026-04-25 10:08:59 -07:00
AGENTS.md docs: align documentation with current surfaces 2026-04-23 07:25:06 +01:00
auth-credential-semantics.md docs: add Related sections to remaining platform, reference template, and misc pages 2026-04-23 20:40:15 -07:00
brave-search.md docs: add Related sections to remaining platform, reference template, and misc pages 2026-04-23 20:40:15 -07:00
ci.md docs: update OpenAI GPT-5.5 API guidance 2026-04-25 18:14:10 +01:00
CLAUDE.md
date-time.md docs: normalize frontmatter titles to sentence case 2026-04-23 13:15:17 -07:00
docs.json test: update QA parity fixtures for GPT-5.5 2026-04-25 18:05:28 +01:00
index.md Docs: link feature cards to relevant pages 2026-04-21 20:36:55 -05:00
logging.md feat(diagnostics): add outbound delivery lifecycle events 2026-04-25 01:26:34 -07:00
nav-tabs-underline.js
network.md docs: add Related sections to remaining platform, reference template, and misc pages 2026-04-23 20:40:15 -07:00
perplexity.md docs: add Related sections to remaining platform, reference template, and misc pages 2026-04-23 20:40:15 -07:00
pi-dev.md docs: add Related sections to remaining platform, reference template, and misc pages 2026-04-23 20:40:15 -07:00
pi.md docs: normalize Title Case H2 headings to sentence case in recent files 2026-04-24 09:17:47 -07:00
prose.md docs: add Related sections to remaining platform, reference template, and misc pages 2026-04-23 20:40:15 -07:00
style.css
tts.md docs: add Related sections to remaining platform, reference template, and misc pages 2026-04-23 20:40:15 -07:00
vps.md docs: add Related sections to remaining platform, reference template, and misc pages 2026-04-23 20:40:15 -07:00
whatsapp-openclaw-ai-zh.jpg
whatsapp-openclaw.jpg