APIMaster.ai

GPT-Image-2 official

gpt-image-2-official — OpenAI official channel with quality, mask, n up to 4.

GPT-Image-2 official channel

  • Model: gpt-image-2-official
  • Endpoint: POST https://apimaster.ai/v1/images/generations
  • Extras: Inpainting (mask_url), quality, n 1–4, output format options

Standard channel: GPT-Image-2

vs standard

Feature gpt-image-2 gpt-image-2-official
References URL + base64 Public URLs, max 16
n 1 1–4
quality auto / low / medium / high
mask_url Yes (with image_urls)

Extra parameters

Field Default Notes
quality auto high + 4K can exceed 120s
background auto transparent not supported on official (falls back to auto)
moderation auto low = looser moderation
output_format png jpeg / webp
output_compression 0–100 for jpeg/webp
n 1 1–4
mask_url Inpainting mask; same size as first reference, needs alpha

Examples

Minimal

{
  "model": "gpt-image-2-official",
  "prompt": "Ancient castle under the stars"
}

2K poster

curl -s "https://apimaster.ai/v1/images/generations" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2-official",
    "prompt": "Cyberpunk city at night",
    "size": "16:9",
    "resolution": "2k",
    "quality": "high"
  }'

Inpainting

{
  "model": "gpt-image-2-official",
  "prompt": "Replace background with desert sunset",
  "image_urls": ["https://your-cdn.com/photo.png"],
  "mask_url": "https://your-cdn.com/mask.png"
}

Poll results

Same as standard: GET https://apimaster.ai/v1/tasks/{task_id}.

For quality: high + 2k/4k, set client timeout ≥ 180s.

Confirm gpt-image-2-official is enabled via console or GET https://apimaster.ai/v1/models.