imagerouter

Generate images from prompts via ImageRouter's unified API across multiple AI models.

127|17|Updated Mar 26, 2025
One-click install
npx skills add https://github.com/DaWe35/image-router --skill imagerouter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagerouter
Source: https://github.com/DaWe35/image-router/tree/main
Command: npx skills add https://github.com/DaWe35/image-router --skill imagerouter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate images with any AI model hosted on ImageRouter using a single API interface that requires only an API key.

Core Features & Use Cases

  • Unified access to multiple image-generation models via a single API.
  • Quickly compare or switch between providers without changing code or endpoints.
  • Use cases include generating concept art, product visuals, or testing prompts across different models.

Quick Start

Use the imagerouter skill to generate an image by calling the API with your API key and a prompt. Example: curl 'https://api.imagerouter.io/v1/openai/images/generations' -H 'Authorization: Bearer YOUR_API_KEY' --data-raw '{"prompt":"a futuristic city","model":"test/test"}'

Frequently Asked Questions about imagerouter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate AI images across multiple models using a single API?

To generate AI images across multiple models using a single API, supply your prompt and API key to the imagerouter interface. It resolves model aliases and returns results in standard OpenAI-like formats such as urls or b64_json.

Can I use a single API interface to switch between OpenAI and Gemini image generation?

Yes, you can use a single API interface to switch between OpenAI, Gemini, and Runware image generation. This unified access lets you quickly compare or change providers without modifying your code or endpoints.

Do I need a specific API key to access image generation providers through ImageRouter?

Yes, you need a valid ImageRouter API key to access image generation providers. You must include this key in the Authorization header as a Bearer token when making your curl requests.

What format does the image generation API return for the generated results?

The image generation API returns results in the standard OpenAI-like format, providing either image urls or b64_json strings. This ensures compatibility when integrating generated images into your applications.

How do I test prompts across different AI models for rapid prototyping?

To test prompts across different AI models for rapid prototyping, use the unified ImageRouter API to send the same prompt to various providers. This allows direct model comparison without altering your request structure.