Skip to content

Quick start

  1. Get an API key
  2. Generate images with any model available on ImageRouter:
Terminal window
curl 'https://api.imagerouter.io/v1/openai/images/generations' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data-raw '{"prompt": "YOUR_PROMPT", "model": "test/test"}'

Note that our beta API has some limitations.