imageImage Generation

🖼️ /v1/images/generations — Image Generation

Generate images from text using models like Stable Diffusion or DALL·E.

Parameters:

  • model (string) — required

  • prompt (string) — required

  • n, size, style, etc. — optional

Example:

curl https://api.uniportai.site/v1/images/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "stable-diffusion-xl",
    "prompt": "A futuristic city skyline at sunset",
    "size": "1024x1024"
  }'

Last updated