Gengxi API Developer Docs

Images

Generate and edit images with supported image models and groups.

Generate an image

bashCopy
curl https://api.gengxi.ai/v1/images/generations \
  -H "Authorization: Bearer $GENGXI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"YOUR_IMAGE_MODEL","prompt":"A calm editorial illustration","n":1,"size":"1024x1024"}'

Edit an image

POST /v1/images/edits accepts a compatible image-edit request. Use multipart fields required by the selected model and route.

Common fields

  • model
  • prompt
  • n
  • size
  • response_format
  • quality
  • background
  • output_format

Advanced image APIs

Asynchronous and batch image workflows are advanced APIs and may be documented separately; they are intentionally outside the v1 core navigation.