GPT画像

GPT Image 1.5(高品質な画像生成および編集向け)

機能
  • テキストから画像生成
  • プロンプトによる画像編集
  • 複数の品質レベル
  • 柔軟な画像サイズ
料金設定
Quality1024×10241536×1024
low2 (~$0.02)3 (~$0.03)
medium8 (~$0.09)10 (~$0.11)
high30 (~$0.33)40 (~$0.44)

Total credits = base_credits × num_images

エンドポイント
POST/api/v1/images/generate
パラメータ
パラメータタイプ必須説明
modelstring必須Must be "gpt-image-1.5"
promptstring必須Text description of the image
qualitystringオプション"low", "medium", or "high" (default: medium)
image_sizestringオプション"1024x1024", "1536x1024", or "1024x1536"
num_imagesnumberオプションNumber of images (1-4)
input_imagestringオプションURL or base64 for image editing
リクエストの例
{
  "model": "gpt-image-1.5",
  "prompt": "A serene Japanese garden with cherry blossoms",
  "quality": "high",
  "image_size": "1024x1024",
  "num_images": 1
}
レスポンス例
{
  "success": true,
  "data": {
    "task_id": "task_gpt123",
    "credits_used": 30,
    "remaining_credits": 470,
    "model": "gpt-image-1.5"
  }
}
コード例
curl -X POST https://gateway.nanobananapro.site/api/v1/images/generate \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-1.5",
    "prompt": "A serene Japanese garden with cherry blossoms",
    "quality": "high",
    "image_size": "1024x1024"
  }'
Nano Banana Pro API