/APIXO Docs

GPT-Image-1

OpenAI's DALL-E powered image generation

GPT-Image-1

OpenAI's powerful image generation with multi-variant output.

Model ID
gpt-image-1
Price
$0.35/image
Speed
40-70 seconds
Type
Image

Capabilities

ModeDescription
gpt-image-1Text-to-image and image-to-image generation

Parameters

For common parameters (request_type, callback_url), see Request Format.

ParameterTypeRequiredDefaultDescription
modestringYes-gpt-image-1
promptstringYes-Image description (max 10,000 characters)
image_urlsstring[]No-Up to 5 reference images
aspect_ratiostringYes1:1Output ratio. Options: 1:1, 2:3, 3:2
nVariantsintegerYes1Number of variations: 1, 2, or 4
isEnhancebooleanNofalseEnable prompt enhancement

Examples

Generate with Variants

curl -X POST https://api.apixo.ai/api/v1/generateTask/gpt-image-1 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_type": "async",
    "input": {
      "mode": "gpt-image-1",
      "prompt": "A futuristic cityscape with flying cars and neon lights",
      "aspect_ratio": "3:2",
      "nVariants": 4
    }
  }'

Image Editing

curl -X POST https://api.apixo.ai/api/v1/generateTask/gpt-image-1 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_type": "async",
    "input": {
      "mode": "gpt-image-1",
      "prompt": "Make the background brighter and more vibrant",
      "image_urls": ["https://example.com/photo.jpg"],
      "aspect_ratio": "1:1",
      "nVariants": 2
    }
  }'

Tips

  • Polling: Wait 40 seconds, then poll every 10 seconds
  • Timeout: Set max wait to 3 minutes
  • Use nVariants: 4 to get multiple options, then iterate on the best one

On this page