Skip to content

Image Generation

XNova supports OpenAI-compatible image generation endpoints for image sites, desktop clients, and custom scripts.

Endpoints

txt
POST https://api.xnova.online/v1/images/generations
POST https://api.xnova.online/v1/images/edits

Common Parameters

ParameterDescription
modelImage model, such as gpt-image-2
promptImage prompt
sizeImage size or tier
qualityauto, low, medium, or high
output_formatpng, jpeg, or webp
output_compressionJPEG/WebP compression; not sent for PNG
moderationauto or low
nNumber of images

Text to Image

bash
curl https://api.xnova.online/v1/images/generations \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A clean product poster with white background and soft light",
    "size": "2880x2880",
    "quality": "auto",
    "output_format": "png",
    "moderation": "auto"
  }'

Released under private documentation policy.