AnyRouteAnyRoute Docs
AnyRouteAnyRoute Docs
Homepage

Start Here

AnyRoute Documentation

Tools

Capabilities

ImagesOpenAI ImagesCodex Image GenerationGemini Image GenerationImage InputBilling and Limits

API Reference

Operations

FAQ
Images

OpenAI Images

Use OpenAI-compatible image generation and edits through an OpenAI group.

Use an OpenAI group for OpenAI-compatible image endpoints.

OperationEndpoint
Image generationPOST /v1/images/generations
Image editsPOST /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.

Images

Use image generation, editing, and image input through the correct AnyRoute provider group.

Codex Image Generation

Use Codex image generation through OpenAI Responses image_generation.