ImageRouter
Generate AI images with any model using ImageRouter API (requires API key).
New
Join 0+ developers using this skill
skill
AI & Machine Learning
intermediate
Generate AI images with any model using ImageRouter API (requires API key).
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Generate images with any model available on ImageRouter using curl commands.
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:
curl -X POST 'https://backend.imagerouter.io/operations/get-popular-models'
Search available models by name:
curl "https://api.imagerouter.io/v1/models?type=image&sort=date&name=gemini"
Get all available models:
curl "https://api.imagerouter.io/v1/models?type=image&sort=date&limit=1000"
Basic generation with JSON endpoint:
curl 'https://api.imagerouter.io/v1/openai/images/generations' \ -H 'Authorization: Bearer YOUR_API_KEY' \ --json '{ "prompt": "a serene mountain landscape at sunset", "model": "test/test", "quality": "auto", "size": "auto", "response_format": "url", "output_format": "webp" }'
curl 'https://api.imagerouter.io/v1/openai/images/edits' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -F 'prompt=a cyberpunk city at night' \ -F 'model=test/test' \ -F 'quality=high' \ -F 'size=1024x1024' \ -F 'response_format=url' \ -F 'output_format=webp'
curl 'https://api.imagerouter.io/v1/openai/images/edits' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -F 'prompt=transform this into a watercolor painting' \ -F 'model=test/test' \ -F 'quality=auto' \ -F 'size=auto' \ -F 'response_format=url' \ -F 'output_format=webp' \ -F 'image[]=@/path/to/your/image.webp'
curl 'https://api.imagerouter.io/v1/openai/images/edits' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -F 'prompt=combine these images' \ -F 'model=test/test' \ -F 'image[]=@image1.webp' \ -F 'image[]=@image2.webp' \ -F 'image[]=@image3.webp'
curl 'https://api.imagerouter.io/v1/openai/images/edits' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -F 'prompt=fill the masked area with flowers' \ -F 'model=test/test' \ -F 'image[]=@original.webp' \ -F 'mask[]=@mask.webp'
auto (default), low, medium, highauto (default) or WIDTHxHEIGHT (e.g., 1024x1024).url (default) - Returns hosted URLb64_json - Returns base64-encoded imageb64_ephemeral - Base64 without saving to logswebp (default), jpeg, png{ "created": 1769286389027, "data": [ { "url": "https://storage.imagerouter.io/fffb4426-efbd-4bcc-87d5-47e6936bf0bb.webp" } ], "latency": 6942, "cost": 0.004 }
| Feature | Unified (/edits) | JSON (/generations) |
|---|---|---|
| Text-to-Image | ✅ | ✅ |
| Image-to-Image | ✅ | ❌ |
| Encoding | multipart/form-data | application/json |
/v1/openai/images/generations and /v1/openai/images/edits are the same for the unified endpointcurl 'https://api.imagerouter.io/v1/openai/images/generations' \ -H 'Authorization: Bearer YOUR_API_KEY' \ --json '{"prompt":"test image","model":"test/test"}'
curl 'https://api.imagerouter.io/v1/openai/images/generations' \ -H 'Authorization: Bearer YOUR_API_KEY' \ --json '{"prompt":"abstract art","model":"test/test"}' \ | jq -r '.data[0].url' \ | xargs curl -o output.webp
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.