Skip to content

Quick start

  1. Get an API key
  2. Generate images, videos, and text with any model available on ImageRouter.
Terminal window
curl 'https://api.imagerouter.io/v1/openai/images/generations' \
-H 'Authorization: Bearer YOUR_API_KEY' \
--json '{
"prompt": "YOUR_PROMPT",
"model": "test/test"
}'
Terminal window
curl 'https://api.imagerouter.io/v1/openai/chat/completions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
--json '{
"model": "openai/gpt-4o-mini",
"messages": [{ "role": "user", "content": "Hello!" }]
}'