Skip to main content
Run any Skill in Manus
with one click

openrouter-gemini-image-generation

Stars0
Forks0
UpdatedJanuary 24, 2026 at 16:07

Fix for OpenRouter image generation with Gemini/Nano Banana models returning 404 or 400 errors. Use when: (1) OpenRouter API returns 404 Not Found for image generation, (2) getting 400 Bad Request with "Invalid option" for aspect_ratio, (3) response parsing fails with "error decoding response body", (4) using /images/generations endpoint with Nano Banana or Gemini image models. The fix is to use /chat/completions endpoint with modalities parameter instead of the images endpoint.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly