imagesarray必須
The URLs of the images to use for image-to-image generation or image editing.
openai/gpt-image-2.6-sunburst/editGPT Image 2.6 Sunburst Edit prioritizes precision and consistency across successive edits for complex image editing workflows.
モデルを試す
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
{
"aspect_ratio": "16:9",
"images": [
"https://static.sandbase.ai/examples/bec64267-964f-4a5a-b62b-6f207c63743c/input/fb945b36-6bf2-41c8-abd4-9b3be9279570.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/981b2926-dfa6-47b7-b6c9-e6f188eaf7cc/input/789202c7-4d63-478e-975e-cba99f1718b3.png",
"https://static.sandbase.ai/examples/981b2926-dfa6-47b7-b6c9-e6f188eaf7cc/input/d6dd73cb-70d8-4cff-ba22-1d3c0e88638a.png",
"https://static.sandbase.ai/examples/981b2926-dfa6-47b7-b6c9-e6f188eaf7cc/input/d619ca4a-c2d5-45b5-af16-4ade3898330e.png",
"https://static.sandbase.ai/examples/981b2926-dfa6-47b7-b6c9-e6f188eaf7cc/input/caedb740-34aa-4950-94c1-1cf2531236cb.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.6 Sunburst edit: precise edits and multi-image composition that stay consistent across rounds of revision. 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 32,000 characters. |
quality | low / medium / high | 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 / 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 |
Failed runs are not charged.
Other GPT Image endpoints: openai/gpt-image-2.6-flare, openai/gpt-image-2.6-flare/edit, openai/gpt-image-2.6-sunburst, openai/gpt-image-2.5-flare, openai/gpt-image-2.5-sunburst.
開発を始める
このモデルを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.6-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. Higher quality adds detail at higher latency and cost.
デフォルト: "high"
指定可能な値: "low", "medium", "high"
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", "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.6-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の結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
[
{
"url": "https://static.sandbase.ai/examples/bec64267-964f-4a5a-b62b-6f207c63743c/output/19700ba3-20a7-4941-969b-48014312c73a.png"
}
]