Skip to main content

Endpoints and authentication

Syon uses the OpenAI Images API compatible format:
  • Generate images: POST https://api.syon.com/v1/images/generations
  • Edit images: POST https://api.syon.com/v1/images/edits
Request headers: http
The edit endpoint also accepts multipart/form-data for uploading image files.

Generate images

Minimal request: bash
Specify size and quality: json
Common parameters: OpenAI’s size constraints for gpt-image-2.5-flare: the longest side must not exceed 3840 pixels; width and height must both be multiples of 16; the aspect ratio must not exceed 3:1; and the total pixel count must be between 655,360 and 8,294,400. Sizes are pixel dimensions, not fixed 1k, 2k, 4k strings.

Edit images

bash
Common parameters:

Size and billing rules

Image generation is billed per image. Each image’s unit price is determined by its actual resolution, in three tiers by the longest side: The tier is decided by the actual width and height of the returned image, not by the request parameters. When size is auto, omitted, or empty, billing follows the size the model actually outputs; without size, the model outputs 1024 or 1254 pixels by default, billed as 1K or 2K respectively. Pass size explicitly if you need a fixed tier. See live pricing for the three tier prices.