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

Machine-readable resources for coding agents and LLMs. Note the endpoint path is /v1/openai/... (not the bare OpenAI /v1/... path), and model IDs should be read from the models API rather than guessed.

  • llms.txt — index of all docs and API resources
  • SKILL.md — curl-based quick-start skill file
  • OpenAPI spec — full machine-readable API description