openclaw/docs/providers
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
..
alibaba.md docs(gateway): split configuration-reference by extracting agent-defaults cluster into config-agents 2026-04-23 20:11:12 -07:00
anthropic.md docs: drop parenthetical H1s across gateway, channels, providers, concepts, and reference pages 2026-04-24 10:49:23 -07:00
arcee.md docs: standardize frontmatter field order (summary before title) 2026-04-23 13:18:17 -07:00
bedrock-mantle.md docs(providers): standardize Related card titles, config-reference links, and Advanced heading 2026-04-23 13:16:53 -07:00
bedrock.md docs: remove duplicate H1 where frontmatter title already sets it 2026-04-23 13:11:14 -07:00
chutes.md docs: standardize frontmatter field order (summary before title) 2026-04-23 13:18:17 -07:00
claude-max-api-proxy.md docs(providers): standardize models-section heading to Built-in catalog 2026-04-23 15:42:56 -07:00
cloudflare-ai-gateway.md fix: align claude cli permissions with exec policy 2026-04-23 23:11:34 +01:00
comfy.md fix(comfy): read config from plugins.entries instead of models.providers (openclaw#63058) 2026-04-24 15:23:13 -05:00
deepgram.md docs: drop parenthetical H1s across gateway, channels, providers, concepts, and reference pages 2026-04-24 10:49:23 -07:00
deepseek.md fix(deepseek): normalize V4 tool-call replay 2026-04-25 04:25:44 +01:00
elevenlabs.md test(elevenlabs): cover eleven_v3 tts catalog 2026-04-25 10:06:42 +01:00
fal.md docs(gateway): split configuration-reference by extracting agent-defaults cluster into config-agents 2026-04-23 20:11:12 -07:00
fireworks.md docs: standardize frontmatter field order (summary before title) 2026-04-23 13:18:17 -07:00
github-copilot.md fix: send copilot headers during compaction 2026-04-24 23:54:58 +01:00
glm.md docs(providers): standardize models-section heading to Built-in catalog 2026-04-23 15:42:56 -07:00
google.md feat(google): support Gemini TTS style profile 2026-04-25 06:11:23 +01:00
gradium.md docs(nav): surface orphan pages in sidebar (message-presentation, skill-workshop, qa-e2e-automation, proxy, gpt54-codex-agentic-parity) 2026-04-24 10:53:32 -07:00
groq.md docs(providers): standardize models-section heading to Built-in catalog 2026-04-23 15:42:56 -07:00
huggingface.md docs(providers): standardize Related card titles, config-reference links, and Advanced heading 2026-04-23 13:16:53 -07:00
index.md feat(media): add voice conversion and speech plugins 2026-04-25 12:12:33 +01:00
inferrs.md docs(tools): add Related sections and unify See also to Related 2026-04-23 15:41:56 -07:00
kilocode.md docs(providers): standardize models-section heading to Built-in catalog 2026-04-23 15:42:56 -07:00
litellm.md feat(litellm): add image generation provider (#70246) 2026-04-25 19:06:51 +01:00
lmstudio.md docs(providers): add Related sections to remaining provider pages 2026-04-23 20:12:50 -07:00
minimax.md fix(minimax): default music generation to music 2.6 2026-04-25 10:55:54 +01:00
mistral.md docs: remove duplicate H1 where frontmatter title already sets it 2026-04-23 13:11:14 -07:00
models.md docs(providers): add Related sections to remaining provider pages 2026-04-23 20:12:50 -07:00
moonshot.md docs: drop parenthetical H1s across gateway, channels, providers, concepts, and reference pages 2026-04-24 10:49:23 -07:00
nvidia.md docs(providers): standardize Related card titles, config-reference links, and Advanced heading 2026-04-23 13:16:53 -07:00
ollama.md docs(providers): standardize Related card titles, config-reference links, and Advanced heading 2026-04-23 13:16:53 -07:00
openai.md docs: update OpenAI GPT-5.5 API guidance 2026-04-25 18:14:10 +01:00
opencode-go.md fix: add OpenCode Go DeepSeek V4 models 2026-04-25 18:11:59 +01:00
opencode.md feat: update opencode-go default model 2026-04-25 05:03:32 +01:00
openrouter.md fix(image): honor generation timeout config 2026-04-25 18:25:26 +01:00
perplexity-provider.md docs: drop parenthetical H1s across gateway, channels, providers, concepts, and reference pages 2026-04-24 10:49:23 -07:00
qianfan.md docs(providers): standardize models-section heading to Built-in catalog 2026-04-23 15:42:56 -07:00
qwen.md docs(providers): standardize Related card titles, config-reference links, and Advanced heading 2026-04-23 13:16:53 -07:00
runway.md docs(gateway): split configuration-reference by extracting agent-defaults cluster into config-agents 2026-04-23 20:11:12 -07:00
senseaudio.md feat(media): add voice conversion and speech plugins 2026-04-25 12:12:33 +01:00
sglang.md docs: remove duplicate H1 where frontmatter title already sets it 2026-04-23 13:11:14 -07:00
stepfun.md docs(providers): standardize models-section heading to Built-in catalog 2026-04-23 15:42:56 -07:00
synthetic.md docs(providers): standardize models-section heading to Built-in catalog 2026-04-23 15:42:56 -07:00
tencent.md docs(providers): standardize models-section heading to Built-in catalog 2026-04-23 15:42:56 -07:00
together.md docs: standardize frontmatter field order (summary before title) 2026-04-23 13:18:17 -07:00
venice.md docs(providers): standardize models-section heading to Built-in catalog 2026-04-23 15:42:56 -07:00
vercel-ai-gateway.md docs: standardize frontmatter field order (summary before title) 2026-04-23 13:18:17 -07:00
vllm.md docs(providers): standardize Related card titles, config-reference links, and Advanced heading 2026-04-23 13:16:53 -07:00
volcengine.md docs(providers): standardize models-section heading to Built-in catalog 2026-04-23 15:42:56 -07:00
vydra.md docs(gateway): split configuration-reference by extracting agent-defaults cluster into config-agents 2026-04-23 20:11:12 -07:00
xai.md fix(xai): support video reference images 2026-04-25 18:14:51 +01:00
xiaomi.md feat(tts): add xiaomi mimo speech provider 2026-04-25 09:48:05 +01:00
zai.md docs(providers): standardize models-section heading to Built-in catalog 2026-04-23 15:42:56 -07:00