Images
OpenAI Images
Use OpenAI-compatible image generation and edits through an OpenAI group.
Use an OpenAI group for OpenAI-compatible image endpoints.
| Operation | Endpoint |
|---|---|
| Image generation | POST /v1/images/generations |
| Image edits | POST /v1/images/edits |
Example:
curl https://anyroute.io/v1/images/generations \
-H "Authorization: Bearer YOUR_ANYROUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "A clean product screenshot of an API dashboard"
}'If the API returns that images are unsupported for this platform, check that the API key is assigned to an OpenAI group with image generation enabled.
AnyRoute Docs