Everything currently in flight
Enable the crew to analyze images (screenshots, diagrams, mockups) and generate images on demand β cost-effectively, across multiple providers.
Notes
Owner: Robbie π§
Vision (phase 1): Enable the crew to analyze screenshots, mockups, diagrams, and any image shared via WhatsApp or Discord. Cost-sustainable β avoid expensive Claude Sonnet vision calls.
Generation (phase 2): Enable the crew to generate images on demand via multiple providers.
Wire up Google Gemini 2.0 Flash as a vision model provider in OpenClaw.
| Why Gemini Flash over alternatives | |
|---|---|
| Cost | $0.10/MTok input β ~150x cheaper than Claude Sonnet |
| Free tier | 1,500 requests/day β enough for daily use at zero cost |
| Quality | Solid for screenshots, code, diagrams, whiteboard drawings |
| Integration | Google provider is already built into OpenClaw's engine |
How it works: When an image comes in, I call the image() tool with model: "google/gemini-2.0-flash" to route it through Gemini instead of the expensive Claude Sonnet session.
Multi-provider strategy for image generation:
| Provider | Status | NSFW | Cost/image | Notes |
|---|---|---|---|---|
| DeepInfra (FLUX) | β Active | β Blocked | $0.003-0.025 | Fast (1.5s), default gen model |
| Civitai | π t-3454/3455 | β Permissive | ~$0.05-0.10 | Bridge script needed |
| RunPod | π t-3456/3457 | β Full control | ~$0.0003-0.0006 | Docker/ComfyUI endpoint |
| Gemini Image Gen | β Blocked | N/A | $0.067 | Credits depleted (HTTP 429) |
Primary gen model: DeepInfra FLUX Schnell β fast, cheap, good quality. Fallback chain: DeepInfra FLUX β Gemini Flash Image Preview β Gemini Pro Image Preview.
Detailed architecture in ARCHITECTURE.md.
models.providers with api: google-generative-aigemini-2.0-flash model exists with input: ['text', 'image'], cost: $0.10/$0.40/MTokfreeTier, dailyFreeQuota, strengths, weaknesses, recommended) that the schema rejects. Need to strip these.google/gemini-2.0-flash β alias gemini-flash in agents.defaults.modelsGEMINI_API_KEY to .envopenclaw config validate returns zero issuesopenclaw models list shows google/gemini-2.0-flash with input: text imageimage(model="google/gemini-2.0-flash", ...) to analyze screenshotst-135 [Maxime] Get Gemini API key β
DONE
βββ t-136 [Chris] Fix Google models & alias β
DONE
βββ t-3364 [Robbie] Smoke-test vision π backlog
βββ t-3365 [Kelly] Document vision setup π backlog
t-139 / t-1000 [Debbie] Research image gen options β
DONE
βββ DeepInfra FLUX β
Active
βββ t-3454 [Maxime/Robbie] Civitai Phase 1: API key + config + bridge β
DONE
β βββ t-3455 [Chris] Civitai Phase 2: MC integration + Buzz tracker π backlog
βββ t-3456 [Maxime] RunPod Phase 1: Sign up + deploy endpoint π backlog
βββ t-3457 [Chris] RunPod Phase 2: Bridge script π backlog
| Task | Who | Task ID | Status |
|---|---|---|---|
| Get API key | Maxime | (no task) | β Key obtained |
| Fix Google models & alias | Chris | (no task) | β Models registered |
| Smoke test vision | Robbie | t-3364 | backlog |
| Document vision | Kelly | t-3365 | backlog |
| Research gen options | Debbie | (no task) | β Done β DeepInfra/FLUX active |
| Merge image-gen project | Vera | (this) | β Done β merged into vision-integration |
| Civitai Phase 1 (sign up + config + bridge) | Maxime/Robbie | t-3454 | β DONE |
| Civitai Phase 2 (bridge) | Chris | t-3455 | backlog |
| RunPod Phase 1 (deploy) | Maxime | t-3456 | backlog |
| RunPod Phase 2 (bridge) | Chris | t-3457 | backlog |
| Decision | Status | Notes |
|---|---|---|
| Vision model | Gemini 2.0 Flash | Chosen. Provider already registered. |
| Primary gen model | DeepInfra FLUX Schnell | Active β fast, cheap, good quality |
| Gen fallback | Gemini Flash Image Preview | Vision-aware gen, fallback if DeepInfra down |
| High-quality gen | Gemini Pro Image Preview | For production-grade images |
| Civitai orchestration | t-3454/3455 | β Phase 1 done, bridge script ready |
| RunPod serverless | t-3456/3457 | Full control, lowest cost/image ($0.0003-0.0006) |
| Gemini image gen | β Blocked | Credits depleted, HTTP 429 |
| Local vs API for gen | API recommended | DeepInfra active, Civitai/RunPod coming |
ARCHITECTURE.md β architecture, pipeline design, conventionsCHRIS-SPEC.md β Chris spec for Google model fixesimage-gen-setup.md β legacy image gen setup reference (Gemini gen approach, preserved)civitai-setup-spec.md β Civitai orchestration API setuprunpod-setup-spec.md β RunPod serverless setup7/7
tasks done
Tasks (7)
View in board βTimeline