Skip to content

Image Generation

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"}'

Post parameners:

  • prompt* Text prompt for generating images.
  • model* Image model to use for generation.
  • quality [auto, low, medium, high] - default “auto”; Supported models have “quality” feature label here
  • response_format [url, b64_json] - default “url”.

Currently, size is not supported. Please contact me if you miss anything.