GPT Image Hub Public API

Use the GPT Image Hub Public API to list supported image models, check account credits, generate images, and retrieve generation records.

Discovery

Authentication

Protected endpoints use Bearer API keys created in the account API key page.

Authorization: Bearer gih_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Endpoints

Models

IDNameProviderQualityReference images
gpt-image-2GPT IMAGE 2openai1K, 2K, 4Kup to 16
nanobananaNano Bananagemini1Kup to 3
nanobanana2Nano Banana 2gemini1K, 2K, 4Kup to 14
nanobananaproNano Banana Progemini1K, 2K, 4Kup to 14

Example

curl https://www.gptimagehub.com/api/v1/images/generations \
  -H "Authorization: Bearer gih_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A cinematic product photo of a transparent perfume bottle on black marble",
    "aspect_ratio": "1:1",
    "quality": "1K",
    "n": 1
  }'