Skip to main content
Glama

OpenRouter Image MCP Server

by WeiYu021

generate_image

Create custom images from text descriptions using AI. Specify your desired image with a text prompt and choose from multiple aspect ratios for optimal results.

Instructions

Generate a NEW image from text prompt using OpenRouter (Gemini 2.5 Flash Image). Use this ONLY when creating a completely new image, not when modifying an existing one.

Input Schema

NameRequiredDescriptionDefault
aspectRatioNoOptional aspect ratio for the generated image. Default is 1:1 (1024×1024). Options: 1:1, 16:9, 9:16, 3:4, 4:3, etc.
promptYesText prompt describing the NEW image to create from scratch

Input Schema (JSON Schema)

{ "properties": { "aspectRatio": { "description": "Optional aspect ratio for the generated image. Default is 1:1 (1024×1024). Options: 1:1, 16:9, 9:16, 3:4, 4:3, etc.", "enum": [ "1:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "21:9" ], "type": "string" }, "prompt": { "description": "Text prompt describing the NEW image to create from scratch", "type": "string" } }, "required": [ "prompt" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/WeiYu021/openrouter-image-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server