imagerouterlisted
Install: claude install-skill DaWe35/image-router
# [ImageRouter](https://imagerouter.io) AI Image Generation
Generate images with any AI model available on [ImageRouter](https://imagerouter.io).
## OpenClaw Setup
- This skill expects your ImageRouter key in the environment variable `IMAGEROUTER_API_KEY`.
- **Do not paste API keys into chat**. Set the env var in the OpenClaw Gateway environment (in terminal) and restart the gateway. Example:
```bash
openclaw config set skills.entries.imagerouter.apiKey "your_api_key_here"
openclaw gateway restart
```
## Available models
The `test/test` model is a free dummy model that is used for testing the API. It is not a real model, therefore you should use other models for image generation.
Get top 10 most popular models:
```bash
curl -X POST 'https://backend.imagerouter.io/operations/get-popular-models'
```
Search available models by name:
```bash
curl "https://api.imagerouter.io/v1/models?type=image&sort=date&name=gemini"
```
Get all available models:
```bash
curl "https://api.imagerouter.io/v1/models?type=image&sort=date&limit=1000"
```
## Quick Start - Text-to-Image
Basic generation with JSON endpoint:
```bash
curl 'https://api.imagerouter.io/v1/openai/images/generations' \
-H "Authorization: Bearer $IMAGEROUTER_API_KEY" \
--json '{
"prompt": "a serene mountain landscape at sunset",
"model": "test/test",
"quality": "auto",
"size": "auto",
"response_format": "url",
"output_format": "webp"
}'
```
## Unified Endpoint (Text-to-Image & Image-to-Ima