Image generation

POST /images/generations with prompt, n (1–4), size, quality and response_format (b64_json or url). Multimodal image models also accept image: [urls] for edits. Billed at the provider's reported cost.

curl https://api.ultragpt.pro/v1/images/generations \
  -H "Authorization: Bearer $ULTRAGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "model": "grok-imagine-image-2.0", "prompt": "A lighthouse at dawn, watercolor", "response_format": "url" }'