GPT Image 2.5 Sunburst API

GPT Image Sunburst(v2.5 と v2.6)は精密な編集に強い GPT Image のラインです。テキストからの生成や最大 16 枚の参照画像による編集に対応し、1 リクエストで 1~4 枚を 1k・2k・4k で出力します。

オンラインで試す · API キーを取得 · ドキュメントを見る

機能

モデル
画像
APIモデル
zhenzhen-image-g-v2.5-sunburst
エンドポイント
POST /v1/image/generations, GET /v1/image/generations/{id}
パラメータ
prompt, images: 0–16 (public HTTP(S)), n: 1–4, size: auto / ratio / WxH, resolution: 1k / 2k / 4k, quality: auto / low / medium / high / xhigh / max, output_format: png / jpeg / webp, background: auto / transparent / opaque, v2.6: complexity, mask_url / markup_url / markup, gif / svg

現在の料金

≈¥0.03–4.21 リクエストあたり

ギャラリーの例

  • YU7GT スマホ壁紙YU7GT スマホ壁紙

    APIモデル: zhenzhen-image-g-v2.5-sunburst

    「YU7GT スマホ壁紙」は zhenzhen-image-g-v2.5-sunburst を使用した作品です。OpenZhenZhen で元のプロンプトと生成例を確認し、創作の参考にできます。

プロンプトギャラリーを見る

クイックスタート

使用例:商品写真をアップロードし、形を保ったまま青にするよう指示します。size を省略すると参照画像の比率を維持し、auto、1:1 や 16:9 などの比率、または幅×高さ(16 の倍数、各辺 3840 以下、総画素 655,360~8,294,400)も指定できます。quality は auto、low、medium、high、xhigh、max。出力は png、jpeg、webp で、透明背景には png か webp が必要です。参照画像は公開 HTTP(S) URL のみで、ストリーミングには対応しません。v2.6 では complexity、マスク編集(mask_url、markup_url、markup。参照画像と併用)、テキストのみからの GIF・SVG 出力が加わります。

cURL

curl --fail-with-body https://www.zzai.app/v1/image/generations \
  -H "Authorization: Bearer $SEEDANCE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"images":["https://your-cdn.example/product.png"],"model":"zhenzhen-image-g-v2.5-sunburst","prompt":"Make the teapot blue and keep its shape, lighting and background.","quality":"low","resolution":"1k"}'

Python

import json, os, requests

payload = json.loads(r'''{"images":["https://your-cdn.example/product.png"],"model":"zhenzhen-image-g-v2.5-sunburst","prompt":"Make the teapot blue and keep its shape, lighting and background.","quality":"low","resolution":"1k"}''')
response = requests.post(
    "https://www.zzai.app/v1/image/generations",
    headers={"Authorization": "Bearer " + os.environ["SEEDANCE_API_KEY"]},
    json=payload, timeout=120,
)
response.raise_for_status()
print(response.json()["id"])

JavaScript

const response = await fetch("https://www.zzai.app/v1/image/generations", {
  method: 'POST',
  headers: { Authorization: 'Bearer ' + process.env.SEEDANCE_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({"images":["https://your-cdn.example/product.png"],"model":"zhenzhen-image-g-v2.5-sunburst","prompt":"Make the teapot blue and keep its shape, lighting and background.","quality":"low","resolution":"1k"}),
});
if (!response.ok) throw new Error(await response.text());
console.log((await response.json()).id);

返された id を保存し、照会例の TASK_ID に設定します。成功または失敗まで 3~5 秒間隔で照会してください。送信の成功は生成完了を意味しません。結果ファイルは早めに保存してください。 data.status: SUCCESS / FAILURE; data.result_url.

curl --fail-with-body https://www.zzai.app/v1/image/generations/$TASK_ID \
  -H "Authorization: Bearer $SEEDANCE_API_KEY"

よくある質問

このモデルを呼び出すには?

API キーを作成し、下のモデル名を使ってドキュメントの OpenAI 互換エンドポイントにリクエストを送信してください。