imagesarray必須
The URLs of the images to use for image-to-image generation or image editing.
openai/gpt-image-2.5-sunburst/editGPT Image 2.5 Sunburst Edit prioritizes precision and visual fidelity for complex image editing workflows.
モデルを試す
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
{
"aspect_ratio": "16:9",
"images": [
"https://static.sandbase.ai/examples/c3c9f8c1-5823-4ca4-b273-9aceda2a4e9f/input/c2f66511-a81f-4d6f-aa42-4b6c6fc3dddc.png"
],
"prompt": "Create a realistic billboard mockup of the shampoo on a highway scene during sunset.\nBillboard text (EXACT, verbatim, no extra characters):\n\"Fresh and clean\"\nTypography: bold sans-serif, high contrast, centered, clean kerning.\nEnsure text appears once and is perfectly legible.\nNo watermarks, no logos."
}{
"aspect_ratio": "16:9",
"images": [
"https://static.sandbase.ai/examples/a6d401f7-a933-45fd-8732-bbd6514c187a/input/8f5728c6-9dfb-4e4b-b8e1-d55d76c84fde.png"
],
"prompt": "Turn this drawing into a photorealistic image.\nPreserve the exact layout, proportions, and perspective.\nChoose realistic materials and lighting consistent with the sketch intent.\nDo not add new elements or text."
}{
"aspect_ratio": "16:9",
"images": [
"https://static.sandbase.ai/examples/513c17a1-69ab-4eec-bb6b-31777c8e6a89/input/851b4d36-dcab-4cd7-ba78-a81beaf84f43.jpeg"
],
"prompt": "In this room photo, replace ONLY white with chairs made of wood.\nPreserve camera angle, room lighting, floor shadows, and surrounding objects.\nKeep all other aspects of the image unchanged.\nPhotorealistic contact shadows and fabric texture."
}{
"images": [
"https://static.sandbase.ai/examples/5d17d096-394d-4756-b9ed-1905edce80de/input/da61f802-f261-454c-9a06-6c00b8fbfacf.png",
"https://static.sandbase.ai/examples/5d17d096-394d-4756-b9ed-1905edce80de/input/26b1fea2-71a5-44f1-a2ef-4f7ce4ba68dc.png",
"https://static.sandbase.ai/examples/5d17d096-394d-4756-b9ed-1905edce80de/input/ad214392-8454-449b-93e1-ebfea01edf90.png",
"https://static.sandbase.ai/examples/5d17d096-394d-4756-b9ed-1905edce80de/input/6e93d9d5-907f-455e-8dcd-7d040e818408.png"
],
"output_format": "png",
"prompt": "Generate a photorealistic image of a gift basket on a white background labeled 'Relax & Unwind' with a ribbon and handwriting-like font, containing all the items in the reference pictures.",
"quality": "high"
}GPT Image 2.5 Sunburst edit: precise, fidelity-first edits and multi-image composition. Send images with an instruction; untouched areas, faces, and text stay as they were.
| Field | Type | Default | Notes |
|---|---|---|---|
images | image URL[], required | — | Images to edit or combine, Image 1, Image 2, … |
prompt | string, required | — | Up to 50,000 characters. |
quality | low / medium / high / xhigh / max | high | Higher quality costs more; high is the default. |
resolution | 1k / 2k / 4k | — | Output size tier; omit for 1K. |
aspect_ratio | 1:1 / 1:2 / 2:1 / 1:3 / 3:1 / 2:3 / 3:2 / 3:4 / 4:3 / 4:5 / 5:4 / 9:16 / 16:9 / 9:21 / 21:9 | — | Omit to follow the first input image. |
output_format | jpeg / png / webp | png | Output file format. |
Price depends on quality and resolution, per output image, plus $0.015 for each input image after the first:
| Quality, 1 input | 1k | 2k | 4k |
|---|---|---|---|
| low | $0.025 | $0.035 | $0.045 |
| medium | $0.039 | $0.055 | $0.085 |
| high (default) | $0.105 | $0.165 | $0.285 |
| xhigh | $0.175 | $0.285 | $0.495 |
| max | $0.375 | $0.615 | $1.015 |
Failed runs are not charged.
Other GPT Image endpoints: openai/gpt-image-2.5-sunburst, openai/gpt-image-2.5-flare, openai/gpt-image-2.5-flare/edit, openai/gpt-image-2, openai/gpt-image-2/edit.
開発を始める
このモデルをSandBase Unified Run API経由で送信します。
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "openai/gpt-image-2.5-sunburst/edit",
"images": [
"https://cdn.openai.com/API/docs/images/body-lotion.png",
"https://cdn.openai.com/API/docs/images/soap.png",
"https://cdn.openai.com/API/docs/images/incense-kit.png",
"https://cdn.openai.com/API/docs/images/bath-bomb.png"
],
"prompt": "Generate a photorealistic image of a gift basket on a white background labeled 'Relax & Unwind' with a ribbon and handwriting-like font, containing all the items in the reference pictures.",
"quality": "high",
"output_format": "png"
}
SANDBASE_JSON
)
printf '%s\n' "$result"SandBaseのAPIキーを作成し、サーバー環境に設定してください。すべてのリクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開したり、リポジトリにコミットしたりしないでください。
モデルのimage、video、またはaudioフィールドに、公開アクセス可能なファイルURLを指定してください。対応形式と制限は各Playground入力の横に表示されます。
Playgroundの対応する画像フィールドでアップロードまたは置換を使用してください。video URLフィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
imagesarray必須The URLs of the images to use for image-to-image generation or image editing.
promptstring必須The text prompt to generate an image from.
デフォルト: "Generate a photorealistic image of a gift basket on a white background labeled 'Relax & Unwind' with a ribbon and handwriting-like font, containing all the items in the reference pictures."
qualitystringRendering quality. `xhigh` and `max` add detail at higher latency and cost.
デフォルト: "high"
指定可能な値: "low", "medium", "high", "xhigh", "max"
resolutionstringThe resolution of the generated image. Leave unset to preserve the provider's standard dimensions.
指定可能な値: "1k", "2k", "4k"
aspect_ratiostringThe aspect ratio of the generated image.
指定可能な値: "1:1", "1:2", "2:1", "1:3", "3:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "9:21", "21:9"
output_formatstringThe format of the generated image.
デフォルト: "png"
指定可能な値: "jpeg", "png", "webp"
{
"model": "openai/gpt-image-2.5-sunburst/edit",
"images": [
"https://cdn.openai.com/API/docs/images/body-lotion.png",
"https://cdn.openai.com/API/docs/images/soap.png",
"https://cdn.openai.com/API/docs/images/incense-kit.png",
"https://cdn.openai.com/API/docs/images/bath-bomb.png"
],
"prompt": "Generate a photorealistic image of a gift basket on a white background labeled 'Relax & Unwind' with a ribbon and handwriting-like font, containing all the items in the reference pictures.",
"quality": "high",
"output_format": "png"
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
[
{
"source": "OpenAI Cookbook prompt (MIT)",
"source_url": "https://developers.openai.com/cookbook/examples/multimodal/image-gen-models-prompting-guide",
"url": "https://static.sandbase.ai/examples/c3c9f8c1-5823-4ca4-b273-9aceda2a4e9f/output/670ee07b-92fd-43af-8a15-b062982a9d1e.png"
}
]