Skip to content

Fix paid Gemini API: Add free OpenRouter image gen + fallback - #201

Open
papajo wants to merge 1 commit into
FujiwaraChoki:mainfrom
papajo:blackboxai/fix-paid-api-gemini-free-openrouter
Open

Fix paid Gemini API: Add free OpenRouter image gen + fallback#201
papajo wants to merge 1 commit into
FujiwaraChoki:mainfrom
papajo:blackboxai/fix-paid-api-gemini-free-openrouter

Conversation

@papajo

@papajo papajo commented Mar 26, 2026

Copy link
Copy Markdown

Replaces Gemini image gen requirement with free OpenRouter (flux-schnell).

Key changes:

  • Optional Gemini (no validation error)
  • OpenRouter priority in generate_image()
  • Static image fallback
  • Updated config.example.json

Fully free now (w/ optional free OpenRouter key).

Closes API blocking issue. See TODO.md.

…c fallback

- Make Gemini image gen optional (no longer required in validation)
- New config: openrouter_api_key (free signup), image_provider='openrouter', use_image_fallback
- YouTube.py: generate_image() now chains OpenRouter → Gemini → static images
- config.example.json: Updated with OpenRouter defaults
- Validation passes without paid keys
- Project now fully free/local capable (Ollama LLM, local TTS/STT)

Closes API key blocking issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant