GPT Image 2.5 画像を編集 API
画像を編集をOpenAIが提供。GPT Image 2.5を搭載。OpenAIの最上位画像モデル — 正確な編集、完璧な文字描画、最大4K。
GPT Image 2.5画像を編集を試す
編集・合成に使える画像は最大16枚です。プロンプトでは「画像1」「画像2」…と参照してください。
出力画像の形状。
出力サイズ:1K(約1 MP)、2K(約4 MP)、4K(約8 MP、実験段階)。
描画品質。高品質ほど出力トークンが増え、料金も上がります。xhighとmaxは最終素材向けです。
Googleまたはメールで無料アカウントを作成できます。生成した分だけお支払いください。
ここにお客様の画像が表示されます
プロンプトを入力し、設定を選んで「実行」を押してください。成功した生成にのみ料金がかかります。
こちらも利用できます:GPT Image 2.5 テキストから画像を生成
GPT Image 2.5 画像を編集で作成
Keep the bed, pillows, bedside tables, lamps, chair, suitcase, luggage rack, curtains, walls, flooring, camera position, and room lighting unchanged. Replace only the daytime city view outside the window with a calm ocean view at sunset, showing distant water and a soft peach-blue sky. Ensure the new exterior light matches the existing room naturally without changing the interior design.
Keep the woman’s face, hairstyle, clothing, pose, hands, coffee cup, laptop, table objects, camera angle, and indoor café layout unchanged. Change only the weather and exterior atmosphere outside the window to a rainy late afternoon, with wet pavement, soft reflections, umbrellas, and diffused gray-blue daylight. Add subtle rain streaks and realistic window reflections without making the interior dark or cinematic. Preserve the original casual smartphone-photo look.
Packaging design for an oat-milk carton called “OATLY GOOD”, pastel illustration, nutrition panel with legible text
A UI mockup of a meditation app home screen, soft gradients, three cards with short labels
- 画像を編集
Replace the background with a sunlit Mediterranean terrace; keep the bottle and label exactly the same
GPT Image 2.5 画像を編集 API
/api/v1/run/openai/gpt-image-2.5/edit非同期ジョブを送信すると、生成IDを含む202が返されます。GET /api/v1/generations/{id}をポーリングするか、webhook_urlを指定してください。詳細はジョブのライフサイクルをご覧ください。
入力パラメーター
| 名前 | 種類 | 説明 | 料金に影響 |
|---|---|---|---|
prompt必須 | string | ショットを説明してください:被写体、動き、カメラワーク、照明、スタイル。 | はい |
image_urls必須 | string[] (URLs) | 編集・合成に使える画像は最大16枚です。プロンプトでは「画像1」「画像2」…と参照してください。 最大項目数:16 | いいえ |
aspect_ratio | string (enum) | 出力画像の形状。 値:1:1 · 3:2 · 2:3 · 4:3 · 3:4 · 5:4 · 4:5 · 16:9 · 9:16 · 21:9 · 9:21 デフォルト:1:1 | はい |
resolution | string (enum) | 出力サイズ:1K(約1 MP)、2K(約4 MP)、4K(約8 MP、実験段階)。 値:1K · 2K · 4K デフォルト:1K | はい |
quality | string (enum) | 描画品質。高品質ほど出力トークンが増え、料金も上がります。xhighとmaxは最終素材向けです。 値:low · medium · high · xhigh · max デフォルト:medium | はい |
webhook_url | string (URL) | 任意。生成が完了すると、Webhookシークレットで署名してここにPOSTします。Webhook | いいえ |
リクエスト
const API = "https://cheapergen.com/api/v1";
const headers = {
Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
"Content-Type": "application/json",
};
// 1. Submit the job
let job = await fetch(`${API}/run/openai/gpt-image-2.5/edit`, {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "商品とラベルは正確に維持し、背景を柔らかなオフホワイトのスタジオ撮影用背景に変更して、自然な影を加えてください。",
"image_urls": [
"https://cdn.cheapergen.com/samples/portrait.jpg"
],
"aspect_ratio": "1:1",
"resolution": "1K",
"quality": "medium"
}),
}).then((r) => r.json());
// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
await new Promise((r) => setTimeout(r, 3000));
job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}
console.log(job.status === "succeeded" ? job.output.images[0].url : job.error);レスポンス
{
"id": "gen_8c2QmX1nq0k4",
"object": "generation",
"model": "openai/gpt-image-2.5",
"endpoint": "openai/gpt-image-2.5/edit",
"mode": "edit",
"status": "queued",
"input": {
"prompt": "商品とラベルは正確に維持し、背景を柔らかなオフホワイトのスタジオ撮影用背景に変更して、自然な影を加えてください。",
"image_urls": [
"https://cdn.cheapergen.com/samples/portrait.jpg"
],
"aspect_ratio": "1:1",
"resolution": "1K",
"quality": "medium"
},
"output": null,
"error": null,
"cost": {
"amount_usd": 0.2255,
"currency": "usd",
"estimated": true,
"official_usd": null,
"list_price_source": "official",
"list_price_label": "Official",
"saved_usd": null
},
"source": "api",
"started_at": null,
"completed_at": null,
"urls": {
"get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
"cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
},
"created_at": "2026-10-15T09:21:04Z"
}GPT Image 2.5の料金
従量課金: 画像1枚あたりを使った分だけ支払えます。サブスクリプションは不要です (月額プランは任意)。生成に失敗した場合は自動で返金されます。
| プラン | 公式価格 | CheaperGen | 節約額 |
|---|---|---|---|
1K · 低 1024×1024 | $0.0061/img | −5% | |
2K · 低 2048×2048 | $0.0114/img | −8% | |
1K · 中 1024×1024 | $0.0126/img | −8% | |
2K · 中 2048×2048 | $0.0254/img | −7% | |
1K · high 1024×1024 | $0.0492/img | −8% | |
2K · high 2048×2048 | $0.0999/img | −7% |
- 公式価格:OpenAI APIのgpt-image-2.5-sunburst公開価格(画像出力100万トークンあたり$30、テキスト入力100万トークンあたり$5、画像入力100万トークンあたり$8。画像1枚あたりの出力トークン数はGPT Image 2.5のOpenAI料金計算ツールによる概算で、一般的なプロンプトを含む)。価格確認日:2026年10月18日。
- 画像1枚あたりの料金は正方形画像と一般的なプロンプトを前提とした概算です。入力画像1枚につき約$0.016加算されます。
- xhighとmaxは料金が高くなります。プレイグラウンドでご確認ください。
OpenAIの関連情報
同じAPIキーで使える人気のOpenAIモデル。
類似する画像モデル
人気のtext-to-imageモデル 他の開発者のモデル。

Seedream5.0 Pro
テキストから画像を生成 · 画像を編集
本番品質の画像生成と精密な編集

FLUX 3Image Klein
テキストから画像を生成 · 画像を編集
オープンウェイトのFLUX 3 — 16ステップで数秒、画像1枚あたり1セント未満

Nano Banana2.1
テキストから画像を生成 · 画像を編集
Googleの最新Nano Banana — Proの4分の1の価格で、最高水準の品質

Z-ImageTurbo
テキストから画像を生成
Alibabaの6Bオープンモデル — 8ステップで写実的な画像を生成、1枚1.5セント未満

